intldml.sql 55 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398
  1. /*
  2. * The contents of this file are subject to the Interbase Public
  3. * License Version 1.0 (the "License"); you may not use this file
  4. * except in compliance with the License. You may obtain a copy
  5. * of the License at http://www.Inprise.com/IPL.html
  6. *
  7. * Software distributed under the License is distributed on an
  8. * "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express
  9. * or implied. See the License for the specific language governing
  10. * rights and limitations under the License.
  11. *
  12. * The Original Code was created by Inprise Corporation
  13. * and its predecessors. Portions created by Inprise Corporation are
  14. * Copyright (C) Inprise Corporation.
  15. *
  16. * All Rights Reserved.
  17. * Contributor(s): ______________________________________.
  18. */
  19. /****************************************************************************
  20. *
  21. * Create data.
  22. * 18-July-1994: Clare Taylor
  23. *
  24. * Based on the file empdml.sql.
  25. *
  26. * Changes for international example:
  27. * SET NAMES must be done before a connect to the intlemp.fdb
  28. * or we see transliteration errors on insert. It is not enough
  29. * to do this in the C program that executes this script.
  30. * - Added additional countries
  31. * - Added customer data containing 8-bit characters.
  32. * - Added a field office in Norway
  33. * - Added employee records that use 8-bit data (C.E.O was changed)
  34. *
  35. *****************************************************************************/
  36. /*
  37. * Add countries. Must use SET NAMES because this file contains ISO characters.
  38. */
  39. /* COMMIT; */
  40. /* SET NAMES ISO8859_1; */
  41. /* CONNECT intlemp.fdb; */
  42. INSERT INTO country (country, currency) VALUES ('USA', 'Dollar');
  43. INSERT INTO country (country, currency) VALUES ('UK', 'Pound');
  44. INSERT INTO country (country, currency) VALUES ('England', 'Pound');
  45. INSERT INTO country (country, currency) VALUES ('Canada', 'CdnDlr');
  46. INSERT INTO country (country, currency) VALUES ('Switzerland', 'SFranc');
  47. INSERT INTO country (country, currency) VALUES ('Japan', 'Yen');
  48. INSERT INTO country (country, currency) VALUES ('Italy', 'Lira');
  49. INSERT INTO country (country, currency) VALUES ('France', 'FFranc');
  50. INSERT INTO country (country, currency) VALUES ('Germany', 'D-Mark');
  51. INSERT INTO country (country, currency) VALUES ('Deutschland', 'D-Mark');
  52. INSERT INTO country (country, currency) VALUES ('Australia', 'ADollar');
  53. INSERT INTO country (country, currency) VALUES ('Hong Kong', 'HKDollar');
  54. INSERT INTO country (country, currency) VALUES ('Netherlands', 'Guilder');
  55. INSERT INTO country (country, currency) VALUES ('Norge', 'Guilder');
  56. INSERT INTO country (country, currency) VALUES ('Norway', 'Guilder');
  57. INSERT INTO country (country, currency) VALUES ('Belgium', 'BFranc');
  58. INSERT INTO country (country, currency) VALUES ('Austria', 'Schilling');
  59. INSERT INTO country (country, currency) VALUES ('Fiji', 'FDollar');
  60. COMMIT;
  61. /*
  62. * Add departments.
  63. * Don't assign managers yet.
  64. *
  65. * Department structure (4-levels):
  66. *
  67. * Corporate Headquarters
  68. * Finance
  69. * Sales and Marketing
  70. * Marketing
  71. * Pacific Rim Headquarters (Hawaii)
  72. * Field Office: Tokyo
  73. * Field Office: Singapore
  74. * European Headquarters (London)
  75. * Field Office: France
  76. * Field Office: Italy
  77. * Field Office: Switzerland
  78. * Field Office: Germany -- added to intl exmpl
  79. * Field Office: Canada
  80. * Field Office: East Coast
  81. * Engineering
  82. * Software Products Division (California)
  83. * Software Development
  84. * Quality Assurance
  85. * Customer Support
  86. * Consumer Electronics Division (Vermont)
  87. * Research and Development
  88. * Customer Services
  89. *
  90. * Departments have parent departments.
  91. * Corporate Headquarters is the top department in the company.
  92. * Singapore field office is new and has 0 employees.
  93. *
  94. */
  95. INSERT INTO department
  96. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  97. ('000', 'Corporate Headquarters', null, 1000000, 'Monterey','(408) 555-1234');
  98. INSERT INTO department
  99. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  100. ('100', 'Sales and Marketing', '000', 2000000, 'San Francisco',
  101. '(415) 555-1234');
  102. INSERT INTO department
  103. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  104. ('600', 'Engineering', '000', 1100000, 'Monterey', '(408) 555-1234');
  105. INSERT INTO department
  106. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  107. ('900', 'Finance', '000', 400000, 'Monterey', '(408) 555-1234');
  108. INSERT INTO department
  109. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  110. ('180', 'Marketing', '100', 1500000, 'San Francisco', '(415) 555-1234');
  111. INSERT INTO department
  112. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  113. ('620', 'Software Products Div.', '600', 1200000, 'Monterey', '(408) 555-1234');
  114. INSERT INTO department
  115. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  116. ('621', 'Software Development', '620', 400000, 'Monterey', '(408) 555-1234');
  117. INSERT INTO department
  118. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  119. ('622', 'Quality Assurance', '620', 300000, 'Monterey', '(408) 555-1234');
  120. INSERT INTO department
  121. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  122. ('623', 'Customer Support', '620', 650000, 'Monterey', '(408) 555-1234');
  123. INSERT INTO department
  124. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  125. ('670', 'Consumer Electronics Div.', '600', 1150000, 'Burlington, VT',
  126. '(802) 555-1234');
  127. INSERT INTO department
  128. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  129. ('671', 'Research and Development', '670', 460000, 'Burlington, VT',
  130. '(802) 555-1234');
  131. INSERT INTO department
  132. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  133. ('672', 'Customer Services', '670', 850000, 'Burlington, VT', '(802) 555-1234');
  134. INSERT INTO department
  135. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  136. ('130', 'Field Office: East Coast', '100', 500000, 'Boston', '(617) 555-1234');
  137. INSERT INTO department
  138. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  139. ('140', 'Field Office: Canada', '100', 500000, 'Toronto', '(416) 677-1000');
  140. INSERT INTO department
  141. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  142. ('110', 'Pacific Rim Headquarters', '100', 600000, 'Kuaui', '(808) 555-1234');
  143. INSERT INTO department
  144. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  145. ('115', 'Field Office: Japan', '110', 500000, 'Tokyo', '3 5350 0901');
  146. INSERT INTO department
  147. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  148. ('116', 'Field Office: Singapore', '110', 300000, 'Singapore', '3 55 1234');
  149. INSERT INTO department
  150. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  151. ('120', 'European Headquarters', '100', 700000, 'London', '71 235-4400');
  152. INSERT INTO department
  153. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  154. ('121', 'Field Office: Switzerland','120', 500000, 'Zurich', '1 211 7767');
  155. INSERT INTO department
  156. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  157. ('122', 'Field Office: Germany', '120', 400000, 'Munich', '89 29 37 41');
  158. INSERT INTO department
  159. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  160. ('123', 'Field Office: France', '120', 400000, 'Cannes', '58 68 11 12');
  161. INSERT INTO department
  162. (dept_no, department, head_dept, budget, location, phone_no) VALUES
  163. ('125', 'Field Office: Italy', '120', 400000, 'Milan', '2 430 39 39');
  164. COMMIT;
  165. /*
  166. * Add jobs.
  167. * Job requirements (blob) and languages (array) are not added here.
  168. */
  169. INSERT INTO job
  170. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  171. ('CEO', 1, 'USA', 'Chief Executive Officer', 130000, 250000);
  172. INSERT INTO job
  173. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  174. ('CFO', 1, 'USA', 'Chief Financial Officer', 85000, 140000);
  175. INSERT INTO job
  176. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  177. ('VP', 2, 'USA', 'Vice President', 80000, 130000);
  178. INSERT INTO job
  179. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  180. ('VP', 2, 'England', 'Vice President', 54000, 89000) /* Pounds*/;
  181. INSERT INTO job
  182. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  183. ('Dir', 2, 'USA', 'Director', 75000, 120000);
  184. INSERT INTO job
  185. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  186. ('Dir', 2, 'France', 'Director', 443000, 711000) /* FFranc */;
  187. INSERT INTO job
  188. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  189. ('Dir', 2, 'Germany', 'Director', 128000, 205000) /* D-Mark */;
  190. INSERT INTO job
  191. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  192. ('Mngr', 3, 'USA', 'Manager', 60000, 100000);
  193. INSERT INTO job
  194. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  195. ('Mngr', 3, 'Canada', 'Manager', 80000, 133000) /*CndDollar*/;
  196. INSERT INTO job
  197. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  198. ('Mngr', 4, 'USA', 'Manager', 30000, 60000);
  199. INSERT INTO job
  200. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  201. ('Mngr', 4, 'England', 'Manager', 41000, 677000) /* Pounds */;
  202. INSERT INTO job
  203. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  204. ('Mngr', 4, 'Germany', 'Manager', 103000, 171000);
  205. INSERT INTO job
  206. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  207. ('Mngr', 4, 'France', 'Manager', 355000, 591000) /* FFranc */;
  208. INSERT INTO job
  209. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  210. ('Admin', 4, 'USA', 'Administrative Assistant', 35000, 55000);
  211. INSERT INTO job
  212. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  213. ('Admin', 4, 'France', 'Administrative Assistant', 21000, 33000) /* FFranc */;
  214. INSERT INTO job
  215. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  216. ('Admin', 4, 'Germany', 'Administrative Assistant', 59000, 94000);
  217. INSERT INTO job
  218. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  219. ('Admin', 5, 'USA', 'Administrative Assistant', 20000, 40000);
  220. INSERT INTO job
  221. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  222. ('Admin', 5, 'England', 'Administrative Assistant', 13400, 26800) /* Pounds */;
  223. INSERT INTO job
  224. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  225. ('PRel', 4, 'USA', 'Public Relations Rep.', 25000, 65000);
  226. INSERT INTO job
  227. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  228. ('Mktg', 3, 'USA', 'Marketing Analyst', 40000, 80000);
  229. INSERT INTO job
  230. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  231. ('Mktg', 4, 'USA', 'Marketing Analyst', 20000, 50000);
  232. INSERT INTO job
  233. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  234. ('Accnt', 4, 'USA', 'Accountant', 28000, 55000);
  235. INSERT INTO job
  236. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  237. ('Finan', 3, 'USA', 'Financial Analyst', 35000, 85000);
  238. INSERT INTO job
  239. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  240. ('Eng', 2, 'USA', 'Engineer', 70000, 110000);
  241. INSERT INTO job
  242. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  243. ('Eng', 3, 'USA', 'Engineer', 50000, 90000);
  244. INSERT INTO job
  245. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  246. ('Eng', 3, 'Japan', 'Engineer', 5400000, 9720000) /* yen */;
  247. INSERT INTO job
  248. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  249. ('Eng', 4, 'USA', 'Engineer', 30000, 65000);
  250. INSERT INTO job
  251. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  252. ('Eng', 4, 'England', 'Engineer', 20100, 43550) /* Pounds */;
  253. INSERT INTO job
  254. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  255. ('Eng', 5, 'USA', 'Engineer', 25000, 35000);
  256. INSERT INTO job
  257. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  258. ('Doc', 3, 'USA', 'Technical Writer', 38000, 60000);
  259. INSERT INTO job
  260. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  261. ('Doc', 5, 'USA', 'Technical Writer', 22000, 40000);
  262. INSERT INTO job
  263. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  264. ('Sales', 3, 'USA', 'Sales Co-ordinator', 40000, 70000);
  265. INSERT INTO job
  266. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  267. ('Sales', 3, 'England', 'Sales Co-ordinator', 26800, 46900) /* Pounds */;
  268. INSERT INTO job
  269. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  270. ('SRep', 4, 'USA', 'Sales Representative', 20000, 100000);
  271. INSERT INTO job
  272. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  273. ('SRep', 4, 'England', 'Sales Representative', 13400, 67000) /* Pounds */;
  274. INSERT INTO job
  275. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  276. ('SRep', 4, 'Germany', 'Sales Representative', 34000, 170000) /* D-Mark */;
  277. INSERT INTO job
  278. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  279. ('SRep', 4, 'Canada', 'Sales Representative', 26400, 132000) /* CndDollar */;
  280. INSERT INTO job
  281. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  282. ('SRep', 4, 'Switzerland', 'Sales Representative', 28000, 149000) /* SFranc */;
  283. INSERT INTO job
  284. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  285. ('SRep', 4, 'Japan', 'Sales Representative', 2160000, 10800000) /* yen */;
  286. INSERT INTO job
  287. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  288. ('SRep', 4, 'Italy', 'Sales Representative', 33600000, 168000000) /* lira */;
  289. INSERT INTO job
  290. (job_code, job_grade, job_country, job_title, min_salary, max_salary) VALUES
  291. ('SRep', 4, 'France', 'Sales Representative', 118200, 591000) /* FFranc */;
  292. COMMIT;
  293. /*
  294. * Add employees.
  295. *
  296. * The salaries initialized here are not final. Employee salaries are
  297. * updated below -- see salary_history.
  298. */
  299. /* Original data for the US employee.fdb example plus additional rows
  300. for Europe and Canada. CEO name was changed.
  301. */
  302. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  303. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  304. (2, 'Robert', 'Nelson', '600', 'VP', 2, 'USA', '12/28/88', 98000, '250');
  305. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  306. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  307. (4, 'Bruce', 'Young', '621', 'Eng', 2, 'USA', '12/28/88', 90000, '233');
  308. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  309. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  310. (5, 'Kim', 'Lambert', '130', 'Eng', 2, 'USA', '02/06/89', 95000, '22');
  311. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  312. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  313. (8, 'Leslie', 'Johnson', '180', 'Mktg', 3, 'USA', '04/05/89', 62000, '410');
  314. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  315. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  316. (9, 'Phil', 'Forest', '622', 'Mngr', 3, 'USA', '04/17/89', 72000, '229');
  317. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  318. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  319. (11, 'K. J.', 'Weston', '130', 'SRep', 4, 'USA', '01/17/90', 70000, '34');
  320. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  321. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  322. (12, 'Terri', 'Lee', '000', 'Admin', 4, 'USA', '05/01/90', 48000, '256');
  323. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  324. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  325. (14, 'Stewart', 'Hall', '900', 'Finan', 3, 'USA', '06/04/90', 62000, '227');
  326. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  327. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  328. (15, 'Katherine', 'Young', '623', 'Mngr', 3, 'USA', '06/14/90', 60000, '231');
  329. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  330. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  331. (20, 'Chris', 'Papadopoulos', '671', 'Mngr', 3, 'USA', '01/01/90', 80000,
  332. '887');
  333. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  334. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  335. (24, 'Pete', 'Fisher', '671', 'Eng', 3, 'USA', '09/12/90', 73000, '888');
  336. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  337. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  338. (28, 'Ann', 'Bennet', '120', 'Admin', 5, 'England', '02/01/91', 20000, '5');
  339. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  340. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  341. (29, 'Roger', 'De Souza', '623', 'Eng', 3, 'USA', '02/18/91', 62000, '288');
  342. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  343. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  344. (34, 'Janet', 'Baldwin', '110', 'Sales', 3, 'USA', '03/21/91', 55000, '2');
  345. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  346. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  347. (36, 'Roger', 'Reeves', '120', 'Sales', 3, 'England', '04/25/91', 30000, '6');
  348. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  349. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  350. (37, 'Willie', 'Stansbury','120', 'Eng', 4, 'England', '04/25/91', 35000, '7');
  351. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  352. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  353. (44, 'Leslie', 'Phong', '623', 'Eng', 4, 'USA', '06/03/91', 50000, '216');
  354. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  355. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  356. (45, 'Ashok', 'Ramanathan', '621', 'Eng', 3, 'USA', '08/01/91', 72000, '209');
  357. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  358. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  359. (46, 'Walter', 'Steadman', '900', 'CFO', 1, 'USA', '08/09/91', 120000, '210');
  360. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  361. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  362. (52, 'Carol', 'Nordstrom', '180', 'PRel', 4, 'USA', '10/02/91', 41000, '420');
  363. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  364. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  365. (61, 'Luke', 'Leung', '110', 'SRep', 4, 'USA', '02/18/92', 60000, '3');
  366. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  367. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  368. (65, 'Sue Anne','O''Brien', '670', 'Admin', 5, 'USA', '03/23/92', 30000, '877');
  369. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  370. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  371. (71, 'Jennifer M.', 'Burbank', '622', 'Eng', 3, 'USA', '04/15/92', 51000,
  372. '289');
  373. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  374. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  375. (72, 'Claudia', 'Sutherland', '140', 'SRep', 4, 'Canada', '04/20/92', 88000,
  376. null);
  377. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  378. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  379. (83, 'Dana', 'Bishop', '621', 'Eng', 3, 'USA', '06/01/92', 60000, '290');
  380. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  381. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  382. (85, 'Mary S.', 'MacDonald', '100', 'VP', 2, 'USA', '06/01/92', 115000, '477');
  383. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  384. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  385. (94, 'Randy', 'Williams', '672', 'Mngr', 4, 'USA', '08/08/92', 54000, '892');
  386. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  387. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  388. (105, 'François', 'Peyré', '000', 'CEO', 1, 'USA', '10/08/92', 220000, '255');
  389. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  390. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  391. (107, 'Kevin', 'Cook', '670', 'Dir', 2, 'USA', '02/01/93', 115000, '894');
  392. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  393. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  394. (109, 'Kelly', 'Brown', '600', 'Admin', 5, 'USA', '02/04/93', 27000, '202');
  395. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  396. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  397. (110, 'Yuki', 'Ichida', '115', 'Eng', 3, 'Japan', '02/04/93',
  398. 6000000, '22');
  399. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  400. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  401. (113, 'Mary', 'Page', '671', 'Eng', 4, 'USA', '04/12/93', 48000, '845');
  402. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  403. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  404. (114, 'Bill', 'Parker', '623', 'Eng', 5, 'USA', '06/01/93', 35000, '247');
  405. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  406. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  407. (118, 'Takashi', 'Yamamoto', '115', 'SRep', 4, 'Japan', '07/01/93',
  408. 6800000, '23');
  409. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  410. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  411. (121, 'Roberto', 'Ferrari', '125', 'SRep', 4, 'Italy', '07/12/93',
  412. 90000000, '1');
  413. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  414. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  415. (127, 'Michael', 'Yanowski', '100', 'SRep', 4, 'USA', '08/09/93', 40000, '492');
  416. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  417. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  418. (134, 'Jacques', 'Glon', '123', 'SRep', 4, 'France', '08/23/93', 355000, null);
  419. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  420. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  421. (136, 'Scott', 'Johnson', '623', 'Doc', 3, 'USA', '09/13/93', 60000, '265');
  422. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  423. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  424. (138, 'T.J.', 'Green', '621', 'Eng', 4, 'USA', '11/01/93', 36000, '218');
  425. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  426. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  427. (141, 'Pierre', 'Osborne', '121', 'SRep', 4, 'Switzerland', '01/03/94',
  428. 110000, null);
  429. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  430. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  431. (144, 'John', 'Montgomery', '672', 'Eng', 5, 'USA', '03/30/94', 35000, '820');
  432. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  433. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  434. (145, 'Mark', 'Guckenheimer', '622', 'Eng', 5, 'USA', '05/02/94', 32000, '221');
  435. COMMIT;
  436. /* Start of additional international data */
  437. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  438. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  439. (201, 'Joseph', 'Vaca', '120', 'Eng', 4, 'England',
  440. '01/15/91', 25900, null);
  441. /* Canadian employees added -- add fine. */
  442. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  443. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  444. (208, 'Thérèse', 'Dubreuil-Lafont', '120', 'Mngr', 3, 'Canada',
  445. '01/15/91', 93000, null);
  446. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  447. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  448. (202, 'Marie-Pierre', 'Desfossés', '140', 'SRep', 4, 'Canada',
  449. '01/15/91', 93000, null);
  450. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  451. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  452. (203, 'Guillaume', 'Le Clézio', '140', 'SRep', 4, 'Canada',
  453. '06/21/93', 78000, null);
  454. COMMIT;
  455. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  456. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  457. (204, 'Vivianne', "de l'Etournay", '123', 'SRep', 4, 'France',
  458. '01/17/90', 384754, '344');
  459. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  460. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  461. (205, 'Martine', 'Bélard', '123', 'SRep', 4, 'France', '04/17/90', 440000,
  462. '344');
  463. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  464. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  465. (206, 'Jérôme', 'Louÿs', '123', 'Mngr', 4, 'France', '06/22/91',
  466. 405500, '338');
  467. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  468. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  469. (207, 'Jean-François', 'Bouverat', '123', 'Admin', 4, 'France', '01/10/92',
  470. 25500, null);
  471. COMMIT;
  472. /* German employees added */
  473. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  474. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  475. (301, 'Anke', 'Flöck', '122', 'SRep', 4, 'Germany', '07/04/92',
  476. 65000, '228');
  477. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  478. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  479. (302, 'Marlene', 'Schäfer', '122', 'SRep', 4, 'Germany', '03/24/93',
  480. 69000, '239');
  481. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  482. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  483. (303, 'Jürgen', 'Schmidt', '122', 'SRep', 4, 'Germany', '06/19/91',
  484. 110000, '224');
  485. COMMIT;
  486. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  487. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  488. (304, 'Jörg', 'Stecher', '122', 'Dir', 2, 'Germany', '10/27/92',
  489. 180000, '236');
  490. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  491. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  492. (305, 'Ralf', 'Schwenkmezger', '122', 'Admin', 4, 'Germany', '05/07/93',
  493. 62700, null);
  494. /* Swiss employees added */
  495. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  496. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  497. (312, 'Gertrud', 'Schleußner', '121', 'SRep', 4, 'Switzerland', '10/03/93',
  498. 78000, null);
  499. COMMIT;
  500. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  501. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  502. (315, 'Silvia', 'Rössler', '121', 'SRep', 4, 'Switzerland', '05/07/92',
  503. 102000, null);
  504. INSERT INTO employee (emp_no, first_name, last_name, dept_no, job_code,
  505. job_grade, job_country, hire_date, salary, phone_ext) VALUES
  506. (325, 'Roland', 'Fürderer', '121', 'SRep', 4, 'Switzerland', '10/27/92',
  507. 96000, null);
  508. COMMIT;
  509. SET GENERATOR emp_no_gen to 145;
  510. /*
  511. * Set department managers.
  512. * A department manager can be a director, a vice president, a CFO,
  513. * a sales rep, etc. Several departments have no managers (TBH).
  514. */
  515. UPDATE department SET mngr_no = 105 WHERE dept_no = '000';
  516. UPDATE department SET mngr_no = 85 WHERE dept_no = '100';
  517. UPDATE department SET mngr_no = 2 WHERE dept_no = '600';
  518. UPDATE department SET mngr_no = 46 WHERE dept_no = '900';
  519. UPDATE department SET mngr_no = 9 WHERE dept_no = '622';
  520. UPDATE department SET mngr_no = 15 WHERE dept_no = '623';
  521. UPDATE department SET mngr_no = 107 WHERE dept_no = '670';
  522. UPDATE department SET mngr_no = 20 WHERE dept_no = '671';
  523. UPDATE department SET mngr_no = 94 WHERE dept_no = '672';
  524. UPDATE department SET mngr_no = 11 WHERE dept_no = '130';
  525. UPDATE department SET mngr_no = 72 WHERE dept_no = '140';
  526. UPDATE department SET mngr_no = 118 WHERE dept_no = '115';
  527. UPDATE department SET mngr_no = 36 WHERE dept_no = '120';
  528. UPDATE department SET mngr_no = 141 WHERE dept_no = '121';
  529. UPDATE department SET mngr_no = 134 WHERE dept_no = '123';
  530. UPDATE department SET mngr_no = 121 WHERE dept_no = '125';
  531. UPDATE department SET mngr_no = 34 WHERE dept_no = '110';
  532. COMMIT;
  533. /*
  534. * Generate some salary history records.
  535. */
  536. UPDATE employee SET salary = salary + salary * 0.10
  537. WHERE hire_date <= '08/01/91' AND job_grade = 5;
  538. UPDATE employee SET salary = salary + salary * 0.05 + 3000
  539. WHERE hire_date <= '08/01/91' AND job_grade in (1, 2);
  540. UPDATE employee SET salary = salary + salary * 0.075
  541. WHERE hire_date <= '08/01/91' AND job_grade in (3, 4) AND emp_no > 9;
  542. UPDATE salary_history
  543. SET change_date = '12/15/92', updater_id = 'admin2';
  544. UPDATE employee SET salary = salary + salary * 0.0425
  545. WHERE hire_date < '02/01/93' AND job_grade >= 3;
  546. UPDATE salary_history
  547. SET change_date = '09/08/93', updater_id = 'elaine'
  548. WHERE NOT updater_id IN ('admin2');
  549. UPDATE employee SET salary = salary - salary * 0.0325
  550. WHERE salary > 110000 AND job_country = 'USA';
  551. UPDATE salary_history
  552. SET change_date = '12/20/93', updater_id = 'tj'
  553. WHERE NOT updater_id IN ('admin2', 'elaine');
  554. UPDATE employee SET salary = salary + salary * 0.10
  555. WHERE job_code = 'SRep' AND hire_date < '12/20/93';
  556. UPDATE salary_history
  557. SET change_date = '12/20/93', updater_id = 'elaine'
  558. WHERE NOT updater_id IN ('admin2', 'elaine', 'tj');
  559. COMMIT;
  560. /*
  561. * Add projects.
  562. * Some projects have no team leader.
  563. */
  564. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  565. ('VBASE', 'Video Database', 45, 'software');
  566. /* proj_desc blob:
  567. Design a video data base management system for
  568. controlling on-demand video distribution.
  569. */
  570. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  571. ('DGPII', 'DigiPizza', 24, 'other');
  572. /* proj_desc blob:
  573. Develop second generation digital pizza maker
  574. with flash-bake heating element and
  575. digital ingredient measuring system.
  576. */
  577. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  578. ('GUIDE', 'AutoMap', 20, 'hardware');
  579. /* proj_desc blob:
  580. Develop a prototype for the automobile version of
  581. the hand-held map browsing device.
  582. */
  583. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  584. ('MAPDB', 'MapBrowser port', 4, 'software');
  585. /* proj_desc blob:
  586. Port the map browsing database software to run
  587. on the automobile model.
  588. */
  589. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  590. ('HWRII', 'Translator upgrade', null, 'software');
  591. /* proj_desc blob:
  592. Integrate the hand-writing recognition module into the
  593. universal language translator.
  594. */
  595. INSERT INTO project (proj_id, proj_name, team_leader, product) VALUES
  596. ('MKTPR', 'Marketing project 3', 85, 'N/A');
  597. /* proj_desc blob:
  598. Expand marketing and sales in the Pacific Rim.
  599. Set up a field office in Australia and Singapore.
  600. */
  601. COMMIT;
  602. /*
  603. * Assign employees to projects.
  604. * One project has no employees assigned.
  605. */
  606. INSERT INTO employee_project (proj_id, emp_no) VALUES ('DGPII', 144);
  607. INSERT INTO employee_project (proj_id, emp_no) VALUES ('DGPII', 113);
  608. INSERT INTO employee_project (proj_id, emp_no) VALUES ('DGPII', 24);
  609. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 8);
  610. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 136);
  611. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 15);
  612. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 71);
  613. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 145);
  614. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 44);
  615. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 4);
  616. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 83);
  617. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 138);
  618. INSERT INTO employee_project (proj_id, emp_no) VALUES ('VBASE', 45);
  619. INSERT INTO employee_project (proj_id, emp_no) VALUES ('GUIDE', 20);
  620. INSERT INTO employee_project (proj_id, emp_no) VALUES ('GUIDE', 24);
  621. INSERT INTO employee_project (proj_id, emp_no) VALUES ('GUIDE', 113);
  622. INSERT INTO employee_project (proj_id, emp_no) VALUES ('GUIDE', 8);
  623. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MAPDB', 4);
  624. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MAPDB', 71);
  625. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 46);
  626. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 105);
  627. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 12);
  628. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 85);
  629. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 110);
  630. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 34);
  631. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 8);
  632. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 14);
  633. INSERT INTO employee_project (proj_id, emp_no) VALUES ('MKTPR', 52);
  634. COMMIT;
  635. /*
  636. * Add project budget planning by department.
  637. * Head count array is not added here.
  638. */
  639. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  640. (1994, 'GUIDE', '100', 200000);
  641. /* head count: 1,1,1,0 */
  642. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  643. (1994, 'GUIDE', '671', 450000);
  644. /* head count: 3,2,1,0 */
  645. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  646. (1993, 'MAPDB', '621', 20000);
  647. /* head count: 0,0,0,1 */
  648. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  649. (1994, 'MAPDB', '621', 40000);
  650. /* head count: 2,1,0,0 */
  651. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  652. (1994, 'MAPDB', '622', 60000);
  653. /* head count: 1,1,0,0 */
  654. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  655. (1994, 'MAPDB', '671', 11000);
  656. /* head count: 1,1,0,0 */
  657. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  658. (1994, 'HWRII', '670', 20000);
  659. /* head count: 1,1,1,1 */
  660. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  661. (1994, 'HWRII', '621', 400000);
  662. /* head count: 2,3,2,1 */
  663. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  664. (1994, 'HWRII', '622', 100000);
  665. /* head count: 1,1,2,2 */
  666. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  667. (1994, 'MKTPR', '623', 80000);
  668. /* head count: 1,1,1,2 */
  669. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  670. (1994, 'MKTPR', '672', 100000);
  671. /* head count: 1,1,1,2 */
  672. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  673. (1994, 'MKTPR', '100', 1000000);
  674. /* head count: 4,5,6,6 */
  675. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  676. (1994, 'MKTPR', '110', 200000);
  677. /* head count: 2,2,0,3 */
  678. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  679. (1994, 'MKTPR', '000', 100000);
  680. /* head count: 1,1,2,2 */
  681. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  682. (1995, 'MKTPR', '623', 1200000);
  683. /* head count: 7,7,4,4 */
  684. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  685. (1995, 'MKTPR', '672', 800000);
  686. /* head count: 2,3,3,3 */
  687. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  688. (1995, 'MKTPR', '100', 2000000);
  689. /* head count: 4,5,6,6 */
  690. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  691. (1995, 'MKTPR', '110', 1200000);
  692. /* head count: 1,1,1,1 */
  693. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  694. (1994, 'VBASE', '621', 1900000);
  695. /* head count: 4,5,5,3 */
  696. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  697. (1995, 'VBASE', '621', 900000);
  698. /* head count: 4,3,2,2 */
  699. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  700. (1994, 'VBASE', '622', 400000);
  701. /* head count: 2,2,2,1 */
  702. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  703. (1994, 'VBASE', '100', 300000);
  704. /* head count: 1,1,2,3 */
  705. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  706. (1995, 'VBASE', '100', 1500000);
  707. /* head count: 3,3,1,1 */
  708. INSERT INTO proj_dept_budget (fiscal_year, proj_id, dept_no, projected_budget) VALUES
  709. (1996, 'VBASE', '100', 150000);
  710. /* head count: 1,1,0,0 */
  711. COMMIT;
  712. /*
  713. * Add a few customer records--the original US data and the international data.
  714. */
  715. INSERT INTO customer
  716. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  717. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  718. (1001, 'Signature Design', 'Dale J.', 'Little', '(619) 530-2710',
  719. '15500 Pacific Heights Blvd.', null, 'San Diego', 'CA', 'USA', '92121', null);
  720. INSERT INTO customer
  721. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  722. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  723. (1002, 'Dallas Technologies', 'Glen', 'Brown', '(214) 960-2233',
  724. 'P. O. Box 47000', null, 'Dallas', 'TX', 'USA', '75205', null);
  725. INSERT INTO customer
  726. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  727. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  728. (1003, 'Buttle, Griffith and Co.', 'James', 'Buttle', '(617) 488-1864',
  729. '2300 Newbury Street', 'Suite 101', 'Boston', 'MA', 'USA', '02115', null);
  730. INSERT INTO customer
  731. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  732. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  733. (1004, 'Central Bank', 'Elizabeth', 'Brocket', '61 211 99 88',
  734. '66 Lloyd Street', null, 'Manchester', null, 'England', 'M2 3LA', null);
  735. INSERT INTO customer
  736. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  737. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  738. (1005, 'DT Systems, LTD.', 'Tai', 'Wu', '(852) 850 43 98',
  739. '400 Connaught Road', null, 'Central Hong Kong', null, 'Hong Kong', null, null);
  740. INSERT INTO customer
  741. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  742. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  743. (1006, 'DataServe International', 'Tomas', 'Bright', '(613) 229 3323',
  744. '2000 Carling Avenue', 'Suite 150', 'Ottawa', 'ON', 'Canada', 'K1V 9G1', null);
  745. INSERT INTO customer
  746. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  747. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  748. (1007, 'Mrs. Beauvais', null, 'Mrs. Beauvais', null,
  749. 'P.O. Box 22743', null, 'Pebble Beach', 'CA', 'USA', '93953', null);
  750. INSERT INTO customer
  751. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  752. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  753. (1008, 'Anini Vacation Rentals', 'Leilani', 'Briggs', '(808) 835-7605',
  754. '3320 Lawai Road', null, 'Lihue', 'HI', 'USA', '96766', null);
  755. INSERT INTO customer
  756. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  757. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  758. (1009, 'Max', 'Max', null, '22 01 23',
  759. '1 Emerald Cove', null, 'Turtle Island', null, 'Fiji', null, null);
  760. INSERT INTO customer
  761. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  762. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  763. (1010, 'MPM Corporation', 'Miwako', 'Miyamoto', '3 880 77 19',
  764. '2-64-7 Sasazuka', null, 'Tokyo', null, 'Japan', '150', null);
  765. INSERT INTO customer
  766. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  767. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  768. (1011, 'Dynamic Intelligence Corp', 'Victor', 'Granges', '01 221 16 50',
  769. 'Florhofgasse 10', null, 'Zurich', null, 'Switzerland', '8005', null);
  770. INSERT INTO customer
  771. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  772. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  773. (1012, '3D-Pad Corp.', 'Michelle', 'Roche', '1 43 60 61',
  774. '22 Place de la Concorde', null, 'Paris', null, 'France', '75008', null);
  775. INSERT INTO customer
  776. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  777. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  778. (1013, 'Lorenzi Export, Ltd.', 'Andreas', 'Lorenzi', '02 404 6284',
  779. 'Via Eugenia, 15', null, 'Milan', null, 'Italy', '20124', null);
  780. INSERT INTO customer
  781. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  782. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  783. (1014, 'Dyno Consulting', 'Greta', 'Hessels', '02 500 5940',
  784. 'Rue Royale 350', null, 'Brussels', null, 'Belgium', '1210', null);
  785. INSERT INTO customer
  786. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  787. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  788. (1015, 'GeoTech Inc.', 'K.M.', 'Neppelenbroek', '(070) 44 91 18',
  789. 'P.0.Box 702', null, 'Den Haag', null, 'Netherlands', '2514', null);
  790. COMMIT;
  791. INSERT INTO customer
  792. (cust_no,
  793. customer,
  794. contact_first,
  795. contact_last,
  796. phone_no,
  797. address_line1,
  798. address_line2,
  799. city,
  800. state_province,
  801. country,
  802. postal_code,
  803. on_hold)
  804. VALUES
  805. (1050,
  806. 'Hôtel "Au bout de la plage"',
  807. 'Marie-Joëlle',
  808. 'Durieux',
  809. '56 83 17 23',
  810. '175, boulevard de la Plage',
  811. null,
  812. 'Les Ornières-Plage',
  813. null,
  814. 'France',
  815. '33728',
  816. null);
  817. INSERT INTO customer
  818. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  819. address_line2, city, state_province, country, postal_code, on_hold)
  820. VALUES
  821. (1051,
  822. "L'Art et la Manière",
  823. 'Marie-Joëlle',
  824. 'Fouchère',
  825. '(16) 55-46-78-12',
  826. 'Boîte Postale 148',
  827. 'Z.I. de la Réchoise',
  828. 'Le Grojacq Cédex',
  829. null,
  830. 'France',
  831. '44200',
  832. null);
  833. INSERT INTO customer
  834. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  835. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  836. (1052,
  837. 'Rondouillard & frères, S.A.R.L.',
  838. 'Honoré',
  839. 'de Ségonzac',
  840. '(1) 89.36.75.11',
  841. '25, rue des Franc-Maçons',
  842. null,
  843. 'Paris',
  844. null,
  845. 'France',
  846. '75016',
  847. null);
  848. INSERT INTO customer
  849. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  850. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  851. (1053,
  852. 'Rôtisserie Plancard',
  853. 'Benoît',
  854. 'Démêloir',
  855. '86 35 71 23',
  856. '173 bis, rue de la Pierre-á-Feu',
  857. null,
  858. 'La Côtinière',
  859. "île d'Oléron",
  860. 'France',
  861. '17580',
  862. null);
  863. INSERT INTO customer
  864. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  865. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  866. (1054,
  867. 'Madame veuve Michoux',
  868. 'Cunégonde',
  869. 'Michoux',
  870. '27.58.69.12',
  871. 'Résidence "Les Belles Années"',
  872. 'Appartement 179, Bâtiment C',
  873. 'Saint-Georges-en-Vâle',
  874. null,
  875. 'France',
  876. '24575',
  877. null);
  878. /* start here with german entries */
  879. INSERT INTO customer
  880. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  881. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  882. (1055,
  883. 'Sandvik AS',
  884. 'Bjørn',
  885. 'Oluvsen',
  886. '443258',
  887. 'Høgdaveien 34',
  888. null,
  889. 'Tromsø',
  890. null,
  891. 'Norge',
  892. '9000',
  893. null);
  894. INSERT INTO customer
  895. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  896. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  897. (1056,
  898. 'Norskøl AS',
  899. 'Inger-Anne',
  900. 'Vårmann',
  901. '543354',
  902. 'Furuveien 12',
  903. null,
  904. 'Nesøya',
  905. null,
  906. 'Norge',
  907. '1315',
  908. null);
  909. INSERT INTO customer
  910. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  911. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  912. (1057,
  913. 'Gebr. Stürmer GmbH & CoKG',
  914. 'Jürgen',
  915. 'Stürmer',
  916. '(0221) 675196',
  917. 'Theodorstraße 22',
  918. null,
  919. 'Köln',
  920. null,
  921. 'Deutschland',
  922. '50674',
  923. null);
  924. INSERT INTO customer
  925. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  926. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  927. (1058,
  928. 'Tübinger Elektronik AG',
  929. 'Bärbel',
  930. 'Düsterbeck',
  931. '(07071) 662572',
  932. 'Kurfürstenstraße 124',
  933. null,
  934. 'Tübingen',
  935. null,
  936. 'Deutschland',
  937. '72076',
  938. null);
  939. INSERT INTO customer
  940. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  941. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  942. (1059,
  943. 'Förster GmbH',
  944. 'Karl-Heinz',
  945. 'Müller',
  946. '(030) 34004-223',
  947. 'Münchenerstraße 1',
  948. null,
  949. 'Berlin',
  950. null,
  951. 'Deutschland',
  952. '10625',
  953. null);
  954. INSERT INTO customer
  955. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  956. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  957. (1060,
  958. 'TuS Rüsselsheim e.v.',
  959. 'Brigit',
  960. 'Büssing',
  961. '(06142) 335478',
  962. "Auf'm Gräverich 87",
  963. null,
  964. 'Rüsselsheim',
  965. null,
  966. 'Deutschland',
  967. '65428',
  968. null);
  969. INSERT INTO customer
  970. (cust_no, customer, contact_first, contact_last, phone_no, address_line1,
  971. address_line2, city, state_province, country, postal_code, on_hold) VALUES
  972. (1061,
  973. 'Bimsstein AG',
  974. 'Jörg',
  975. 'Wösting',
  976. '(0261) 235487',
  977. 'Robert-Koch-Straße 243',
  978. null,
  979. 'Mülheim-Kärlich',
  980. null,
  981. 'Deutschland',
  982. '56218',
  983. null);
  984. COMMIT;
  985. SET GENERATOR cust_no_gen to 1015;
  986. /*
  987. * Add some sales records.
  988. */
  989. INSERT INTO sales
  990. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  991. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  992. ('V91E0210', 1004, 11, '03/04/91', '03/05/91', null,
  993. 'shipped', 'y', 10, 5000, 0.1, 'hardware');
  994. INSERT INTO sales
  995. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  996. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  997. ('V92E0340', 1004, 11, '10/15/92', '10/16/92', '10/17/92',
  998. 'shipped', 'y', 7, 70000, 0, 'hardware');
  999. INSERT INTO sales
  1000. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1001. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1002. ('V92J1003', 1010, 61, '07/26/92', '08/04/92', '09/15/92',
  1003. 'shipped', 'y', 15, 2985, 0, 'software');
  1004. INSERT INTO sales
  1005. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1006. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1007. ('V93J2004', 1010, 118, '10/30/93', '12/02/93', '11/15/93',
  1008. 'shipped', 'y', 3, 210, 0, 'software');
  1009. INSERT INTO sales
  1010. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1011. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1012. ('V93J3100', 1010, 118, '08/20/93', '08/20/93', null,
  1013. 'shipped', 'y', 16, 18000.40, 0.10, 'software');
  1014. INSERT INTO sales
  1015. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1016. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1017. ('V92F3004', 1012, 11, '10/15/92', '01/16/93', '01/16/93',
  1018. 'shipped', 'y', 3, 2000, 0, 'software');
  1019. INSERT INTO sales
  1020. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1021. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1022. ('V93F3088', 1012, 134, '08/27/93', '09/08/93', null,
  1023. 'shipped', 'n', 10, 10000, 0, 'software');
  1024. INSERT INTO sales
  1025. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1026. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1027. ('V93F2030', 1012, 134, '12/12/93', null, null,
  1028. 'open', 'y', 15, 450000.49, 0, 'hardware');
  1029. INSERT INTO sales
  1030. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1031. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1032. ('V93F2051', 1012, 134, '12/18/93', null, '03/01/94',
  1033. 'waiting', 'n', 1, 999.98, 0, 'software');
  1034. INSERT INTO sales
  1035. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1036. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1037. ('V93H0030', 1005, 118, '12/12/93', null, '01/01/94',
  1038. 'open', 'y', 20, 5980, 0.20, 'software');
  1039. INSERT INTO sales
  1040. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1041. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1042. ('V94H0079', 1005, 61, '02/13/94', null, '04/20/94',
  1043. 'open', 'n', 10, 9000, 0.05, 'software');
  1044. INSERT INTO sales
  1045. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1046. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1047. ('V9324200', 1001, 72, '08/09/93', '08/09/93', '08/17/93',
  1048. 'shipped', 'y', 1000, 560000, 0.20, 'hardware');
  1049. INSERT INTO sales
  1050. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1051. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1052. ('V9324320', 1001, 127, '08/16/93', '08/16/93', '09/01/93',
  1053. 'shipped', 'y', 1, 0, 1, 'software');
  1054. INSERT INTO sales
  1055. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1056. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1057. ('V9320630', 1001, 127, '12/12/93', null, '12/15/93',
  1058. 'open', 'n', 3, 60000, 0.20, 'hardware');
  1059. INSERT INTO sales
  1060. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1061. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1062. ('V9420099', 1001, 127, '01/17/94', null, '06/01/94',
  1063. 'open', 'n', 100, 3399.15, 0.15, 'software');
  1064. INSERT INTO sales
  1065. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1066. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1067. ('V9427029', 1001, 127, '02/07/94', '02/10/94', '02/10/94',
  1068. 'shipped', 'n', 17, 422210.97, 0, 'hardware');
  1069. INSERT INTO sales
  1070. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1071. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1072. ('V9333005', 1002, 11, '02/03/93', '03/03/93', null,
  1073. 'shipped', 'y', 2, 600.50, 0, 'software');
  1074. INSERT INTO sales
  1075. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1076. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1077. ('V9333006', 1002, 11, '04/27/93', '05/02/93', '05/02/93',
  1078. 'shipped', 'n', 5, 20000, 0, 'other');
  1079. INSERT INTO sales
  1080. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1081. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1082. ('V9336100', 1002, 11, '12/27/93', '01/01/94', '01/01/94',
  1083. 'waiting', 'n', 150, 14850, 0.05, 'software');
  1084. INSERT INTO sales
  1085. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1086. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1087. ('V9346200', 1003, 11, '12/31/93', null, '01/24/94',
  1088. 'waiting', 'n', 3, 0, 1, 'software');
  1089. INSERT INTO sales
  1090. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1091. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1092. ('V9345200', 1003, 11, '11/11/93', '12/02/93', '12/01/93',
  1093. 'shipped', 'y', 900, 27000, 0.30, 'software');
  1094. INSERT INTO sales
  1095. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1096. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1097. ('V9345139', 1003, 127, '09/09/93', '09/20/93', '10/01/93',
  1098. 'shipped', 'y', 20, 12582.12, 0.10, 'software');
  1099. INSERT INTO sales
  1100. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1101. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1102. ('V93C0120', 1006, 72, '03/22/93', '05/31/93', '04/17/93',
  1103. 'shipped', 'y', 1, 47.50, 0, 'other');
  1104. INSERT INTO sales
  1105. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1106. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1107. ('V93C0990', 1006, 72, '08/09/93', '09/02/93', null,
  1108. 'shipped', 'y', 40, 399960.50, 0.10, 'hardware');
  1109. INSERT INTO sales
  1110. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1111. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1112. ('V9456220', 1007, 127, '01/04/94', null, '01/30/94',
  1113. 'open', 'y', 1, 3999.99, 0, 'hardware');
  1114. INSERT INTO sales
  1115. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1116. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1117. ('V93S4702', 1011, 121, '10/27/93', '10/28/93', '12/15/93',
  1118. 'shipped', 'y', 4, 120000, 0, 'hardware');
  1119. INSERT INTO sales
  1120. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1121. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1122. ('V94S6400', 1011, 141, '01/06/94', null, '02/15/94',
  1123. 'waiting', 'y', 20, 1980.72, 0.40, 'software');
  1124. INSERT INTO sales
  1125. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1126. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1127. ('V93H3009', 1008, 61, '08/01/93', '12/02/93', '12/01/93',
  1128. 'shipped', 'n', 3, 9000, 0.05, 'software');
  1129. INSERT INTO sales
  1130. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1131. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1132. ('V93H0500', 1008, 61, '12/12/93', null, '12/15/93',
  1133. 'open', 'n', 3, 16000, 0.20, 'hardware');
  1134. INSERT INTO sales
  1135. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1136. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1137. ('V93F0020', 1009, 61, '10/10/93', '11/11/93', '11/11/93',
  1138. 'shipped', 'n', 1, 490.69, 0, 'software');
  1139. INSERT INTO sales
  1140. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1141. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1142. ('V93I4700', 1013, 121, '10/27/93', null, '12/15/93',
  1143. 'open', 'n', 5, 2693, 0, 'hardware');
  1144. INSERT INTO sales
  1145. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1146. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1147. ('V93B1002', 1014, 134, '09/20/93', '09/21/93', '09/25/93',
  1148. 'shipped', 'y', 1, 100.02, 0, 'software');
  1149. INSERT INTO sales
  1150. (po_number, cust_no, sales_rep, order_date, ship_date, date_needed,
  1151. order_status, paid, qty_ordered, total_value, discount, item_type) VALUES
  1152. ('V93N5822', 1015, 134, '12/18/93', '01/14/94', null,
  1153. 'shipped', 'n', 2, 1500.00, 0, 'software');
  1154. COMMIT;
  1155. /*
  1156. * Put some customers on-hold.
  1157. */
  1158. UPDATE customer SET on_hold = '*' WHERE cust_no = 1002;
  1159. UPDATE customer SET on_hold = '*' WHERE cust_no = 1009;
  1160. COMMIT;