DBI202Xuất hiện trong 2 đề thi
Given a relation: Laptop(model, speed, ram, hd, price) What will this function return when called with dbo.GetLaptopPrice(1)? ```sql CREATE FUNCTION dbo.GetLaptopPrice (@model INT) RETURNS BIGINT AS BEGIN DECLARE @price BIGINT SELECT @price = price FROM Laptop WHERE model = @model RETURN @price END ```
Các lựa chọn
AThe average laptop price with model = 1
BThe price of all laptops
CThe price of laptop with model = 1
DThe model of laptop with price = 1