Ta brskalnik ni več podprt.
Izvedite nadgradnjo na Microsoft Edge, če želite izkoristiti vse prednosti najnovejših funkcij, varnostnih posodobitev in tehnične podpore.
You want to insert data from the Store.Product table into an existing table named Sales.Offer. Which statement should you use?
INSERT INTO Sales.Offer SELECT ProductID, Name, Price*0.9 FROM Store.Product;
SELECT ProductID, Name, Price*0.9 FROM Store.Product INTO Sales.Offer;
INSERT INTO Sales.Offer (ProductID, Name, Price*0.9) VALUES (Store.Product);
You need to determine the most recently inserted IDENTITY column in the Sales.Invoice table. Which statement should you use?
SELECT SCOPE_IDENTITY() FROM Sales.Invoice;
SELECT IDENT_CURRENT('Sales.Invoice');
SELECT NEXT VALUE FOR Sales.Invoice;
You must increase the Price of all products in category 2 by 10%. Which statement should you use?
UPDATE Store.Product SET Price = Price * 1.1, Category = 2;
UPDATE Store.Product SET Price = Price * 1.1 WHERE Category = 2;
SELECT Price * 1.1 INTO Store.Product FROM Store.Product WHERE Category = 2;
You must answer all questions before checking your work.
Ali je bila ta stran uporabna?
Ali potrebujete pomoč za to temo?
Ali želite preskusiti storitev Ask Learn, ki pojasni ali vas vodi skozi to temo?