Oracle SQL and Date/Time Functions

Quiz covering Oracle database SQL functions, date/time operations, constraints, joins, and Oracle-specific features

20 Questions Published

Questions

Question 1 True/False

Order by clause cannot have aliases of columns....

  1. True
  2. False
Question 2 True/False

The default sorting order of SQL statement is ASC....

  1. True
  2. False
Question 3 True/False

Null values in select statement with descending order will apppear at the top of the list....

  1. True
  2. False
Question 4 True/False

Arithmetic functions returns a NULL for a NULL input...

  1. True
  2. False
Question 5 True/False

password files are mandatory Disk components of Oracle....

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

To write a query that performs an outer join of tables A and B and returns all rows from B, You need to write

  1. any outer join
  2. left outer join
  3. cross join
  4. right outer join
Question 7 Multiple Choice (Single Answer)

Which is valid Oracle constraint type ?

  1. CASCADE
  2. CONSTANT
  3. CHECK
  4. NONUNIQUE
Question 8 Multiple Choice (Single Answer)

Which is an iSQL*Plus command ?

  1. DESCRIBE
  2. RENAME
  3. DELETE
  4. INSERT
Question 9 Multiple Choice (Single Answer)

Which is a DML Statement ?

  1. DROP
  2. MERGE
  3. CREATE
  4. COMMIT
Question 10 Multiple Choice (Single Answer)

Which is a character manipulation functions ?

  1. CASE
  2. TRUNC
  3. REPLACE
  4. MOD
Question 11 True/False

The date got from SYSDATE is date according to client machine....

  1. True
  2. False
Question 12 True/False

Cast function converts datatypes....

  1. True
  2. False
Question 13 True/False

Months_between will return negative numbers....

  1. True
  2. False
Question 14 True/False

Newfoundland standard time uses daylight saving...

  1. True
  2. False
Question 15 True/False

Dump function takes the backup of Oracle....

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

AST,GMT,XST..... can be used as parameters for which function..?

  1. next_day()
  2. add_months()
  3. new_time()
  4. old_year()
Question 17 Multiple Choice (Single Answer)

To change the display of date information, we have to use....

  1. National Language Set
  2. International Language Set
  3. Oracle Language Set
  4. SQL-99 compliant Language Set
Question 18 Multiple Choice (Single Answer)

Which one is not Oracle Function...?

  1. to_char
  2. to_number
  3. to_string
  4. to_date
Question 19 Multiple Choice (Single Answer)

Valid time zone names can be found in ....

  1. v$timezone_names
  2. v$timezone
  3. user_timezone_names
  4. dba_timezone_names
Question 20 Multiple Choice (Single Answer)

Which function will take input parameter...?

  1. tz_offse
  2. sessiontimezone
  3. systemstamp
  4. sysdate