Guest User

Untitled

a guest
Nov 17th, 2018
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 47.04 KB | None | 0 0
  1. create table Suppliers ( --popylneno
  2. supplier_id int NOT NULL PRIMARY KEY,
  3. supplier_name varchar(255),
  4. supplier_phone varchar(10),
  5. supplier_email varchar(255),
  6. other_details text
  7. );
  8.  
  9. INSERT INTO Suppliers (supplier_id, supplier_name, supplier_phone, supplier_email,other_details)
  10. VALUES (305,'Speedy Express','0888951214','speedyexpress@speedyexpress.com','');
  11. INSERT INTO Suppliers (supplier_id, supplier_name, supplier_phone, supplier_email,other_details)
  12. VALUES (306,'United Package','0888951215','unitedpackage@unitedpackage.com','');
  13.  
  14.  
  15.  
  16.  
  17.  
  18.  
  19. Select * from Suppliers
  20.  
  21.  
  22.  
  23.  
  24. create table Employees ( --popylneno
  25. employee_id int NOT NULL PRIMARY KEY,
  26. employee_fname varchar(50),
  27. employee_lname varchar(50),
  28. employee_phone varchar(10),
  29. other_employee_details text
  30. );
  31.  
  32. INSERT INTO Employees (employee_id, employee_fname,employee_lname, employee_phone, other_employee_details)
  33. VALUES (10,'Viktor','Dimitrov','0895785661','');
  34. INSERT INTO Employees (employee_id, employee_fname,employee_lname, employee_phone, other_employee_details)
  35. VALUES (11,'Ivan','Georgiev','0895785662','');
  36. INSERT INTO Employees (employee_id, employee_fname,employee_lname, employee_phone, other_employee_details)
  37. VALUES (12,'Petyr','Petrov','0895785663','');
  38. INSERT INTO Employees (employee_id, employee_fname,employee_lname, employee_phone, other_employee_details)
  39. VALUES (13,'Stoqn','Stoqnov','0895785664','');
  40. INSERT INTO Employees (employee_id, employee_fname,employee_lname, employee_phone, other_employee_details)
  41. VALUES (14,'Yordan','Stoqnov','0895785665','');
  42.  
  43.  
  44.  
  45. Select * from Employees
  46.  
  47.  
  48. create table Addresses ( --popylneno
  49. address_id int NOT NULL PRIMARY KEY,
  50. steet varchar(50),
  51. city varchar(20),
  52. country varchar(20),
  53. );
  54.  
  55. INSERT INTO Addresses (address_id, steet, city,country)
  56. VALUES (2001,'Vasil Levski #12','Sofia','Bulgaria');
  57. INSERT INTO Addresses (address_id, steet, city,country)
  58. VALUES (2002,'Vasil Levski #14','Sofia','Bulgaria');
  59. INSERT INTO Addresses (address_id, steet, city,country)
  60. VALUES (2003,'Vasil Levski #55','Sofia','Bulgaria');
  61. INSERT INTO Addresses (address_id, steet, city,country)
  62. VALUES (2004,'Vitoshka #44','Sofia','Bulgaria');
  63. INSERT INTO Addresses (address_id, steet, city,country)
  64. VALUES (2005,'Vitoshka #11','Sofia','Bulgaria');
  65. INSERT INTO Addresses (address_id, steet, city,country)
  66. VALUES (2006,'Vitoshka #77','Sofia','Bulgaria');
  67. INSERT INTO Addresses (address_id, steet, city,country)
  68. VALUES (2007,'Aleksandrovska #2','Ruse','Bulgaria');
  69. INSERT INTO Addresses (address_id, steet, city,country)
  70. VALUES (2008,'Aleksandrovska #6','Ruse','Bulgaria');
  71. INSERT INTO Addresses (address_id, steet, city,country)
  72. VALUES (2009,'Aleksandrovska #15','Ruse','Bulgaria');
  73. INSERT INTO Addresses (address_id, steet, city,country)
  74. VALUES (2010,'Slavqnska #3','Plovdiv','Bulgaria');
  75. INSERT INTO Addresses (address_id, steet, city,country)
  76. VALUES (2011,'Slavqnska #33','Plovdiv','Bulgaria');
  77. INSERT INTO Addresses (address_id, steet, city,country)
  78. VALUES (2012,'Slavqnska #29','Plovdiv','Bulgaria');
  79. INSERT INTO Addresses (address_id, steet, city,country)
  80. VALUES (2013,'Slavqnska #3','Plovdiv','Bulgaria');
  81. INSERT INTO Addresses (address_id, steet, city,country)
  82. VALUES (2014,'Panayot Hitov #25','Sliven','Bulgaria');
  83. INSERT INTO Addresses (address_id, steet, city,country)
  84. VALUES (2015,'Panayot Hitov #37','Sliven','Bulgaria');
  85. INSERT INTO Addresses (address_id, steet, city,country)
  86. VALUES (2016,'Panayot Hitov #1','Sliven','Bulgaria');
  87. INSERT INTO Addresses (address_id, steet, city,country)
  88. VALUES (2017,'Novo selo #13','Sliven','Bulgaria');
  89. INSERT INTO Addresses (address_id, steet, city,country)
  90. VALUES (2018,'Peyo Yavorov #6','Aitos','Bulgaria');
  91. INSERT INTO Addresses (address_id, steet, city,country)
  92. VALUES (2019,'Peyo Yavorov #21','Karnobat','Bulgaria');
  93. INSERT INTO Addresses (address_id, steet, city,country)
  94. VALUES (2020,'Geo Milev #55','Burgas','Bulgaria');
  95. INSERT INTO Addresses (address_id, steet, city,country)
  96. VALUES (2021,'Geo Milev #48','Burgas','Bulgaria');
  97. INSERT INTO Addresses (address_id, steet, city,country)
  98. VALUES (2022,'Geo Milev #12','Burgas','Bulgaria');
  99. INSERT INTO Addresses (address_id, steet, city,country)
  100. VALUES (2023,'Trakia #13','Varna','Bulgaria');
  101. INSERT INTO Addresses (address_id, steet, city,country)
  102. VALUES (2024,'Trakia #66','Varna','Bulgaria');
  103. INSERT INTO Addresses (address_id, steet, city,country)
  104. VALUES (2025,'Trakia #4','Varna','Bulgaria');
  105. INSERT INTO Addresses (address_id, steet, city,country)
  106. VALUES (2026,'Ivan Vazov #3','Stara Zagora','Bulgaria');
  107. INSERT INTO Addresses (address_id, steet, city,country)
  108. VALUES (2027,'Ivan Vazov #12','Stara Zagora','Bulgaria');
  109. INSERT INTO Addresses (address_id, steet, city,country)
  110. VALUES (2028,'Ivan Vazov #6','Stara Zagora','Bulgaria');
  111. INSERT INTO Addresses (address_id, steet, city,country)
  112. VALUES (2029,'Hristo Botev #46','Blagoevgrad','Bulgaria');
  113. INSERT INTO Addresses (address_id, steet, city,country)
  114. VALUES (2030,'Hristo Botev #19','Blagoevgrad','Bulgaria');
  115.  
  116.  
  117.  
  118.  
  119. create table Product_types ( --popylneno
  120. product_type_id int NOT NULL PRIMARY KEY,
  121. product_name varchar(50),
  122. );
  123.  
  124. INSERT INTO Product_types (product_type_id, product_name )
  125. VALUES ( 10001,'Apple mobile phones');
  126. INSERT INTO Product_types (product_type_id, product_name )
  127. VALUES ( 10002,'Samsung mobile phones');
  128. INSERT INTO Product_types (product_type_id, product_name )
  129. VALUES ( 10003,'Lenovo mobile phones');
  130. INSERT INTO Product_types (product_type_id, product_name )
  131. VALUES ( 10004,'Nokia mobile phones');
  132. INSERT INTO Product_types (product_type_id, product_name )
  133. VALUES ( 10005,'Sony mobile phones');
  134. INSERT INTO Product_types (product_type_id, product_name )
  135. VALUES ( 10006,'Blackberry mobile phones');
  136. INSERT INTO Product_types (product_type_id, product_name )
  137. VALUES ( 10007,'Asus mobile phones');
  138. INSERT INTO Product_types (product_type_id, product_name )
  139. VALUES ( 10008,'Huawei mobile phones');
  140. INSERT INTO Product_types (product_type_id, product_name )
  141. VALUES (10009,'Motorola mobile phones');
  142. INSERT INTO Product_types (product_type_id, product_name )
  143. VALUES (10010,'LG mobile phones');
  144. INSERT INTO Product_types (product_type_id, product_name )
  145. VALUES (10011,'Xiaomi mobile phones');
  146. INSERT INTO Product_types (product_type_id, product_name )
  147. VALUES (10012,'Panasonic mobile phones');
  148. INSERT INTO Product_types (product_type_id, product_name )
  149. VALUES (10013,'Huawei Smartwatches');
  150. INSERT INTO Product_types (product_type_id, product_name )
  151. VALUES (10014,'Samsung Smartwatches');
  152. INSERT INTO Product_types (product_type_id, product_name )
  153. VALUES (10015,'Acer Laptops');
  154. INSERT INTO Product_types (product_type_id, product_name )
  155. VALUES (10016,'ASUS Laptops');
  156. INSERT INTO Product_types (product_type_id, product_name )
  157. VALUES (10017,'Samsung Laptops');
  158. INSERT INTO Product_types (product_type_id, product_name )
  159. VALUES (10018,'Lenovo Laptops');
  160. INSERT INTO Product_types (product_type_id, product_name )
  161. VALUES (10019,'Razer Laptops');
  162. INSERT INTO Product_types (product_type_id, product_name )
  163. VALUES (10020,'Samsung Tablets');
  164. INSERT INTO Product_types (product_type_id, product_name )
  165. VALUES (10021,'Apple Tablets');
  166. INSERT INTO Product_types (product_type_id, product_name )
  167. VALUES (10022,'Apple Smartwatches');
  168.  
  169. Select * from Product_types
  170.  
  171. create table Products ( --popylneno
  172. product_id int NOT NULL PRIMARY KEY,
  173. product_name varchar(255),
  174. supplier_id int FOREIGN KEY REFERENCES Suppliers(supplier_id),
  175. product_type int FOREIGN KEY REFERENCES Product_types(product_type_id),
  176. product_price money
  177. );
  178.  
  179. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  180. VALUES (5441, 'Apple iPhone XR' ,305,10001, 899);
  181. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  182. VALUES (5442, 'Apple iPhone XS' , 306,10001, 1349);
  183. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  184. VALUES (5443, 'Apple iPhone 8' , 306,10001, 849 );
  185. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  186. VALUES (5445, 'Apple iPhone X' , 306,10001, 1149);
  187. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  188. VALUES (5446, 'Samsung Galaxy A9' , 306, 10002, 549);
  189. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  190. VALUES (5447, 'Samsung Galaxy J4+' ,306,10002, 244 );
  191. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  192. VALUES (5448, 'Samsung Galaxy A6s' , 306, 10002, 422 );
  193. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  194. VALUES (5449, 'Samsung A9 Star' , 305, 10002, 710);
  195. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  196. VALUES (5450, 'Lenovo Z5 Pro' , 306,10003, 488 );
  197. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  198. VALUES (5451, 'Lenovo K5 Pro' , 306, 10003, 244);
  199. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  200. VALUES (5452, 'Lenovo K5s' , 306, 10003, 199);
  201. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  202. VALUES (5453, 'Lenovo S5 Pro ' , 306, 10003, 311);
  203. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  204. VALUES (5454, 'Nokia X7' , 305,10004, 444);
  205. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  206. VALUES (5455, 'Nokia 3.1 Plus' , 306, 10004, 255 );
  207. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  208. VALUES (5456, 'Nokia 7.1' , 305, 10004, 555);
  209. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  210. VALUES (5457, 'Nokia X5' , 306, 10004, 222);
  211. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  212. VALUES (5458, 'Sony Xperia XZ3' , 306, 10005, 1422);
  213. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  214. VALUES (5459, 'Sony Xperia XA2 Plus' , 305,10005, 733);
  215. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  216. VALUES (5460, 'Sony Xperia XZ2 Premium' , 306, 10005, 1444 );
  217. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  218. VALUES (5461, 'Blackberry KEY2 LE' , 305, 10006, 666 );
  219. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  220. VALUES (5462, 'Blackberry EvolveX' , 306, 10006, 777 );
  221. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  222. VALUES (5463, 'Blackberry Aurora' , 306, 10006, 388 );
  223. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  224. VALUES (5463, 'Blackberry Motion' , 305, 10006, 666);
  225. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  226. VALUES (5464, 'Asus Zenfone Max' , 306, 10007, 166);
  227. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  228. VALUES (5465, 'Asus Zenfone Lite L1' , 305, 10007, 133);
  229. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  230. VALUES (5466, 'Asus Zenfone Max Plus' , 306, 10007, 399);
  231. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  232. VALUES (5467, 'Huawei Honor WaterPlay 8' , 306, 10008, 355 );
  233. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  234. VALUES (5468, 'Huawei Honor Magic 2' , 305, 10008, 888);
  235. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  236. VALUES (5469, 'Huawei Enjoy 9 Plus' , 306, 10008, 422);
  237. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  238. VALUES (5470, 'Huawei Enjoy Max' , 305, 10008, 355);
  239. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  240. VALUES (5471, 'Motorola Moto P30 Note' , 306, 10009, 444);
  241. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  242. VALUES (5472, 'Motorola One Power' , 306, 10009, 577);
  243. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  244. VALUES (5473, 'Motorola One' , 306, 10009, 555);
  245. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  246. VALUES (5474, 'Motorola Moto P30' , 306, 10009, 488);
  247. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  248. VALUES (5475, 'Motorola Moto Z3' , 306, 10009, 733);
  249. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  250. VALUES (5476, 'LG V40 ThinQ' , 306, 10010, 1555 );
  251. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  252. VALUES (5477, 'LG Q Stylus+' , 306, 10010, 488);
  253. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  254. VALUES (5478, 'LG G7 Fit' , 305, 10010, 555 );
  255. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price)
  256. VALUES (5479, 'Xiaomi Mi MIX 3' , 305,10011, 777);
  257. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  258. VALUES (5480, 'Xiaomi Black Shark Helo' , 306, 10011, 866 );
  259. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  260. VALUES (5481, 'Panasonic P85 NXT' , 306, 10012, 155 );
  261. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  262. VALUES (5482, 'Panasonic Eluga Z1 Pro' , 306, 10012, 388 );
  263. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  264. VALUES (5483, 'Huawei WATCH GT' , 305, 10013, 230 );
  265. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  266. VALUES (5484, 'Samsung Galaxy Watch 42mm 2018' , 306, 10014, 349 );
  267. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  268. VALUES (5485, 'Apple Watch Series 4' , 306,10022, 399 );
  269. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  270. VALUES (5486, 'Apple Watch Series 3' , 306,10022, 329 );
  271. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  272. VALUES (5487, 'Samsung Gear Sport' , 306, 10014, 399 );
  273. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  274. VALUES (5488, 'Huawei Band 3 Pro' , 306, 10013, 113 );
  275. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  276. VALUES (5489, 'Acer Predator Helios 300 Gaming Laptop' , 306, 10015, 1199 );
  277. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  278. VALUES (5490, 'Acer Aspire E 15 ' , 306, 10015, 359 );
  279. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  280. VALUES (5491, 'Acer Flagship CB3-532 15.6"' , 306, 10015, 133 );
  281. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  282. VALUES (5492, 'ASUS Chromebook C202SA-YS02 11.6' , 306, 10016, 218 );
  283. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  284. VALUES (5493, 'ASUS VivoBook F510UA 15.6' , 306, 10016, 509 );
  285. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  286. VALUES (5494, 'ASUS C302CA-DHM4 Chromebook' , 306, 10016, 474 );
  287. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  288. VALUES (5495, 'Samsung Chromebook 3' , 305, 10017, 193 );
  289. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  290. VALUES (5496, 'Lenovo Ideapad 2019 15.6 HD Laptop Notebook Computer' , 306, 10018, 309 );
  291. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  292. VALUES (5497, 'ROG Zephyrus S Ultra Slim Gaming Laptop' , 306, 10016, 1899 );
  293. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  294. VALUES (5498, '2018 Lenovo Flex 5 15.6' , 305, 10018, 849 );
  295. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  296. VALUES (5499, '2018 Lenovo ThinkPad T480 14' , 306, 10018, 839 );
  297. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  298. VALUES (5500, 'Razer Blade 15: Worlds Smallest 15.6' , 306,10019, 1899 );
  299. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  300. VALUES (5501, 'Samsung Galaxy Tab A' , 306,10020, 250 );
  301. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  302. VALUES (5502, 'Samsung Galaxy Tab A 10.5' , 306, 10020, 450 );
  303. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  304. VALUES (5503, 'Samsung Galaxy Tab S4' , 306,10020, 650 );
  305. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  306. VALUES (5504, 'Apple iPad Pro 11-inch' , 305,10021, 1699 );
  307. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  308. VALUES (5505, 'Apple iPad Pro 12.9-inch (2018)' , 305,10021, 1899 );
  309. INSERT INTO Products (product_id, product_name, supplier_id, product_type,product_price )
  310. VALUES (5506, 'Apple iPad 9.7-inch (2018)' , 305, 10021, 559 );
  311.  
  312.  
  313.  
  314. Select * from Products
  315.  
  316. create table Customers ( --popylneno
  317. customer_id int NOT NULL PRIMARY KEY,
  318. customer_fname varchar(255),
  319. customer_lname varchar(255),
  320. customer_phone varchar(20),
  321. customer_email varchar(255)
  322. );
  323.  
  324. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  325. VALUES (301,'Dragomir','Antonov','(0913) 107-225','zeller@sbcglobal.net');
  326. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  327. VALUES (302,'Vladislav','Valchev','(0778) 734-072','bdbrown@mac.com');
  328. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  329. VALUES (303,'Svilen','Bukhalov','(0913) 107-225','suresh@comcast.net');
  330. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  331. VALUES (304,'Tihomir','Mladenov','(0544) 842 454','saridder@me.com');
  332. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  333. VALUES (305,'Hristo','Penchev','+359(0)723 363 416','webinc@yahoo.ca');
  334. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  335. VALUES (306,'Lyutskan','Vitanov','0159 471882','budinger@me.com');
  336. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  337. VALUES (307,'Zayko','Georgiev','0948 529-784','noodles@yahoo.ca');
  338. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  339. VALUES (308,'Vezenko','Mihailov','0373061973','mrsam@gmail.com');
  340. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  341. VALUES (309,'Zhelyazko','Svetkov','+359(0)137 221087','goresky@aol.com');
  342. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  343. VALUES (310,'Kaloyan','Gavrilov','0641 685879','citizenl@msn.com');
  344. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  345. VALUES (311,'Dako','Karapetrov','(0616) 952 115','engelen@me.com');
  346. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  347. VALUES (312,'Preslava','Teodorova','(0978) 055279','mahbub@att.net');
  348. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  349. VALUES (313,'Trayana','Zdravkova','0255841577','jguyer@verizon.net');
  350. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  351. VALUES (314,'Plamena','Nikolova','(0774) 134403','research@me.com');
  352. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  353. VALUES (315,'Branimira','Yankova','0695168677','parasite@icloud.com');
  354. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  355. VALUES (316,'Assen ','Savov','(0651) 216 260','lstaf@gmail.com');
  356. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  357. VALUES (317,'Bilka','Ivanova','(0322) 137 8515','hamilton@comcast.net');
  358. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  359. VALUES (318,'Stoyan','Kamenov','(0599) 738 276','breegster@gmail.com');
  360. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  361. VALUES (319,'Detelin','Atanasov','+359410879882','dkasak@live.com');
  362. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  363. VALUES (320,'Emil','Tanev','(0653) 900-916','bulletin@yahoo.ca');
  364. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  365. VALUES (321,'Mitko','Evgeniev','+359252691883','dburrows@comcast.net');
  366. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  367. VALUES (322,'Kostadin','Iliev','(0642) 336-656','cliffski@optonline.net');
  368. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  369. VALUES (323,'Krasimir ','Mihaelov','+359410879882','guialbu@msn.com');
  370. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  371. VALUES (324,'Galin','Bozhidarov','+359830757245','airship@icloud.com');
  372. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  373. VALUES (325,'Ventsislav','Hadjiev','(0750) 631-825','ninenine@aol.com');
  374. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  375. VALUES (326,'Bogomil','Samuilov','0984 247-661','giafly@msn.com');
  376. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  377. VALUES (327,'Blaga','Dimitrova','(0339) 465-680','jimmichie@verizon.net');
  378. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  379. VALUES (328,'Zornitsa','Todorova','0240 723-634','heine@att.net');
  380. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  381. VALUES (329,'Miroslava ',' Popova','(0387) 211681','kayvonf@yahoo.com');
  382. INSERT INTO Customers(customer_id , customer_fname,customer_lname,customer_phone,customer_email )
  383. VALUES (330,'Nadezhda ','Dineva','8008135','notfake@gmail.com');
  384.  
  385. Select * from Customers
  386.  
  387. create table Customer_addresses ( --popylneno
  388. customer_address_id int NOT NULL PRIMARY KEY,
  389. customer_id int FOREIGN KEY REFERENCES Customers(customer_id),
  390. address_id int FOREIGN KEY REFERENCES Addresses(address_id)
  391. );
  392.  
  393. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  394. VALUES (3001,301,2001);
  395. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  396. VALUES (3002,302,2002);
  397. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  398. VALUES (3003,303,2003);
  399. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  400. VALUES (3004,304,2004);
  401. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  402. VALUES (3005,305,2005);
  403. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  404. VALUES (3006,306,2006);
  405. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  406. VALUES (3007,307,2007);
  407. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  408. VALUES (3008,308,2008);
  409. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  410. VALUES (3009,309,2009);
  411. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  412. VALUES (3010,310,2010);
  413. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  414. VALUES (3011,311,2011);
  415. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  416. VALUES (3012,312,2012);
  417. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  418. VALUES (3013,313,2013);
  419. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  420. VALUES (3014,314,2014);
  421. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  422. VALUES (3015,315,2015);
  423. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  424. VALUES (3016,316,2016);
  425. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  426. VALUES (3017,317,2017);
  427. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  428. VALUES (3018,318,2018);
  429. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  430. VALUES (3019,319,2019);
  431. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  432. VALUES (3020,320,2020);
  433. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  434. VALUES (3021,321,2021);
  435. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  436. VALUES (3022,322,2022);
  437. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  438. VALUES (3023,323,2023);
  439. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  440. VALUES (3024,324,2024);
  441. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  442. VALUES (3025,325,2025);
  443. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  444. VALUES (3026,326,2026);
  445. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  446. VALUES (3027,327,2027);
  447. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  448. VALUES (3028,328,2028);
  449. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  450. VALUES (3029,329,2029);
  451. INSERT INTO Customer_addresses (customer_address_id, customer_id, address_id)
  452. VALUES (3030,330,2030);
  453.  
  454. Select * from Customer_addresses
  455.  
  456. create table Orders ( --popylneno
  457. order_id int NOT NULL PRIMARY KEY,
  458. customer_id int FOREIGN KEY REFERENCES Customers(customer_id),
  459.  
  460. order_day_date varchar(20),
  461. );
  462.  
  463.  
  464.  
  465.  
  466. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  467. VALUES (7820,304,'2017-12-20');
  468. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  469. VALUES (7821,307,'2018-01-03');
  470. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  471. VALUES (7822,301,'2018-01-25');
  472. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  473. VALUES (7823,309,'2018-03-14');
  474. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  475. VALUES (7824,326,'2018-03-21');
  476. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  477. VALUES (7825,306,'2018-04-13');
  478. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  479. VALUES (7826,309,'2018-04-23');
  480. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  481. VALUES (7827,320,'2018-05-03');
  482. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  483. VALUES (7828,305,'2018-05-04');
  484. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  485. VALUES (7829,321,'2018-05-09');
  486. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  487. VALUES (7830,302,'2018-05-21');
  488. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  489. VALUES (7831,327,'2018-06-27');
  490. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  491. VALUES (7832,318,'2018-07-10');
  492. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  493. VALUES (7833,322,'2018-07-13');
  494. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  495. VALUES (7834,304,'2018-07-17');
  496. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  497. VALUES (7835,321,'2018-08-01');
  498. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  499. VALUES (7836,307,'2018-08-09');
  500. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  501. VALUES (7837,306,'2018-08-23');
  502. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  503. VALUES (7838,327,'2018-09-10');
  504. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  505. VALUES (7839,304,'2018-09-20');
  506. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  507. VALUES (7840,312,'2018-10-08');
  508. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  509. VALUES (7841,323,'2018-10-09');
  510. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  511. VALUES (7842,315,'2018-10-18');
  512. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  513. VALUES (7843,324,'2018-11-01');
  514. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  515. VALUES (7844,318,'2018-11-05');
  516. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  517. VALUES (7845,323,'2017-12-21');
  518. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  519. VALUES (7846,329,'2018-02-20');
  520. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  521. VALUES (7847,330,'2018-03-30');
  522. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  523. VALUES (7848,326,'2018-04-10');
  524. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  525. VALUES (7849,303,'2018-04-12');
  526. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  527. VALUES (7850,316,'2018-04-18');
  528. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  529. VALUES (7851,323,'21/05/2018');
  530. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  531. VALUES (7852,305,'2018-04-20');
  532. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  533. VALUES (7853,330,'2018-04-26');
  534. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  535. VALUES (7854,313,'2018-04-30');
  536. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  537. VALUES (7855,323,'2018-05-15');
  538. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  539. VALUES (7856,316,'2018-05-28');
  540. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  541. VALUES (7857,316,'09/11/2018');
  542. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  543. VALUES (7858,321,'2018-05-29');
  544. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  545. VALUES (7859,317,'2018-07-11');
  546. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  547. VALUES (7860,305,'2018-08-06');
  548. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  549. VALUES (7861,305,'2018-08-17');
  550. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  551. VALUES (7862,310,'2018-09-10');
  552. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  553. VALUES (7863,324,'2018-09-11');
  554. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  555. VALUES (7864,317,'2018-09-18');
  556. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  557. VALUES (7865,311,'2018-09-21');
  558. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  559. VALUES (7866,308,'2018-09-25');
  560. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  561. VALUES (7867,324,'2018-10-03');
  562. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  563. VALUES (7868,309,'2018-10-09');
  564. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  565. VALUES (7869,320,'2018-10-12');
  566. INSERT INTO Orders(order_id ,customer_id,order_day_date )
  567. VALUES (7870,327,'2018-10-31');
  568.  
  569. Select * from Orders
  570.  
  571. create table Order_items ( --popylneno
  572. order_id int FOREIGN KEY REFERENCES Orders(order_id),
  573. product_id int FOREIGN KEY REFERENCES Products(product_id),
  574. quantity int
  575. );
  576.  
  577.  
  578.  
  579. INSERT INTO Order_items(order_id ,product_id ,quantity )
  580. VALUES (7820,5452,1);
  581. INSERT INTO Order_items(order_id ,product_id ,quantity )
  582. VALUES (7821,5492,2);
  583. INSERT INTO Order_items(order_id ,product_id ,quantity )
  584. VALUES (7822,5470,1);
  585. INSERT INTO Order_items(order_id ,product_id ,quantity )
  586. VALUES (7823,5506,1);
  587. INSERT INTO Order_items(order_id ,product_id ,quantity )
  588. VALUES (7824,5474,1);
  589. INSERT INTO Order_items(order_id ,product_id ,quantity )
  590. VALUES (7825,5470,1);
  591. INSERT INTO Order_items(order_id ,product_id ,quantity )
  592. VALUES (7826,5475,2);
  593. INSERT INTO Order_items(order_id ,product_id ,quantity )
  594. VALUES (7827,5448,1);
  595. INSERT INTO Order_items(order_id ,product_id ,quantity )
  596. VALUES (7828,5465,1);
  597. INSERT INTO Order_items(order_id ,product_id ,quantity )
  598. VALUES (7829,5450,1);
  599. INSERT INTO Order_items(order_id ,product_id ,quantity )
  600. VALUES (7830,5470,1);
  601. INSERT INTO Order_items(order_id ,product_id ,quantity )
  602. VALUES (7831,5466,1);
  603. INSERT INTO Order_items(order_id ,product_id ,quantity )
  604. VALUES (7832,5483,1);
  605. INSERT INTO Order_items(order_id ,product_id ,quantity )
  606. VALUES (7833,5463,1);
  607. INSERT INTO Order_items(order_id ,product_id ,quantity )
  608. VALUES (7834,5481,1);
  609. INSERT INTO Order_items(order_id ,product_id ,quantity )
  610. VALUES (7835,5441,1);
  611. INSERT INTO Order_items(order_id ,product_id ,quantity )
  612. VALUES (7836,5464,1);
  613. INSERT INTO Order_items(order_id ,product_id ,quantity )
  614. VALUES (7837,5505,2);
  615. INSERT INTO Order_items(order_id ,product_id ,quantity )
  616. VALUES (7838,5466,1);
  617. INSERT INTO Order_items(order_id ,product_id ,quantity )
  618. VALUES (7839,5459,1);
  619. INSERT INTO Order_items(order_id ,product_id ,quantity )
  620. VALUES (7840,312,1);
  621. INSERT INTO Order_items(order_id ,product_id ,quantity )
  622. VALUES (7841,5471,1);
  623. INSERT INTO Order_items(order_id ,product_id ,quantity )
  624. VALUES (7842,5497,1);
  625. INSERT INTO Order_items(order_id ,product_id ,quantity )
  626. VALUES (7843,5446,1);
  627. INSERT INTO Order_items(order_id ,product_id ,quantity )
  628. VALUES (7844,318,1);
  629. INSERT INTO Order_items(order_id ,product_id ,quantity )
  630. VALUES (7845,5491,1);
  631. INSERT INTO Order_items(order_id ,product_id ,quantity )
  632. VALUES (7846,5489,1);
  633. INSERT INTO Order_items(order_id ,product_id ,quantity )
  634. VALUES (7847,330,1);
  635. INSERT INTO Order_items(order_id ,product_id ,quantity )
  636. VALUES (7848,5496,1);
  637. INSERT INTO Order_items(order_id ,product_id ,quantity )
  638. VALUES (7849,5453,1);
  639. INSERT INTO Order_items(order_id ,product_id ,quantity )
  640. VALUES (7850,5495,1);
  641. INSERT INTO Order_items(order_id ,product_id ,quantity )
  642. VALUES (7851,5502,1);
  643. INSERT INTO Order_items(order_id ,product_id ,quantity )
  644. VALUES (7852,5487,1);
  645. INSERT INTO Order_items(order_id ,product_id ,quantity )
  646. VALUES (7853,330,1);
  647. INSERT INTO Order_items(order_id ,product_id ,quantity )
  648. VALUES (7854,5506,1);
  649. INSERT INTO Order_items(order_id ,product_id ,quantity )
  650. VALUES (7855,5484,2);
  651. INSERT INTO Order_items(order_id ,product_id ,quantity )
  652. VALUES (7856,5458,1);
  653. INSERT INTO Order_items(order_id ,product_id ,quantity )
  654. VALUES (7857,316,1);
  655. INSERT INTO Order_items(order_id ,product_id ,quantity )
  656. VALUES (7858,5493,1);
  657. INSERT INTO Order_items(order_id ,product_id ,quantity )
  658. VALUES (7859,5467,1);
  659. INSERT INTO Order_items(order_id ,product_id ,quantity )
  660. VALUES (7860,5470,1);
  661. INSERT INTO Order_items(order_id ,product_id ,quantity )
  662. VALUES (7861,5494,1);
  663. INSERT INTO Order_items(order_id ,product_id ,quantity )
  664. VALUES (7862,5457,1);
  665. INSERT INTO Order_items(order_id ,product_id ,quantity )
  666. VALUES (7863,5496,1);
  667. INSERT INTO Order_items(order_id ,product_id ,quantity )
  668. VALUES (7864,5443,1);
  669. INSERT INTO Order_items(order_id ,product_id ,quantity )
  670. VALUES (7865,5487,1);
  671. INSERT INTO Order_items(order_id ,product_id ,quantity )
  672. VALUES (7866,5448,1);
  673. INSERT INTO Order_items(order_id ,product_id ,quantity )
  674. VALUES (7867,5475,1);
  675. INSERT INTO Order_items(order_id ,product_id ,quantity )
  676. VALUES (7868,5466,3);
  677. INSERT INTO Order_items(order_id ,product_id ,quantity )
  678. VALUES (7869,5459,1);
  679. INSERT INTO Order_items(order_id ,product_id ,quantity )
  680. VALUES (7870,5466,1);
  681.  
  682. Select * from Order_items
  683.  
  684.  
  685. create table Deliveries ( --popylneno
  686. delivery_id int NOT NULL PRIMARY KEY,
  687. delivered_by_employee_id int FOREIGN KEY REFERENCES Employees(employee_id),
  688. order_id int FOREIGN KEY REFERENCES Orders(order_id),
  689. delivery_date_time date,
  690. other_delivery_details text
  691. );
  692.  
  693.  
  694.  
  695. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  696. VALUES (1001,10,7820,'2017-12-22','');
  697. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  698. VALUES (1002,11,7821,'2018-01-05','');
  699. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  700. VALUES (1003,12,7822,'2018-01-27','');
  701. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  702. VALUES (1004,13,7823,'2018-03-17','');
  703. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  704. VALUES (1005,14,7824,'2018-03-23','');
  705. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  706. VALUES (1006,10,7825,'2018-04-15','');
  707. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  708. VALUES (1007,11,7826,'2018-04-25','');
  709. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  710. VALUES (1008,12,7827,'2018-05-06','');
  711. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  712. VALUES (1009,13,7828,'2018-05-06','');
  713. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  714. VALUES (1010,14,7829,'2018-05-11','');
  715. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  716. VALUES (1011,10,7830,'2018-05-23','');
  717. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  718. VALUES (1012,11,7831,'2018-06-29','');
  719. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  720. VALUES (1013,12,7832,'2018-07-12','');
  721. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  722. VALUES (1014,13,7833,'2018-07-15','');
  723. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  724. VALUES (1015,14,7834,'2018-07-19','');
  725. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  726. VALUES (1016,10,7835,'2018-08-03','');
  727. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  728. VALUES (1017,11,7836,'2018-08-11','');
  729. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  730. VALUES (1018,12,7837,'2018-08-25','');
  731. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  732. VALUES (1019,13,7838,'2018-09-11','');
  733. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  734. VALUES (1020,14,7839,'2018-09-24','');
  735. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  736. VALUES (1021,10,7840,'2018-10-11','');
  737. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  738. VALUES (1022,11,7841,'2018-10-11','');
  739. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  740. VALUES (1023,12,7842,'2018-10-20','');
  741. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  742. VALUES (1024,13,7843,'2018-11-03','');
  743. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  744. VALUES (1025,14,7844,'2018-11-07','');
  745. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  746. VALUES (1026,10,7845,'2017-12-23','');
  747. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  748. VALUES (1027,11,7846,'2018-02-22','');
  749. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  750. VALUES (1028,12,7847,'2018-04-02','');
  751. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  752. VALUES (1029,13,7848,'2018-04-13','');
  753. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  754. VALUES (1030,14,7849,'2018-04-14','');
  755. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  756. VALUES (1031,10,7850,'2018-04-20','');
  757. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  758. VALUES (1032,11,7851,'2018-05-23','');
  759. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  760. VALUES (1033,12,7852,'2018-04-22','');
  761. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  762. VALUES (1034,13,7853,'2018-04-28','');
  763. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  764. VALUES (1035,14,7854,'2018-05-02','');
  765. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  766. VALUES (1036,10,7855,'2018-05-17','');
  767. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  768. VALUES (1037,11,7856,'2018-05-30','');
  769. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  770. VALUES (1038,12,7857,'2018-11-11','');
  771. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  772. VALUES (1039,13,7858,'2018-05-31','');
  773. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  774. VALUES (1040,14,7859,'2018-07-13','');
  775. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  776. VALUES (1041,10,7860,'2018-08-08','');
  777. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  778. VALUES (1042,11,7861,'2018-08-19','');
  779. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  780. VALUES (1043,12,7862,'2018-09-12','');
  781. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  782. VALUES (1044,13,7863,'2018-09-13','');
  783. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  784. VALUES (1045,14,7864,'2018-09-21','');
  785. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  786. VALUES (1046,10,7865,'2018-09-23','');
  787. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  788. VALUES (1047,11,7866,'2018-09-27','');
  789. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  790. VALUES (1048,12,7867,'2018-10-05','');
  791. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  792. VALUES (1049,13,7868,'2018-10-11','');
  793. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  794. VALUES (1050,14,7869,'2018-10-14','');
  795. INSERT INTO Deliveries (delivery_id, delivered_by_employee_id, order_id, delivery_date_time,other_delivery_details )
  796. VALUES (1051,10,7870,'2018-11-02','');
  797.  
  798. Select * from Deliveries
Add Comment
Please, Sign In to add comment