Subqueries Quiz

Subqueries Quiz

University

20 Qs

quiz-placeholder

Similar activities

FIT9132 PASS Week 9

FIT9132 PASS Week 9

University

15 Qs

Power BI Quiz (Beginner Level)

Power BI Quiz (Beginner Level)

University

15 Qs

Understanding Database Technologies, Relational Model, and Data

Understanding Database Technologies, Relational Model, and Data

University

20 Qs

INFO MAN FINALS

INFO MAN FINALS

University

19 Qs

Database Refreshment

Database Refreshment

University

18 Qs

Advance Database Concepts (BSIT 3)

Advance Database Concepts (BSIT 3)

University

20 Qs

Ktra thường xuyên Tin 11

Ktra thường xuyên Tin 11

11th Grade - University

20 Qs

Kiểm tra kiến thức về SQL

Kiểm tra kiến thức về SQL

11th Grade - University

15 Qs

Subqueries Quiz

Subqueries Quiz

Assessment

Quiz

Information Technology (IT)

University

Medium

Created by

John Ulakovich

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which key is used to represent relationships between tables?

Foreign key

Primary key

Secondary key

Tertiary key

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the relationship between tables in a database called?

Foreign key relationship

Primary key relationship

Unique key relationship

Composite key relationship

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the given SQL query, what is being selected?

SELECT supplierID

FROM products

WHERE productName LIKE '%bread%';

productName

supplierID

productID

customerID

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the purpose of the '%' symbol in the SQL query?

SELECT supplierID

FROM products

WHERE productName LIKE '%bread%';

To represent a wildcard for any sequence of characters

To denote a comment

To specify a column name

To indicate a table name

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is being queried in the example?

SELECT *

FROM suppliers

WHERE id IN ( SELECT DISTINCT supplierID

FROM products

WHERE productName LIKE '%bread%' );

Customer data

Supplier data

Order data

Employee data

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would be the result if the 'LIKE' clause was changed to 'NOT LIKE' in the query?

SELECT DISTINCT supplierID

FROM products

WHERE productName LIKE '%bread%';

It would select all products

It would select products not containing 'bread'

It would select products containing 'bread'

It would cause an error

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the SQL function MIN() return?

The maximum value in a column

The average value in a column

The minimum value in a column

The sum of values in a column

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?

Discover more resources for Information Technology (IT)