Tag: databases

Questions Related to databases

  1. Error: "VERSION": invalid identifier

  2. Error: "VERSION": invalid character

  3. Error: invalid SQL statement

  4. shows oracle database version

  5. Null


Correct Option: A

select expr(1/0) from dual; The o/p would be ..

  1. 0

  2. Error: divisor is equal to zero

  3. Error: Invalid Identifier

  4. NULL


Correct Option: C
  1. Error: Syntax error

  2. 0

  3. 5

  4. Error: Argument '-1' is out of range


Correct Option: D

Want to search character 'a' from last in the string 'Hi Partha Sarathi Ojha'. So what would be the query...

  1. select instr('Hi Partha Sarathi Ojha',last,'a') from dual

  2. select instr('Hi Partha Sarathi Ojha','a',-1) from dual

  3. select instr('Hi Partha Sarathi Ojha',left,'a') from dual

  4. select instr('Hi Partha Sarathi Ojha',-1,'a') from dual

  5. select instr('Hi Partha Sarathi Ojha','-a') from dual


Correct Option: B