
SQL QUIZ
Authored by Yash Gandhi
Computers
9th - 12th Grade
Used 5+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
22 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The AVG SQL function returns the ...
the sum of values in a column
average in the values in agroup.
maximum value from a column.
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does follow after the SQL SELECT clause?
List of columns that will be selected or the * symbol.
The JOIN SQL clause.
The name of the table we are selecting from.
3.
MULTIPLE SELECT QUESTION
45 sec • 1 pt
You can add a column in existing table using SQL in a database with which of the following?
INSERT
COLUMN
ALTER
TABLE
ADD
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The command to remove rows from a table 'CUSTOMER' is:
REMOVE FROM CUSTOMER ...
DROP FROM CUSTOMER ...
DELETE FROM CUSTOMER WHERE ...
UPDATE FROM CUSTOMER ...
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The SQL WHERE clause:
limits the column data that are returned.
limits the row data are returned.
Both A and B are correct.
Neither A nor B are correct.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The command to eliminate a table from a database is:
REMOVE TABLE CUSTOMER;
DROP TABLE CUSTOMER;
DELETE TABLE CUSTOMER;
UPDATE TABLE CUSTOMER;
7.
MULTIPLE CHOICE QUESTION
5 mins • 1 pt
Consider the below schema :-
STUDENTS(student_code, first_name, last_name, email,
phone_no, date_of_birth, honours_subject, percentage_of_marks)
-------------------------------------------------------------------------
Which of the following query would display names of all the students whose honours subject is English, or honours subject is Spanish and percentage of marks more than 80?
select first_name, last name from students where (honours_subject = “English” or honours_subject = “Spanish” ) and percentage_of_marks > 80;
select first_name, last name from students where honours_subject = “English” or honours_subject = “Spanish” and percentage_of_marks > 80;
select first_name, last name from students where honours_subject = “English” and honours_subject = “Spanish” or percentage_of_marks > 80;
select * from students where honours_subject = “English” or honours_subject = “Spanish” and percentage_of_marks > 80;
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?