
SQL Questions Quiz
Authored by Dolores Justo
Information Technology (IT)
11th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What SQL statement is used to create a new table called 'cars' with the columns 'brand' and 'model'?
CREATE DATABASE cars (brand VARCHAR(255), model VARCHAR(255));
CREATE TABLE cars (brand VARCHAR(255), model VARCHAR(255));
CREATE cars TABLE (brand VARCHAR(255), model VARCHAR(255));
CREATE NEW TABLE cars (brand VARCHAR(255), model VARCHAR(255));
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you select all columns from the 'customers' table?
SELECT all FROM customers;
SELECT * FROM customers;
SELECT customers FROM *;
SELECT ALL COLUMNS FROM customers;
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What clause is used to filter the results of a query in PostgreSQL?
ORDER BY
GROUP BY
WHERE
HAVING
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How would you order the results of the 'products' table by the 'price' field from lowest to highest?
SELECT * FROM products ORDER BY price DESC;
SELECT * FROM products ORDER BY price ASC;
SELECT * FROM products SORT BY price;
SELECT * FROM products GROUP BY price;
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What operator is used to compare if a value is within a specific set of values?
BETWEEN
LIKE
IN
EXISTS
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the aggregation function that returns the total number of rows in a result set?
SUM()
COUNT()
AVG()
TOTAL()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What SQL statement is used to delete a table called 'orders'?
DELETE TABLE orders;
DROP TABLE orders;
REMOVE TABLE orders;
TRUNCATE TABLE orders;
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?
Similar Resources on Wayground
10 questions
Quiz sur les Outils SketchUp
Quiz
•
1st Grade - University
20 questions
Quiz Komputasional-Struktur Data kelas 9
Quiz
•
9th Grade - University
11 questions
Keyboard Shortcuts
Quiz
•
5th Grade - University
15 questions
UH 1 Basis Data - 2425
Quiz
•
11th Grade
10 questions
Exploring Loops in Scratch
Quiz
•
5th Grade - University
10 questions
Grade 8:Changing Pitch and Speed in Audacity.
Quiz
•
10th Grade - University
10 questions
Internet Safety
Quiz
•
8th Grade - University
10 questions
ITes Class-IX LibreOffice Impress Quiz
Quiz
•
9th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
Discover more resources for Information Technology (IT)
20 questions
-AR -ER -IR present tense
Quiz
•
10th - 12th Grade
15 questions
Making Inferences
Quiz
•
7th - 12th Grade
15 questions
Main Idea and Supporting Details.
Quiz
•
4th - 11th Grade
12 questions
Add and Subtract Polynomials
Quiz
•
9th - 12th Grade
7 questions
How James Brown Invented Funk
Interactive video
•
10th Grade - University
15 questions
Atomic Habits: Career Habits
Lesson
•
9th - 12th Grade
16 questions
ACT English - Grammar Practice #2
Quiz
•
11th Grade
20 questions
Banking
Quiz
•
9th - 12th Grade