Oracle Database and SQL Query Quiz

Test your knowledge of Oracle SQL queries, dual table operations, and Oracle 11G database features including partitioning techniques.

16 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

select dummy,count(1) from dual group by dummy; O/p:

  1. Error: Not a GROUP BY Clause
  2. X,0
  3. X,1
  4. Two rows of value (X,0) & (X,1)
  5. No rows returned
Question 2 Multiple Choice (Single Answer)

select max(5)*min(5)/avg(5) from dual group by dummy; o/p:

  1. 5
  2. 25
  3. 125
  4. 1
  5. Error: Syntax error
Question 3 Multiple Choice (Single Answer)

select avg(dummy) from dual; o/p:

  1. Error: Invalid Number
  2. Error: Invalid Character
  3. 0
  4. 1
  5. Error: divisor is equal to zero
Question 4 Multiple Choice (Single Answer)

select min(dummy) from dual union all select max(dummy) from dual group by dummy; o/p: ??

  1. Two rows of value X and X
  2. Error: SQL command not properly ended
  3. Error: Not a proper GROUP BY clause
  4. X
  5. NULL
Question 5 Multiple Choice (Single Answer)

select min(dummy) from dual order by dummy union all select max(dummy) from dual; O/p:

  1. X
  2. Two rows of value X and X
  3. Error: Not a proper ORDER BY clause
  4. Error: SQL command not properly ended
  5. 1
Question 6 Multiple Choice (Single Answer)

select connect from dual; o/p:

  1. Error: Missing expression
  2. connect
  3. It will show connection string name
  4. NULL
Question 7 Multiple Choice (Single Answer)

select rowid from dual;

  1. It will show one row but no column, no value, not even a NULL value.
  2. 1
  3. 0
  4. NULL
  5. One row with one column containing the ROWID of DUAL's single row (an 18-character rowid string, e.g. AAAADeAABAAAAgiAAA).
Question 8 Multiple Choice (Single Answer)

select rownum from dual;

  1. It will show one row but no no column,no value-,not even NULL value
  2. NULL
  3. 0
  4. 1
Question 9 Multiple Choice (Single Answer)

select level from dual connect by level between 0 and 50; o/p:

  1. 1
  2. Values 1 to 50
  3. Values 0 to 50
  4. 0
Question 10 Multiple Choice (Single Answer)

select level from dual connect by level between 1 and 50 minus select level from dual connect by level between 2 and 50; o/p:

  1. 1
  2. No rows returned
  3. Values 1 to 50
  4. Values 0 & 1
Question 11 Multiple Choice (Single Answer)

select level from dual connect by level between 3 and 50; o/p:

  1. NULL
  2. Values 3 to 50
  3. 1
  4. 0
Question 12 Multiple Choice (Single Answer)

Which of the following statements are correct?

  1. Every entity must have a primary key
  2. It is not necessary to define primary key for an Entity
  3. @Primary annotation is used for denoting a simple primary key
  4. All the above
Question 13 True/False

INTERVAL PARTITIONING IS NOT SUPPORTED FOR INDEX-ORGANIZED TABLES.

  1. True
  2. False
Question 14 Multiple Choice (Single Answer)

INTERVAL PARTITIONING IS A PARTITIONING TECHNIQUE BASED ON

  1. HASH
  2. MODULUS
  3. RANGE
  4. RANDOM
Question 15 Multiple Choice (Single Answer)

INTERVAL PARTITIONING IS A PARTITIONING TECHNIQUE USED IN

  1. ORACLE 11G
  2. ORACLE 10G
  3. ORACLE 9I
  4. ORACLE 9G
  5. ORACLE 11I
  6. ORACLE 8I
Question 16 Multiple Choice (Single Answer)

MIXED NOTATION IS A FUNCTIONALITY USED IN

  1. ORACLE 11G
  2. ORACLE 10G
  3. ORACLE 9I
  4. ORACLE 9G
  5. ORACLE 11I
  6. ORACLE 8I