Advertisement
svetlyoek

Untitled

Sep 25th, 2019
186
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.46 KB | None | 0 0
  1. CREATE DATABASE Orders;
  2. GO
  3.  
  4. USE Orders;
  5. GO
  6. CREATE TABLE Orders
  7. (
  8. Id INT NOT NULL,
  9. ProductName VARCHAR(50) NOT NULL,
  10. OrderDate DATETIME NOT NULL
  11. CONSTRAINT PK_Orders PRIMARY KEY (Id)
  12. )
  13.  
  14. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (1, 'Butter', '20160919');
  15. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (2, 'Milk', '20160930');
  16. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (3, 'Cheese', '20160904');
  17. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (4, 'Bread', '20151220');
  18. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (5, 'Tomatoes', '20150101');
  19. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (6, 'Tomatoe2', '20150201');
  20. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (7, 'Tomatoess', '20150401');
  21. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (8, 'Tomatoe3', '20150128');
  22. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (9, 'Tomatoe4', '20150628');
  23. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (10, 'Tomatoe44s', '20150630');
  24. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (11, 'Tomatoefggs', '20150228');
  25. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (12, 'Tomatoesytu', '20160228');
  26. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (13, 'Toyymatddoehys', '20151231');
  27. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (14, 'Tom443atoes', '20151215');
  28. INSERT INTO Orders (Id, ProductName, OrderDate) VALUES (15, 'Tomat65434foe23gfhgsPep', '20151004');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement