Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

SQL and Database Concepts Quiz

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

ROLLBACK in a database is a ____ statement.

a)

DDL

b)

DML

c)

DCL

d)

TCL

2.

Which SQL statement should you use to retrieve data from a database table?

a)

Insert

b)

Update

c)

Delete

d)

Select

3.

What will be returned when the following SQL is executed: SELECT driver_no, count(*) as num_deliveries FROM DELIVERIES WHERE state = 'MA' GROUP BY driver_no

a)

A listing of all drivers who made deliveries to state = 'MA', sorted by driver number

b)

A listing of each driver who made deliveries to 'MA' and number of deliveries

c)

A count of all deliveries to 'MA' by all drivers

d)

An error message

4.

SELECT * FROM A UNION SELECT * FROM B (with different column counts)

a)

All fields of both tables displayed

b)

Returns error: number of rows different

c)

Returns error: number of columns different

d)

All fields from table A displayed

5.

Select invalid type of Trigger.

a)

Select

b)

Insert

c)

Update

d)

Delete

6.

Which is NOT an advantage of using Stored Procedures?

a)

Reduce client traffic

b)

Reuse of code

c)

Maintainability

d)

Testing of encapsulated logic

7.

Choose the WRONG statement.

a)

PL/SQL is Oracle's extension

b)

T-SQL is procedural

c)

Transact-SQL is MS extension

d)

SQL is a procedural language

8.

Most common type of join?

a)

Left Join

b)

Inner Join

c)

Right Join

d)

Full Join

9.

____ represents raw facts, ____ is meaningful data.

a)

Information, bits

b)

Information, reporting

c)

Data, information

d)

Records, bytes

10.

A data warehouse:

a)

Contains naming conventions

b)

Used for reporting & analysis

c)

Current data only

d)

End-user updates

11.

Authentication modes in SQL Server:

a)

Windows

b)

Mixed mode

c)

Both A & B

d)

None

12.

Keyword to raise error in SP:

a)

THROW

b)

THROWERROR

c)

RAISERROR

d)

ERROR

13.

Wildcard to exclude names starting with e to g:

a)

[^e-g]%

b)

[e-g]%

c)

[e^g]%

d)

[efg]%

14.

DBA coordinates between:

a)

DB, users

b)

App, DB

c)

DBMS, DB

d)

App, users

15.

Executable statement to access data is:

a)

Query

b)

Transaction

c)

Operation

d)

Statement