
SQL Quiz
Authored by Nurly Nurly
Other
12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
65 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Choose the correct option to convert phone_number attribute from varchar to integer data type
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
List all operations of relation algebra in the query: SELECT accountld FROM Account;
Projection, union
Projection, selection
Selection
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A table that satisfies 2NF
None of the given
May violate 1NF
Always satisfies 1NF
Always satisfies 3NF
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With SQL, how do you select all the columns from a table named "Persons"?
SELECT Persons;
SELECT * Persons;
SELECT [all] FROM Persons;
SELECT * FROM Persons;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
With SQL, how do you select all the records from a table named "Persons" where the value of the column "FirstName" starts 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%;
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The___ operator combines all tuples from two relations excluding duplicates.
Difference
Divide
Union
Intersect
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which SQL keyword is used to retrieve a maximum value?
MOST
UPPER
TOP
MAX
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?