Graded Quiz: Basic SQL >> Databases and SQL for Data Science with Python
TOTAL POINTS 5
1.True or False: The SELECT statement is called a query, and the output we get from executing the query is called a result set.
1 point
False
2.True or False: The INSERT statement can be used to insert multiple rows in a single statement.
1 point
True
False
3.Assume there exists an INSTRUCTOR table with several columns including FIRSTNAME, LASTNAME, etc. Which of the following is the most likely result set for the following query:
SELECT DISTINCT(FIRSTNAME) FROM INSTRUCTOR
1 point
LEON
LEON
PAUL
PAUL
LEON
PAUL
JOE
LEON
PAUL
LEON
JOE
LEON KATSNELSON
PAUL ZIKOPOLOUS
JOE SANTARCANGELO
4.What does the following SQL statement do?
UPDATE INSTRUCTOR SET LASTNAME = ‘Brewster’ WHERE LASTNAME = ‘Smith’
1 point
Changes all rows for the instructor with a last name of Smith to have a last name of Brewster.
Change the row for the instructor with a last name of Brewster to have a last name of Smith.
Change all rows in the table to have a last name of Smith.
Change all rows in the table to have a last name of Brewster.
5.Which of the following SQL statements will delete the authors with IDs of A10 and A11?
1 point
DELETE FROM AUTHOR WHERE AUTHOR_ID IS (‘A10’, ‘A11’)
DELETE FROM AUTHOR WHERE AUTHOR_ID IN (‘A10’, ‘A11’)
DELETE (‘A10’, ‘A11’) FROM AUTHOR
D: DELETE AUTHOR_ID IS (‘A10’, ‘A11’) FROM AUTHOR
Related Questions & Answers:
Graded Quiz: Relational DB Concepts and Tables Graded Quiz: Relational DB Concepts and Tables >> Databases and SQL for Data Science with Python 1.Which of the following ... Read more...
Graded Quiz: Refining Your Results Graded Quiz: Refining Your Results >> Databases and SQL for Data Science with Python 1.You want to select author’s last ... Read more...
Graded Quiz: Database access from Python Graded Quiz: Database access from Python >> Databases and SQL for Data Science with Python 1.The ibm_db API provides a ... Read more...