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

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

You develop a Microsoft SQL Server database. You need to create and call a stored procedure that meets the following requirements: ✑ Accepts a single input parameter for CustomerID. ✑ Returns a single integer to the calling application. Which two Transact-SQL statements should you use? Each correct answer presents par…

Nội dung câu hỏi

You develop a Microsoft SQL Server database. You need to create and call a stored procedure that meets the following requirements: ✑ Accepts a single input parameter for CustomerID. ✑ Returns a single integer to the calling application. Which two Transact-SQL statements should you use? Each correct answer presents part of the solution.

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. CREATE PROCEDURE dbo.GetCustomerRating @CustomerID INT, @CustomerRating INT OUTPUT AS SET NOCOUNT ON SELECT @CustomerRating = CustomerOrders/CustomerValue FROM Customers WHERE CustomerID = @CustomerID RETURN GO — đáp án hiện tại
  2. B. EXECUTE dbo.GetCustomerRating 1745
  3. C. DECLARE @CustomerRatingByCustomer INT DECLARE @Result INT EXECUTE @Result = dbo.GetCustomerRating 1745, @CustomerRatingByCustomer
  4. D. CREATE PROCEDURE dbo.GetCustomerRating @CustomerID INT, @CustomerRating INT OUTPUT AS SET NOCOUNT ON SELECT @Result = CustomerOrders/CustomerValue FROM Customers WHERE CustomerID = @CustomerID RETURN @Result GO
  5. E. DECLARE @CustomerRatingByCustomer INT EXECUTE dbo.GetCustomerRating @CustomerID = 1745, @CustomerRating = @CustomerRatingByCustomer OUTPUT — đáp án hiện tại
  6. F. CREATE PROCEDURE dbo.GetCustomerRating @CustomerID INT AS DECLARE @Result INT SET NOCOUNT ON SELECT @Result = CustomerOrders/CustomerValue FROM Customers WHERE CustomerID = @CustomerID

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ề