CertyRush
Đang tải...
C CertyRush
Câu hỏi free preview

Câu 3: 70-461: MCSA Querying Microsoft SQL Server 2012/2014

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 o…

Nội dung câu hỏi

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?

Các lựa chọn

Đáp án được giữ gọn theo nhãn A, B, C, D trong phần bình chọn tương tác.

  1. A. ALTER TABLE Inventory ADD TotalItems AS ItemsInStore + ItemsInWarehouse — đáp án hiện tại
  2. B. ALTER TABLE Inventory ADD ItemsInStore - ItemsInWarehouse = TotalItemss
  3. C. ALTER TABLEInventory ADD TotalItems = ItemsInStore + ItemsInWarehouse
  4. D. ALTER TABLE Inventory ADD TotalItems AS SUM(ItemsInStore, ItemsInWarehouse);

Cộng đồng

0 bình luận công khai. Tên thành viên được ẩn một phần.

Chưa có bình luận. Mở giao diện tương tác để bắt đầu thảo luận.

Câu hỏi liền kề