intldml.sql 55 KB

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