
SQL Questions Quiz

Quiz
•
Information Technology (IT)
•
11th Grade
•
Hard
Dolores Justo
Used 1+ times
FREE Resource
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;
Create a free account and access millions of resources
Similar Resources on Wayground
13 questions
Database Practice Test 1 Review

Quiz
•
11th Grade
20 questions
Basis Data

Quiz
•
11th Grade
16 questions
Net+ 1.3.3 & 1.3.4 Data Link Layer/Network Functions

Quiz
•
11th Grade
15 questions
LibreOffice Writer Styles Quiz

Quiz
•
10th Grade - University
17 questions
Quiz Môn Tin Học 11

Quiz
•
11th Grade
15 questions
PPMSG BIM2 PART 2

Quiz
•
9th - 12th Grade
20 questions
WEB 1.3

Quiz
•
11th Grade
20 questions
Uji Pemahaman SQL untuk Siswa Kelas 11

Quiz
•
11th Grade
Popular Resources on Wayground
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
20 questions
ELA Advisory Review

Quiz
•
7th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Multiplication and Division Unknowns

Quiz
•
3rd Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Information Technology (IT)
10 questions
Ice Breaker Trivia: Food from Around the World

Quiz
•
3rd - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
11 questions
NFL Football logos

Quiz
•
KG - Professional Dev...
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
29 questions
CCG 2.2.3 Area

Quiz
•
9th - 12th Grade
15 questions
PRESENTE CONTINUO

Quiz
•
9th - 12th Grade
13 questions
BizInnovator Startup - Experience and Overview

Quiz
•
9th - 12th Grade
16 questions
AP Biology: Unit 1 Review (CED)

Quiz
•
9th - 12th Grade