SQL Query Quiz

SQL Query Quiz

1st Grade

13 Qs

quiz-placeholder

Similar activities

Bitmap v Vector Images

Bitmap v Vector Images

KG - University

10 Qs

Excel Quiz

Excel Quiz

KG - University

15 Qs

Kuis Pemodelan Sistem part 4

Kuis Pemodelan Sistem part 4

1st - 3rd Grade

17 Qs

Coder

Coder

1st - 3rd Grade

10 Qs

ZTE Phone Quiz

ZTE Phone Quiz

1st Grade - Professional Development

17 Qs

Parts of the Keyboard

Parts of the Keyboard

1st - 3rd Grade

12 Qs

Технология Docker (КВИЗ - 4)

Технология Docker (КВИЗ - 4)

1st Grade

10 Qs

Be4PSPM 1

Be4PSPM 1

1st - 5th Grade

10 Qs

SQL Query Quiz

SQL Query Quiz

Assessment

Quiz

Computers

1st Grade

Practice Problem

Medium

Created by

Fajar Dziki

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

13 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which of the following queries returns 'Palo Alto'?

SELECT customer_city FROM Customers WHERE customer_name = 'Hayes';

SELECT customer_city FROM Customers WHERE customer_name = 'Johnson';

SELECT customer_city FROM Customers WHERE customer_street = 'Main';

SELECT customer_city FROM Customers WHERE customer_street = 'Park';

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query lists all the unique cities?

SELECT customer_city FROM Customers;

SELECT DISTINCT customer_city FROM Customers;

SELECT UNIQUE customer_city FROM Customers;

SELECT customer_city GROUP BY customer_city FROM Customers;

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query returns the names of all customers in 'Rye'?

SELECT customer_name FROM Customers WHERE customer_city = 'Rye';

SELECT customer_name FROM Customers WHERE customer_city = 'Harrison';

SELECT customer_name FROM Customers WHERE customer_street = 'North';

SELECT customer_name FROM Customers WHERE customer_street = 'Main';

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query returns all the information for 'Turner'?

SELECT * FROM Customers WHERE customer_name = 'Turner';

SELECT * FROM Customers WHERE customer_city = 'Stamford';

SELECT customer_name, customer_street FROM Customers WHERE customer_name = 'Turner';

SELECT customer_city, customer_street FROM Customers WHERE customer_name = 'Turner';

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query finds customers whose names start with 'J'?

SELECT customer_name FROM Customers WHERE customer_name LIKE 'J';

SELECT customer_name FROM Customers WHERE customer_name LIKE 'J%';

SELECT customer_name FROM Customers WHERE customer_name LIKE '%J';

SELECT customer_name FROM Customers WHERE customer_name = 'J';

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query counts the number of customers in each city?

SELECT customer_city, COUNT(*) FROM Customers;

SELECT customer_city, COUNT(*) FROM Customers GROUP BY customer_city;

SELECT COUNT(*), customer_city FROM Customers GROUP BY customer_city;

SELECT customer_city, SUM(*) FROM Customers;

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Which query lists all street names alphabetically?

SELECT customer_street FROM Customers ORDER BY customer_street;

SELECT customer_street FROM Customers SORT BY customer_street;

SELECT customer_street FROM Customers ORDER customer_street;

SELECT customer_street FROM Customers GROUP BY customer_street;

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?