SQL Questions Quiz

SQL Questions Quiz

11th Grade

15 Qs

quiz-placeholder

Similar activities

Teste de SQL: Tabelas e Inserções

Teste de SQL: Tabelas e Inserções

10th Grade - University

14 Qs

Review and practice Database Concepts

Review and practice Database Concepts

11th Grade

18 Qs

CBTIS SQL Queries basicos

CBTIS SQL Queries basicos

11th Grade

11 Qs

Konversi Bilangan

Konversi Bilangan

10th Grade - University

20 Qs

Literasi Digital " Mesin Pencari"

Literasi Digital " Mesin Pencari"

11th Grade

20 Qs

Mastering Basic SQL Concepts

Mastering Basic SQL Concepts

11th Grade

10 Qs

Soal Pemahaman

Soal Pemahaman

8th Grade - University

20 Qs

RETURN 17-БӨЛІМ

RETURN 17-БӨЛІМ

11th Grade

20 Qs

SQL Questions Quiz

SQL Questions Quiz

Assessment

Quiz

Information Technology (IT)

11th Grade

Hard

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?