wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Database Query Basics Quiz

Total questions: 20

Worksheet time: 10mins

Name
Class
Date
1.

What is a parameter query?

a)

A query that retrieves all records in a table

b)

A query that prompts the user for input when it runs

c)

A query that deletes records from a database

d)

A query that only works with one table

2.

What symbol is used for a wildcard character in a query?

a)

@

b)

*

c)

#

d)

&

3.

Which of the following is an example of a wildcard search?

a)

LIKE "J*"

b)

= "James"

c)

> 2000

d)

SUM(Amount)

4.

A multi-table query is used to...

a)

Retrieve data from multiple tables using relationships

b)

Delete all records in a table

c)

Sort records in ascending order

d)

Create a new table from an existing one

5.

What does the SQL statement SELECT * FROM Books WHERE Title LIKE "A*"; do?

a)

Selects all books with titles that start with "A"

b)

Deletes all books with titles that start with "A"

c)

Selects all books published in the year "A"

d)

Displays only books whose title contains "A"

6.

A query that asks the user to input a value before running is called a...

a)

Wildcard query

b)

Parameter query

c)

Append query

d)

Multi-table query

7.

What does LIKE "?istory" return?

a)

Only the word "history"

b)

Any word ending with "istory" but with any first letter

c)

Only the word "mystory"

d)

An error message

8.

A multi-table query requires...

a)

Only one table

b)

A relationship between tables

c)

A parameter value

d)

A delete operation

9.

In a query, which of the following retrieves all students whose first name starts with "S"?

a)

WHERE FirstName = "S"

b)

WHERE FirstName LIKE "S*"

c)

WHERE FirstName LIKE "*S"

d)

WHERE FirstName = "*S*"

10.

Which of these criteria is used in a multi-criteria query?

a)

AND

b)

OR

c)

NOT

d)

All of the above

11.

What does the AND operator do in a query?

a)

Retrieves records that meet both conditions

b)

Retrieves records that meet only one condition

c)

Deletes all records in the table

d)

Sorts records in descending order

12.

Which query would find books written by "John Smith" before 2000?

a)

WHERE Author="John Smith" OR YearPublished2000;

b)

WHERE Author="John Smith" NOT YearPublished<2000;

13.

A multi-table query helps in...

a)

Summarizing data from a single table

b)

Joining data from multiple related tables

c)

Deleting multiple tables at once

d)

Changing the structure of a table

14.

In a parameter query, how do you ask the user to enter a grade?

a)

WHERE Grade = [Enter Grade]

b)

WHERE Grade = ?

c)

WHERE Grade LIKE "*"

d)

WHERE Grade IS NULL

15.

What would WHERE Grade=9 AND Section="A"; return?

a)

Only students in Grade 9

b)

Only students in Section "A"

c)

Students in Grade 9 and Section "A"

d)

All students in the database

16.

What does LIKE "*math*" return?

a)

Only records that start with "math"

b)

Only records that end with "math"

c)

Records that contain "math" anywhere in the text

d)

Records that contain only the word "math"

17.

Which of these statements is TRUE about a wildcard query?

a)

Wildcards work only with numbers

b)

Wildcards replace specific characters in a text search

c)

Wildcards cannot be used with LIKE statements

d)

Wildcards can only be used in parameter queries

18.

What is the result of LIKE "J*n"?

a)

Words starting with "J" and ending with "n"

b)

Words that only start with "J"

c)

Words that only end with "n"

d)

All words in the database

19.

What is the main purpose of using multi-criteria in queries?

a)

To filter data based on multiple conditions

b)

To add new records to a database

c)

To delete data from multiple tables

d)

To create a new table

20.

What does a parameter query do when executed?

a)

It asks the user for input before running

b)

It runs automatically without user input

c)

It deletes records

d)

It creates a new database