Database Fundamentals and SQL Quiz
Test your knowledge of database concepts including SQL functions, isolation levels, constraints, and Oracle/DB2 specific commands
Questions
Which of the following is used to indicate a column will not accept NULL values and can be referenced in another table's foreign key specification?
- Check constraint
- Default constraint
- Unique constraint
- Informational constraint
What authority is required to create a table?
- ADMIN Privileges
- CREATETAB Privileges
- No Privileges
- USERTAB Privileges
Which authority or privilege is granted by the DB2 Database Manager configuration file?
- CONNECT
- CONTROL
- SYSMAINT
- EXECUTE
Which of the following isolation levels will lock all rows scanned to build a result data set?
- Uncommitted Read
- Cursor Stability
- Read Stability
- Repeatable Read
Which of the following causes a lock that is being held by an application using the Cursor Stability isolation level to be released?
- The cursor is moved to another row
- The row the cursor is on is deleted by the application
- The row the cursor is on is deleted by another application
- The row the cursor is on needs to be updated by another application
What is the restriction on using UNION in embedded SQL ?
- It has to be in a CURSOR
- cannot be used in Embedded SQL
- No restrictions
- None of the above
Which of the following isolation levels will lock all rows scanned to build a result data set?
- Uncommitted Read
- Cursor Stability
- Read Stability
- Repeatable Read
A declared temporary table is used for which of the following purposes?
- Backup purposes
- Storing intermediate results
- Staging area for load operations
- Sharing result data sets between applications
How do you find the total number of rows in a table ?
- SELECT COUNT *
- SELECT COUNT(*)
- SELECT COUNT[*]
- SELECT COUNT(ALL)
Which of the following isolation levels will lock all rows scanned to build a result data set?
- Uncommitted Read
- Cursor Stability
- Read Stability
- Repeatable Read
To run abcd.sql Script, what is the syntax....?
- @abcd.sql
- @abcd
- get abcd.sql /
- all the above
which one is not the output of Desc ...?
- name
- null
- type
- null?
How much data will be stored in oracle 9i Database..?
- 512 peta bytes
- 1024 peta byes
- 512 nano bytes
- 1024 giga bytes
1 peta byte =
- 1*1024 pow 3 bytes
- 1*1024 pow 4 bytes
- 1*1024 pow 5 bytes
- 1*1024 pow 6 byes
Which one of these files stores the location of disk components....?
- parameter files
- control files
- redo logs
- data files
Which one is the SQL*PLUS command...?
- jump
- run
- walk
- sleep
which one is the function in SQL...?
- soundex
- lightex
- weightex
- lux
The function which gives the storage of x in bytes..?(X may be the column)
- usize(x)
- vsize(x)
- wsize(x)
- xsize(x)
which one is the Oracle function in SQL...?
- floor
- window
- door
- ground
which keyword can be placed in trim function...?
- tailoring
- travelling
- trailing
- trucking