Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

MTA Mga Questions na mali si Justine

Total questions: 22

Worksheet time: 11mins

Name
Class
Date
1.

a)

return large result sets

b)

return a range of values by using the = operator

c)

do not use ORDER BY or GROUP BY clauses

2.

are accessed randomly

a)

are accessed sequentially

b)

are not unique or contain many common values

3.

Use the ALTER statement to add a new table in a database.

a)

No change is needed

b)

UPDATE

c)

INSERT

d)

CREATE

4.

Which keyword can be used in a create table statement?

a)

ORDER BY

b)

DISTINCT

c)

GROUP BY

d)

UNIQUE

5.

You need to create a view to filter rows of data from an underling table.

Which type of clause must be included in the CREATE VIEW statement?

a)

CONSTRAINT

b)

WHERE

c)

JOIN

d)

FILTER

6.

Which command should you use to add a column to an existing table?

a)

A. MODIFY

b)

B. ALTER

c)

C. UPDATE

d)

D. INSERT

e)

E. CHANGE

7.

The PrcducrID column is the primary key. The CategoryID column is a foreign key to a separate table named Category. You execute the following statement:

INSERT INTO Product
VALUES (3296, 'Table', 4444)

What is the result?

a)

a foreign key constraint violation

b)

a syntax error

c)

a new row in the Product table

d)

D. a primary key constraint violation

e)

a new row in the Category table

8.

You have two tables named Salesperson and Sales.
You need to ensure that each record in the Sales table has a valid associated salesperson record in

the Salesperson table.
Which database object should you add to the Sales table?

a)

A. Nonclusteredindex

b)

B. Primarykey

c)

C. Foreign key

d)

D. Clustered index

9.

Which keyword must be included in a create view statement?

a)

A. WHERE

b)

B. ORDERBY

c)

C. UPDATE

d)

D. SELECT

10.

ALTER TABLE removes all rows from a table without logging the individual row deletions.

a)

A. Nochangeisneeded

b)

B. DROPTABLE

c)

C. TRUNCATE TABLE

d)

D. CREATE TABLE

11.

You need to populate a table named EmployeeCopy with data from an existing table named Employee.

Which statement should you use?

a)

b)

c)

d)

12.

A key defines the amount of storage space that is allocated to a value in a column.

a)

A. Nochangeisneeded

b)

B. format

c)

C. data type

d)

D. validator

13.
a)

b)

c)

d)

14.

Which statement creates a composite key?

a)

b)

c)

d)

15.

You have a table named Product. You create a view that includes all the products from the Product table that are in the Furniture category.

You execute a statement on the Product table that deletes all the products in the Furniture category. After you execute the statement, the result set of the view is:

a)

A. Empty

b)

B. Deleted

c)

C. Unchanged

d)

D. Archived

16.

One reason to create a stored procedure is to:

a)

A. Improveperformance.

b)

B. Minimizestoragespace.

c)

C. Bypass case sensitivity requirements.

d)

D. Give the user control of the query logic.

17.

You need to combine the results of two queries into a single result that contains all of the rows from both queries.

Which Structured Query Language (SQL) statement should you use?

a)

TRUNCATE

b)

B. JOIN

c)

C. EXCEPT

d)

D. UNION

18.

No non-prime attribute in the table is functionally dependent on a proper subset of a candidate key

a)

1NF

b)

2NF

c)

3NF

d)

4NF

e)

5NF

19.

Every non-trivial join dependency in the table is implied by the superkeys of the table

a)

1NF

b)

2NF

c)

3NF

d)

4NF

e)

5NF

20.

Every non-prime attribute is non-transitively dependent on every candidate key in the table

a)

1NF

b)

2NF

c)

3NF

d)

4NF

e)

5NF

21.

Every non-trivial multivalued dependency in the table is a dependency on a superkey

a)

1NF

b)

2NF

c)

3NF

d)

4NF

e)

5NF

22.

Table has no repeating groups

a)

1NF

b)

2NF

c)

3NF

d)

4NF

e)

5NF