exam questions

Exam 98-364 All Questions

View all questions & answers for the 98-364 exam

Exam 98-364 topic 1 question 143 discussion

Actual exam question from Microsoft's 98-364
Question #: 143
Topic #: 1
[All 98-364 Questions]

You work as a database developer for www.company.com.com.
The company has a database named www.company.com that is hosted on a SQL Server 2008 server. The database includes a table named Employees, which contains the details of the employees.
You want to ensure that anytime any data in the Employees table is modified with an UPDATE statement, they are recorded in a table named EmployeeChanges.
The EmployeeChanges table includes columns to record what the change was, who made the change, and when they made the change.
What should you create to meet this need?

  • A. A DDL trigger that queries the updated table
  • B. A DML trigger that queries the inserted table
  • C. A DDL trigger that queries the inserted table
  • D. A DML trigger that queries the updated table
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
textes
Highly Voted 3 years, 9 months ago
I think D, because youre monitoring for updates on the source table.
upvoted 5 times
Jeebs
3 years ago
There is 2 special tables, inserted and deleted which is managed by sql server for trigger purposes. This question should be referring to those 2 tables. Thus answer should be B.
upvoted 1 times
...
...
JamesBond
Most Recent 3 years ago
Answer is D, coz when table is modified with an UPDATE, means when the data is UPDATED not the table structure is modified or the data is INSERTED. DML statements include SELECT, INSERT, UPDATE, and DELETE only
upvoted 1 times
...
cyfrogaleria
3 years, 7 months ago
B is correct: https://docs.microsoft.com/en-us/sql/relational-databases/triggers/use-the-inserted-and-deleted-tables?view=sql-server-ver15
upvoted 2 times
...
ThiagoDBA
3 years, 9 months ago
acredito que seja D
upvoted 2 times
...
BD69
3 years, 9 months ago
it should be A DML trigger that queries the table that an insert was performed on. But hey, this is MS, their wording is syntactically incorrect
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...