Guest User

Untitled

a guest
Feb 24th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.00 KB | None | 0 0
  1. CREATE TABLE [table].[Orders](
  2. [OrderID] [int] IDENTITY(1,1) NOT NULL,
  3. [CustomerID] [nchar](5) NULL,
  4. [ProductType] [int] NULL,
  5. [OrderDate] [datetime] NULL,
  6. CONSTRAINT [PK_Orders] PRIMARY KEY
  7. (
  8. [OrderID] ASC
  9. ) ON [PRIMARY]
  10. GO
  11. SET IDENTITY_INSERT [dbo].[Orders] ON
  12. INSERT [table].[Orders] ([OrderID], [CustomerID], [ProductType],[OrderDate])
  13. VALUES (10248, N'VINET', Apple iphone, 12/2/2002)
  14. INSERT [table].[Orders] ([OrderID], [CustomerID], [ProductType],[OrderDate])
  15. VALUES (10249, N'TOMSP', Gadgets, 12/3/2002))
  16. INSERT [table].[Orders] ([OrderID], [CustomerID], [ProductType],[OrderDate])
  17. VALUES (10250, N'HANAR', Black dress and shoes, 12/4/2002)
  18. INSERT [table].[Orders] ([OrderID], [CustomerID], [ProductType],[OrderDate])
  19. VALUES (10251, N'VICTE', Sony LED TV, 12/5/2002)
  20. INSERT [table].[Orders] ([OrderID], [CustomerID], [ProductType],[OrderDate])
  21. VALUES (10252, N'SUPRD', Gym equipements, 12/6/2002)
  22.  
  23. CREATE TABLE [table].[Customers](
  24. [CustomerID] [nchar](5) NOT NULL,
  25. [Name] [nvarchar](30) NULL,
  26. [ContactTitle] [nvarchar](30) NULL,
  27. [Place] [nvarchar](60) NULL,
  28. CONSTRAINT [PK_Customers] PRIMARY KEY
  29. (
  30. [CustomerID] ASC
  31. ) ON [PRIMARY]
  32. GO
  33. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  34. VALUES (N'TOMSP', 'Maria', 'Sales Representative', 'Berlin')
  35. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  36. VALUES (N'ANATR'', 'Ana', 'Owner', 'México')
  37. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  38. VALUES (N'ANTON', 'Antonio', 'Owner', 'México')
  39. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  40. VALUES (N'AROUT', 'Thomas Hardy', 'Sales Representative', 'London')
  41. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  42. VALUES (N'VINET', 'Christina', 'Order Administrator', Japan)
  43. INSERT [table].[Customers] ([CustomerID], [Name], [ContactTitle], [Place])
  44. VALUES (N'SUPRD', 'Hanna', 'Sales Representative',Germany)
  45.  
  46. 'Hanna' a 'sales representative' from 'Germany' bought 'Gym equipemnts' on '12/6/2002'
Add Comment
Please, Sign In to add comment