Lektion 2: lösningsförslag
- UPDATE Customer
- SET CreditLimit = CreditLimit + 500
- UPDATE Customer
- SET CreditLimit = CreditLimit + 500
- WHERE State = 'CA'
- DELETE FROM Customer
- WHERE State = 'OR' OR State = 'UT'
- Category IN ('computer', 'telephone', 'TV')
- UPDATE Product
- SET Price = Price - 50
- UPDATE Product
- SET Price = Price * 0.8
- UPDATE Product
- SET Price = Price - 50
- WHERE Price >= 50
- UPDATE Product
- SET Price = Price - 50
- WHERE Price >= 50
- UPDATE Product
- SET Price = 0
- WHERE Price < 50
- INSERT INTO Production.Product (Name, ProductNumber, SafetyStockLevel, ReorderPoint, StandardCost, ListPrice, DaysToManufacture, SellStartDate)
- VALUES ('Test Product', 'TEST123', 100, 200, 300, 400, 5, '2010-01-01')