CH 7
CH 7
a. COMMIT
1. b. SELECT
c. INSERT
d. UPDATE
The SQL command that lets you save your work to disk is ________.
a. SELECT
2. b. COMMIT
c. INSERT
d. UPDATE
a. SELECT
3. b. INSERT
c. COMMIT
d. UPDATE
The SQL command that enables you to make changes in the data is ________.
a. INSERT
4. b. UPDATE
c. COMMIT
d. SELECT
The current fully approved version of standard SQL prescribed by the American National Standards
Institute is ________.
5. a. SQL2
b. SQL-4
c. SQL-2003
d. SQL-99
a. ALPHANUMERIC
6. b. CHAR only
c. CHAR & VARCHAR2
d. VARCHAR2 only
To list all the contents of the PRODUCT table you would use ________.
a. DISPLAY
b. CHAR
c. CONVERT
d. FORMAT
Which command would you use when changing the date in the PRODUCT table?
a.
9. b.
c.
d.
a. COMMIT; BACKUP;
10. b. COMMIT; RESTORE;
c. ROLLBACK;
d. COMMIT; ROLLBACK;
Which command would be used to delete the table row where the P_CODE = '2238/QPD'?
a.
11. b.
c.
d.
Some RDBMSs (like Oracle) will automatically ________ data changes when issuing data definition
commands.
12. a. ROLLBACK
b. COMMIT
c. UPDATE
d. INVOKE
13. What happens when you issue the DELETE FROM tablename command without specifying a
WHERE condition?
a.
14. b.
c.
d.
Which query would be used to output the table contents where the value of V_CODE is equal to
21344?
a.
15.
b.
c.
d.
Which query would be used to output the table contents where the value of V_CODE is not equal to
21344?
a.
16.
b.
c.
d.
17. Which query would be used to output the table contents where the value of V_CODE is less than or
equal to 21344?
a.
b.
c.
d.
Which query would be used to output the table contents where the value of the character field
P_CODE is 1558-QW1?
a.
18.
b.
c.
d.
Which MS Access query command will list all the rows in which the inventory stock dates occur on or
after January 20, 2006?
a.
19.
b.
c.
d.
20. Which command uses columns and column aliases to determine the total value of each of the
products held on hand and displays the results in a column labeled TOTVALUE?
A(n) ________ is an alternate name given to a column or table in any SQL statement.
a. stored function
21. b. data type
c. trigger
d. alias
What is the SQL syntax to list the table contents for either V_CODE = 21344 or V_CODE = 24288?
a.
22. b.
c.
d.
a. IN
23. b. BETWEEN
c. IS NULL
d. LIKE
a. LIKE
24. b. IN
c. BETWEEN
d. NULL