Tag: databases

Questions Related to databases

How many rows records the following query will display.. select * from TEMP where rownum in (1,3,3,2) N.R. Temp table has 30 records

  1. NULL

  2. 1 row

  3. 3 rows

  4. 4 rows

  5. 0 row


Correct Option: C
  1. 2

  2. 1+1

  3. Error: invalid number

  4. Error: invalid Character

  5. Error: invalid identifier


Correct Option: A
  1. aa

  2. a a

  3. a'a

  4. Error: invalid identifier

  5. Error: invalid character


Correct Option: C
  1. Error: "aa":invalid identifier

  2. aa

  3. "aa"

  4. Error: invalid character


Correct Option: A
  1. NULL

  2. Error: invalid identifier

  3. X

  4. Error: invalid SQL Statemet

  5. A


Correct Option: C
  1. A

  2. X

  3. NULL

  4. Error: Invalid SQL statement

  5. Error: Invalid Identifier


Correct Option: B

select dummy from dual minus select * from dual what would be output ?

  1. No rows returned

  2. Error: invalid SQL statement

  3. Error: invalid identifier

  4. Error: syntax error

  5. 1 row


Correct Option: A