
QUIZ ON SQL
Authored by Anasuya Sahoo
Computers
University
Used 15+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following is not a DDL command?
UPDATE
TRUNCATE
ALTER
None of the Mentioned
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of the following are TCL commands?
UPDATE and TRUNCATE
SELECT and INSERT
GRANT and REVOKE
ROLLBACK and SAVEPOINT
3.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
________________ is not a category of SQL command.
TCL
SCL
DCL
DDL
4.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
With SQL, how do you select all the records from a table named “Persons” where the value of the column “FirstName” ends with an “a”?
SELECT * FROM Persons WHERE FirstName=’a’
SELECT * FROM Persons WHERE FirstName LIKE ‘a%’
SELECT * FROM Persons WHERE FirstName LIKE ‘%a’
SELECT * FROM Persons WHERE FirstName=’%a%’
5.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
What does the ALTER TABLE clause do?
The SQL ALTER TABLE clause modifies a table definition by altering, adding, or deleting table columns and/or constraints
The SQL ALTER TABLE clause is used to insert data into database table
THE SQL ALTER TABLE deletes data from database table
The SQL ALTER TABLE clause is used to delete a database table
6.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
The UNION SQL clause can be used with _____________
SELECT clause only
DELETE and UPDATE clauses
UPDATE clause only
All of the mentioned
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which join refers to join records from the right table that have no matching key in the left table are include in the result set:
Left outer join
Right outer join
Full outer join
None of the above
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?