Tag: databases

Questions Related to databases

Which will not allow to drop a table?

  1. (a) UNION

  2. (b) SCHEMABINDING

  3. (c) CHECK OPTION

  4. (d) All


Correct Option: B
  1. (a) SCHEMABINDING

  2. (b) CHECK OPTION

  3. (c) ANSI_NULLS

  4. (d) All


Correct Option: B
  1. (a) Full outer join

  2. (b) Inner join

  3. (c) Right outer join

  4. (d) Left outer join


Correct Option: A,C,D
  1. (a) AS

  2. (b) STR

  3. (c) FROM

  4. (d) COLUMN


Correct Option: A
  1. A. SELECT TO CHAR(8000,’$#,###.##’) FROM DUAL;

  2. B. SELECT TO CHAR(8000,’$0,000.00’) FROM DUAL;

  3. C. SELECT TO CHAR(8000,’$9,999.00’) FROM DUAL;

  4. D. SELECT TO CHAR(8000,’$9,999.99’) FROM DUAL;

  5. E. SELECT TO CHAR(8000,’$8,000.00’) FROM DUAL;

  6. F. SELECT TO CHAR(8000,’$N,NNN.NN’) FROM DUAL;


Correct Option: B,C,D
  1. At the beginning of the list

  2. At the end of the list

  3. In the middle of the list

  4. At the same location they are listed in the unordered table


Correct Option: A
  1. The DESCRIBE DEPT statement returns an error ORA-04043: object DEPT does not exist

  2. The ROLLBACK statement frees the storage space occupies by the DEPT table

  3. The DESCRIBE DEPT statement displays the structure of the DEPT table

  4. The DESCRIBE DEPT statement displays the structure of the DEPT table only if there is a COMMIT statement introduced before the ROLLBACK statement


Correct Option: C

Which three are DATETIME data types that can be used when specifying column definitions? (Choose three)

  1. TIMESTAMP

  2. INTERVAL MONTH TO DAY

  3. TIMESTAMP WITH DATABASE TIMEZONE

  4. INTERVAL YEAR TO MONTH

  5. INTERVAL DAY TO SECOND


Correct Option: A,D,E