exam questions

Exam 70-461 All Questions

View all questions & answers for the 70-461 exam

Exam 70-461 topic 1 question 1 discussion

Actual exam question from Microsoft's 70-461
Question #: 1
Topic #: 1
[All 70-461 Questions]

You develop a Microsoft SQL Server database that supports an application. The application contains a table that has the following definition:

CREATE TABLE Inventory -
(ItemID int NOT NULL PRIMARY KEY,
ItemsInStore int NOT NULL,
ItemsInWarehouse int NOT NULL)
You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row.
Which Transact-SQL statement should you use?

  • A. ALTER TABLE Inventory ADD TotalItems AS ItemsInStore + ItemsInWarehouse
  • B. ALTER TABLE Inventory ADD ItemsInStore - ItemsInWarehouse = TotalItemss
  • C. ALTER TABLEInventory ADD TotalItems = ItemsInStore + ItemsInWarehouse
  • D. ALTER TABLE Inventory ADD TotalItems AS SUM(ItemsInStore, ItemsInWarehouse);
Show Suggested Answer Hide Answer
Suggested Answer: A 🗳️
Reference:
http://technet.microsoft.com/en-us/library/ms190273.aspx

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
ngocyw
1 year, 1 month ago
C. ALTER TABLEInventory ADD TotalItems = ItemsInStore + ItemsInWarehouse
upvoted 1 times
...
Anapuspita
5 years, 5 months ago
ALTER TABLE Inventory ADD TotalItems AS ItemsInStore + ItemsInWarehouse
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 ...