SQL Error Codes and Database Concepts Quiz

Test your knowledge of SQL error codes, transaction management, subqueries, operators, and core database language features including triggers, indexes, and ISO SQL standards.

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

Which one is the scalar operator

  1. IN
  2. >=
  3. ANY
  4. ALL
Question 2 Multiple Choice (Single Answer)

Sub-query cannot have following clause

  1. Order by
  2. Having
  3. Group by
  4. Where
Question 3 Multiple Choice (Single Answer)

Which of following will cause end of user transaction.

  1. Commit
  2. Drop
  3. Truncate
  4. All of above
Question 4 Multiple Choice (Single Answer)

Which of following is not ISO std SQL construct

  1. Decode
  2. Case
  3. Minus
  4. None of above
Question 5 Multiple Choice (Single Answer)

to_date('2008','yyyy'); What is the output of this if sysdate is 22-Sep-09

  1. 01-Jan-08
  2. 22-Sep-08
  3. 01-Sep-08
  4. None of above
Question 6 Multiple Choice (Single Answer)

Which of following will require index.

  1. Not Null
  2. Check
  3. Unique key
  4. All of above
Question 7 Multiple Choice (Single Answer)

Which of following can be run within database

  1. java
  2. sql
  3. plsql
  4. All of above
Question 8 Multiple Choice (Single Answer)

SQL is set oriented language because

  1. It process tuples one by one
  2. It can be used in PLSQL
  3. It can use SET operators
  4. None of above
Question 9 Multiple Choice (Single Answer)

SQL0901 error means?

  1. SQL System Error
  2. SQL Data base error
  3. SQL numeric error
  4. None of the these
Question 10 Multiple Choice (Single Answer)

SQL0204 error means?

  1. Database error
  2. MYSYSCONF not found
  3. ORDER BY column not in result table
  4. not valid for naming convention
Question 11 Multiple Choice (Single Answer)

SQL0208 error means?

  1. interger not found
  2. Numeric not allowed
  3. Name &1 not allowed.
  4. ORDER BY column not in result table
Question 12 Multiple Choice (Single Answer)

SQL310 error means

  1. Constraint or Key not found
  2. Foreign key references non-existent table
  3. Before Delete trigger failed
  4. Row to DELETE not found
Question 13 Multiple Choice (Single Answer)

SQL363 error means?

  1. Trigger not found
  2. Trigger name not unique
  3. Trigger with same EVENT, TIME, and ORDER already defined
  4. Fatal Connection error
Question 14 Multiple Choice (Single Answer)

SQL89 error means?

  1. Numeric expected
  2. Integer expected
  3. Column Constraint expected
  4. Invalid table name
Question 15 Multiple Choice (Single Answer)

SQL112 error means?

  1. Fatal error occurred
  2. %THRESHOLD Violation
  3. Privilege Violation
  4. Access violation
Question 16 Multiple Choice (Single Answer)

SQL462 error means?

  1. No stream object defined for field
  2. Communication link failure
  3. Memory allocation failure
  4. None of these
Question 17 Multiple Choice (Single Answer)

SQL118 error means?

  1. Unknown or non-unique User or Role
  2. Cannot INSERT/UPDATE/DELETE on a read only table
  3. Row to DELETE not found
  4. Operation Disallowed by Operation Table
Question 18 Multiple Choice (Single Answer)

SQL130 error means?

  1. After Delete trigger failed
  2. Before Delete trigger failed
  3. Before Update trigger failed
  4. Before Insert trigger failed
Question 19 Multiple Choice (Single Answer)

SQL72 error means?

  1. Multi-Line Field not valid in ORDER BY clause
  2. Multi-Line Field must be the Left operand of the Comparison
  3. Multi-Line Field only valid for LIKE, Contains ([), or NULL Comparison
  4. None of these
Question 20 Multiple Choice (Single Answer)

SQL471 error means?

  1. Duplicate cursor name
  2. Unable to receive server message
  3. Invalid Stored Procedure Name
  4. None of these