Professional Documents
Culture Documents
Soal
ProductID ProductCategory
32 Books
25 Books
67 Movies
89 Movies
Which database term is used to describe the relationship between ProductID and
ProductCategory?
A. Compositional
B. Deterministic
C. Cohort
D. Functionally dependent
E. Relationally dependent
A. Foreign
B. Super key
C. Local
D. Primary
A. Composite keys
B. Duplicate rows
C. Foreign keys
D. Repeating groups
4. You combine data from three tables into one table. The new table includes redundancy to
optimize read performance
The data in the new table has been denormalized
Instructions. Review the underlined text. If it makes the statement correct, select “ No Change is
needed” if the statement incorrect, select the answer choice that makes the statement correct
A. Truncated
B. No change is needed
C. Normalized
D. Indexed
5. You have a table named Product that contains the following data
The ProductID Column is the primary key. The CategoryID column is a foreign key to a separate
table named Category.
What is te result?
A. A syntax error
B. A primary key constraint violation
C. A new row in the category table
D. A new row in the Product table
E. A foreign key constraint violation
6. Which two keys establish a relationship between two tables ? choose two
A. Foreign
B. Primary
C. Local
D. Candidate
E. Superkey
7. Which two SQL construct represent data manipulation language (DML) statement ? choose two
A. Remove table
B. Delete table
C. Update table
D. Drop table
9. The component that holds information for a single entry in a table is called a :
A. Data type
B. Row
C. View
D. Column
10. In SQL, an INSERT statement is used to add a :
A. User to a database
B. Row of data to a table
C. Column to a table definition
D. Table to a database.
11. You need to delete a database table
A. DELETE
B. ALTER
C. DROP
D. TRUNCATE
12. Which is one difference between an UPDATE statement and a DELETE statement?
A. Function
B. Stored procedure
C. Row
D. Variable
ID Name Quantity
1234 Spoon 33
2615 Fork 17
3781 Plate 20
4589 Cup 51
A. 2
B. 4
C. 1
D. 3
16. You have a table of products with fields for ProductID, Name , and Price
You need to write an UPDATE statement that sets the value in the InStock field to Yes for a
specific ProductID.
A. WHERE
B. GROUP BY
C. THAT
D. HAVING
17. You have a table named Employee that includes the following columns:
EmployeeID
EmployeeName
Which statement should you use to return the number of rows in the table?
SELECT *
FROM Employee
SELECT COUNT (*)
FROM Employee
SELECT COUNT (rows)
FROM Employee
SELECT SUM (*)
FROM Employee
18. Your database contains a table named Customer. You need to delete the record from the
customer table that has a CustomerID of 12345.
DELETE CustomerID
FROM Customer
WHERE CustomerID = 12345
UPDATE Customer
DELETE *
WHERE CustomerID = 12345
DELETE FROM Customer
WHERE CustomerID = 12345
UPDATE CustomerID
FROM Customer
DELETE *
WHERE CustomerID = 12345
19. You delete rows in a table named order. The corresponding rows in the Orderitem table are
automatically deleted.
A. Functional delete
B. Cascade delete
C. Waterfall delete
D. Domino delete
E. Inherited delete
20. Which keyword would you use in a SELECT statement to return rows that meet a specific
condition?
A. FROM
B. ORDER BY
C. WHERE
D. UNION
A. JOIN
B. INSERT
C. CREATE
D. UPDATE
22. The UNION Keyword combines the result of two queries and returns only rows that appear in
both result set .
Instructions. Review the underlined text. If it makes the statement correct, select “ No Change is
needed” if the statement incorrect, select the answer choice that makes the statement correct
A. No change is needed
B. ALL
C. JOIN
D. INTERSECT
23. You have a table that contains information about all students in your school
You use the INSERT SQL keyword to change a students’s given name in the table.
You use the INSERT SQL keyword to change a student’s given name in the table
Instructions. Review the underlined text. If it makes the statement correct, select “ No Change is
needed” if the statement incorrect, select the answer choice that makes the statement correct
A. UPDATE
B. No change is needed
C. CHANGE
D. SELECT
24. You need to populate a table named EmployeeCopy With data from an existing table named
Employee.
25. Instructions : for each of the following statements, select yes if the statement is true. Otherwise,
select No. Each correct selection is worth one point.
Statement YES NO
You can delete data by using a stored procedure o
A function must have a return value o
A stored procedure must have a return value o
26. You need to remove a view named EmployeeView from your database.
Instructions. Review the underlined text. If it makes the statement correct, select “ No Change is
needed” if the statement incorrect, select the answer choice that makes the statement correct
A. No change is needed
B. Limit access to specific rows of columns of data in a table
C. Save historical data before deleting it from the base table
D. Save an extra copy data stored in a separate table
28. You have the following table definition :
RoadID Distance
1234 22
1384 34
29. Instructions : for each of the following statements, select yes if the statement is true. Otherwise,
select No. Each correct selection is worth one point.
Statement YES NO
The VARCHAR data type contains only numeric o
characters
The NUMERIC data type contains only numbers o
that have decimal places
The INT data type contains only whole numbers o
32. Instructions : for each of the following statements, select yes if the statement is true. Otherwise,
select No. Each correct selection is worth one point.
Statement YES NO
A Full database backup is a copy of all of the data
in the entire database
A transaction log backup up all the data in the
database
A differential backup copies only data that was
changed before the last full backup
A file or filegroup restore specifies a portion of
the database to recover
33. Your assign user1 a set of permissions that include the WITH GRANT OPTION.