Questo browser non è più supportato.
Esegui l'aggiornamento a Microsoft Edge per sfruttare i vantaggi di funzionalità più recenti, aggiornamenti della sicurezza e supporto tecnico.
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.
Questa pagina è stata utile?
Serve aiuto con questo argomento?
Provare a usare Ask Learn per chiarire o guidare l'utente in questo argomento?