Microsoft
70-433 · Question #25
You work as a network database administrator at ABC.com. ABC.com has a database server named ABC-DB02 hosting the Inventory database. The Inventory database has two tables named Sales and SalesRep…
The correct answer is B. By creating a Transact-SQL statement utilizing the DELETE FROM SalesRep. See the full explanation below for the reasoning.
Question
You work as a network database administrator at ABC.com. ABC.com has a database server named ABC-DB02 hosting the Inventory database. The Inventory database has two tables named Sales and SalesRep that are related by a foreign key with the CASCADE DELETE option. How would have the records of the Sales table removed?
Options
- ABy creating a Transact-SQL statement utilizing the ALTER TABLE Sales.
- BBy creating a Transact-SQL statement utilizing the DELETE FROM SalesRep.
- CBy creating a Transact-SQL statement utilizing the TRUNCATE DATABASE Inventory.
- DBy creating a Transact-SQL statement utilizing the INSTEAD OF DELETE.
- EBy creating a Transact-SQL statement utilizing the DELETE TOP Sales.
How the community answered
(22 responses)- B82% (18)
- C5% (1)
- D5% (1)
- E9% (2)
Community Discussion
No community discussion yet for this question.