Quiz Answer Key and Fun Facts
1. Which SQL command would you use to retrieve a record or records from the database?
2. Which SQL command would you use to add a new record (row) to the database?
3. Which SQL command would you use to modify the contents of an existing record (row) in the database?
4. What does the command: 'TRUNCATE TABLE Sample' do?
5. Look at the following SQL statement:
INSERT INTO ________________
VALUES (value1, value2)
What belongs in the blank?
6. The ALTER tablename command would be used to...
7. This aggregate SQL function will return the number of rows in a database table.
8. This is a column with a unique value for each row used to bind data together, across tables, without repeating all of the data in every table.
9. This type of JOIN statement will return all the rows from the first table, even if there are no matches in the second table.
10. A WHERE clause can be added to a SELECT statement to add conditions to the rows being returned.
SELECT * FROM products WHERE ordernumber >= 1000
What rows will this select statement return?
Source: Author
kwdesigner
This quiz was reviewed by FunTrivia editor
crisw before going online.
Any errors found in FunTrivia content are routinely corrected through our feedback system.