Tag: databases

Questions Related to databases

  1. set timing on select * from EMP

  2. set time on select * from EMP

  3. time on select * from EMP

  4. set timings on select * from EMP


Correct Option: A

What is the Datatype of NULL in Oracle?

  1. Long

  2. Int(0)

  3. Char(0)

  4. Binary


Correct Option: C
  1. <=30 characters

  2. <=40 characters

  3. <=32 characters

  4. <=20 characters


Correct Option: A

In Oracle can we do any DMLs in a function which is called from a select statement?

  1. True

  2. False


Correct Option: B

In an Outer Join, what happens to columns that are not matched?

  1. All matched columns returns NULLS.

  2. All unmatched columns returns NULLS.

  3. All matched and unmatched columns returns NULLS.

  4. Cant say


Correct Option: B

User_Source table contains code for which all Objects?

  1. Functions

  2. Package body

  3. Triggers

  4. Cursor


Correct Option: A,B,C
  1. drop foreign keys

  2. cascade constraints

  3. this is not possible in oracle

  4. clear references


Correct Option: D
  1. maximum length for varchar is 2000 bytes and for varchar2 is 4000 bytes

  2. varchar is used to store fixed length character data, varchar2 is for variable length character data

  3. varchar data type is not supported in oracle

  4. varchar is applicable only to PL/SQL


Correct Option: D