Microsoft
70-457 · Question #56
You develop a Microsoft SQL Server 2012 server database that supports an application. The application contains a table that has the following definition: CREATE TABLE Inventory ( ItemID int NOT NULL…
The correct answer is B. ALTER TABLE Inventory. See the full explanation below for the reasoning.
Question
You develop a Microsoft SQL Server 2012 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. The new column is expected to be queried heavily, and you need to be able to index the column. Which Transact-SQL statement should you use?
Options
- AALTER TABLE Inventory
- BALTER TABLE Inventory
- CALTER TABLE Inventory
- DALTER TABLE Inventory
How the community answered
(26 responses)- A8% (2)
- B73% (19)
- C15% (4)
- D4% (1)
Community Discussion
No community discussion yet for this question.