PrepAway - Latest Free Exam Questions & Answers

Author: seenagape

How will you design the database so that you can query the last increment given to a particular employee?

You have created a database for employee management. The database has a table named Employees. The
table has the following attributes:
Name
Address
Contact Number
Designation
You want to store the salary information for each employee. The database should also store salary history.
How will you design the database so that you can query the last increment given to a particular employee?

Which of the following queries will he use to accomplish the task?

John works as a Database Administrator in www.company.com Inc. The company has a SQL Server database.
John wants to create a table named employees in thedatabase. The table will have the id, firstname,
lastname, and dateofbirth columns. John has to ensure that the lastname column does not allow null values.
Which of the following queries will he use to accomplish the task?

Which of the following code will create the triggerto meet your goals?

You are a database developer for a database named Sales hosted on a SQL Server 2008 server. The Sales
database includes the Exams and
ExamQuestions tables. If any questions are modifiedfor an exam, you need to ensure that the
ExamModifiedDate in the Exams table is
updated with the date and time of the update. The ExamQuestions table includes an INSTEAD OF trigger that
records when and who last
modified each question. Therefore, you decide to create a trigger. You only want the trigger to fire if a
constraint violation has not occurred.
Which of the following code will create the triggerto meet your goals?