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.
Questions
Which one is the scalar operator
- IN
- >=
- ANY
- ALL
Sub-query cannot have following clause
- Order by
- Having
- Group by
- Where
Which of following will cause end of user transaction.
- Commit
- Drop
- Truncate
- All of above
Which of following is not ISO std SQL construct
- Decode
- Case
- Minus
- None of above
to_date('2008','yyyy'); What is the output of this if sysdate is 22-Sep-09
- 01-Jan-08
- 22-Sep-08
- 01-Sep-08
- None of above
Which of following will require index.
- Not Null
- Check
- Unique key
- All of above
Which of following can be run within database
- java
- sql
- plsql
- All of above
SQL is set oriented language because
- It process tuples one by one
- It can be used in PLSQL
- It can use SET operators
- None of above
SQL0901 error means?
- SQL System Error
- SQL Data base error
- SQL numeric error
- None of the these
SQL0204 error means?
- Database error
- MYSYSCONF not found
- ORDER BY column not in result table
- not valid for naming convention
SQL0208 error means?
- interger not found
- Numeric not allowed
- Name &1 not allowed.
- ORDER BY column not in result table
SQL310 error means
- Constraint or Key not found
- Foreign key references non-existent table
- Before Delete trigger failed
- Row to DELETE not found
SQL363 error means?
- Trigger not found
- Trigger name not unique
- Trigger with same EVENT, TIME, and ORDER already defined
- Fatal Connection error
SQL89 error means?
- Numeric expected
- Integer expected
- Column Constraint expected
- Invalid table name
SQL112 error means?
- Fatal error occurred
- %THRESHOLD Violation
- Privilege Violation
- Access violation
SQL462 error means?
- No stream object defined for field
- Communication link failure
- Memory allocation failure
- None of these
SQL118 error means?
- Unknown or non-unique User or Role
- Cannot INSERT/UPDATE/DELETE on a read only table
- Row to DELETE not found
- Operation Disallowed by Operation Table
SQL130 error means?
- After Delete trigger failed
- Before Delete trigger failed
- Before Update trigger failed
- Before Insert trigger failed
SQL72 error means?
- Multi-Line Field not valid in ORDER BY clause
- Multi-Line Field must be the Left operand of the Comparison
- Multi-Line Field only valid for LIKE, Contains ([), or NULL Comparison
- None of these
SQL471 error means?
- Duplicate cursor name
- Unable to receive server message
- Invalid Stored Procedure Name
- None of these