Tag: databases

Questions Related to databases

  1. no privileges

  2. only the SELECT privilege

  3. only the CONNECT privilege

  4. all the privileges of a default user


Correct Option: A
  1. Insert

  2. Update

  3. Select

  4. Describe

  5. Delete

  6. Rename


Correct Option: D

Which SQL statement returns a numeric value?

  1. SELECT ADD_MONTHS(MAX(hire_Date), 6) FROM EMP;

  2. SELECT ROUND(hire_date)FROM EMP;

  3. SELECT sysdate-hire_date FROM EMP;

  4. SELECT TO_NUMBER(hire_date + 7)FROM EMP;


Correct Option: C

AI Explanation

To answer this question, let's go through each option to understand why it is correct or incorrect:

Option A) SELECT ADD_MONTHS(MAX(hire_Date), 6) FROM EMP; This option calculates the maximum hire date from the EMP table and adds 6 months to it using the ADD_MONTHS function. The result is a date value, not a numeric value.

Option B) SELECT ROUND(hire_date) FROM EMP; This option rounds the hire_date column values to the nearest whole number. The result is a date value, not a numeric value.

Option C) SELECT sysdate-hire_date FROM EMP; This option subtracts the hire_date column values from the current date (sysdate) using the minus operator. The result of this subtraction operation is a numeric value representing the number of days between the hire date and the current date.

Option D) SELECT TO_NUMBER(hire_date + 7) FROM EMP; This option adds 7 days to the hire_date column values and then converts the result to a numeric value using the TO_NUMBER function. The result is a numeric value.

The correct answer is option C. This option returns a numeric value because it calculates the number of days between the hire date and the current date.

Which object privileges can be granted on a view?

  1. none

  2. DELETE, INSERT,SELECT

  3. ALTER, DELETE, INSERT, SELECT

  4. DELETE, INSERT, SELECT, UPDATE


Correct Option: D

AI Explanation

To answer this question, you need to understand the concept of object privileges and views.

A view is a virtual table that is based on the result of a query. It allows you to retrieve data from one or more tables as if it were a single table. When granting privileges on a view, you can specify which operations can be performed on the view.

Let's go through each option to understand which object privileges can be granted on a view:

Option A) None - This option is incorrect because object privileges can be granted on a view.

Option B) DELETE, INSERT, SELECT - This option is incorrect because it does not include the UPDATE privilege, which can be granted on a view.

Option C) ALTER, DELETE, INSERT, SELECT - This option is incorrect because it does not include the UPDATE privilege, which can be granted on a view.

Option D) DELETE, INSERT, SELECT, UPDATE - This option is correct because it includes all the object privileges that can be granted on a view. With these privileges, you can perform operations such as deleting, inserting, selecting, and updating data on the view.

The correct answer is option D.

  1. the use of rowed

  2. a GROUP BY clause

  3. an ORDER BY clause

  4. only an inline view

  5. an inline view and an outer query


Correct Option: C,E
  1. In the database

  2. using a source qualifier transformation

  3. using a joiner transformation

  4. his cannot be done in Power Center 8.x


Correct Option: B

To maximize session performance by filter it should be

  1. Near to source

  2. Near to target

  3. Can be placed anywhere

  4. (i)Session performance is not affected


Correct Option: A

Which of the following transformation is passive and connected?

  1. Aggregator

  2. Expression

  3. Joiner

  4. Filter


Correct Option: B

Which of the below transformation can be used as connected and unconnected both way?

  1. Stored procedure, Look up

  2. Stored procedure, filter

  3. Look up , joiner

  4. Filter, Expression


Correct Option: A