ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/public/ibx/branches/journaling/testsuite/FB2reference.log
Revision: 363
Committed: Tue Dec 7 13:30:05 2021 UTC (8 months ago) by tony
File size: 560124 byte(s)
Log Message:
add fbintf
Line File contents
1 IBX Test Suite
2 Copyright MWA Software 2016-2021
3
4 Starting Tests
5 Client API Version = 2.5
6 Firebird Environment Variable = /opt/firebird2.5.9
7 Firebird Client Library Path = /opt/firebird2.5.9/lib/libfbembed.so
8 Running Test 01: Open and read from Employee Database
9 Read dataset unidirectional buffering
10 Row No = 1
11 EMP_NO = 12
12 FIRST_NAME = Terri
13 LAST_NAME = Lee
14 PHONE_EXT = 256
15 HIRE_DATE = 01/5/1990
16 DEPT_NO = 000
17 JOB_CODE = Admin
18 JOB_GRADE = 4
19 JOB_COUNTRY = USA
20 SALARY = 53793
21 FULL_NAME = Lee, Terri
22 DEPT_PATH = Corporate Headquarters
23 DEPT_KEY_PATH = 000
24
25 Row No = 2
26 EMP_NO = 105
27 FIRST_NAME = Oliver H.
28 LAST_NAME = Bender
29 PHONE_EXT = 255
30 HIRE_DATE = 08/10/1992
31 DEPT_NO = 000
32 JOB_CODE = CEO
33 JOB_GRADE = 1
34 JOB_COUNTRY = USA
35 SALARY = 212850
36 FULL_NAME = Bender, Oliver H.
37 DEPT_PATH = Corporate Headquarters
38 DEPT_KEY_PATH = 000
39
40 Row No = 3
41 EMP_NO = 85
42 FIRST_NAME = Mary S.
43 LAST_NAME = MacDonald
44 PHONE_EXT = 477
45 HIRE_DATE = 01/6/1992
46 DEPT_NO = 100
47 JOB_CODE = VP
48 JOB_GRADE = 2
49 JOB_COUNTRY = USA
50 SALARY = 111262.5
51 FULL_NAME = MacDonald, Mary S.
52 DEPT_PATH = Corporate Headquarters / Sales and Marketing
53 DEPT_KEY_PATH = 000;100
54
55 Row No = 4
56 EMP_NO = 127
57 FIRST_NAME = Michael
58 LAST_NAME = Yanowski
59 PHONE_EXT = 492
60 HIRE_DATE = 09/8/1993
61 DEPT_NO = 100
62 JOB_CODE = SRep
63 JOB_GRADE = 4
64 JOB_COUNTRY = USA
65 SALARY = 44000
66 FULL_NAME = Yanowski, Michael
67 DEPT_PATH = Corporate Headquarters / Sales and Marketing
68 DEPT_KEY_PATH = 000;100
69
70 Row No = 5
71 EMP_NO = 8
72 FIRST_NAME = Leslie
73 LAST_NAME = Johnson
74 PHONE_EXT = 410
75 HIRE_DATE = 05/4/1989
76 DEPT_NO = 180
77 JOB_CODE = Mktg
78 JOB_GRADE = 3
79 JOB_COUNTRY = USA
80 SALARY = 64635
81 FULL_NAME = Johnson, Leslie
82 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
83 DEPT_KEY_PATH = 000;100;180
84
85 Row No = 6
86 EMP_NO = 52
87 FIRST_NAME = Carol
88 LAST_NAME = Nordstrom
89 PHONE_EXT = 420
90 HIRE_DATE = 02/10/1991
91 DEPT_NO = 180
92 JOB_CODE = PRel
93 JOB_GRADE = 4
94 JOB_COUNTRY = USA
95 SALARY = 42742.5
96 FULL_NAME = Nordstrom, Carol
97 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
98 DEPT_KEY_PATH = 000;100;180
99
100 Row No = 7
101 EMP_NO = 5
102 FIRST_NAME = Kim
103 LAST_NAME = Lambert
104 PHONE_EXT = 22
105 HIRE_DATE = 06/2/1989
106 DEPT_NO = 130
107 JOB_CODE = Eng
108 JOB_GRADE = 2
109 JOB_COUNTRY = USA
110 SALARY = 102750
111 FULL_NAME = Lambert, Kim
112 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
113 DEPT_KEY_PATH = 000;100;130
114
115 Row No = 8
116 EMP_NO = 11
117 FIRST_NAME = K. J.
118 LAST_NAME = Weston
119 PHONE_EXT = 34
120 HIRE_DATE = 17/1/1990
121 DEPT_NO = 130
122 JOB_CODE = SRep
123 JOB_GRADE = 4
124 JOB_COUNTRY = USA
125 SALARY = 86292.94
126 FULL_NAME = Weston, K. J.
127 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
128 DEPT_KEY_PATH = 000;100;130
129
130 Row No = 9
131 EMP_NO = 72
132 FIRST_NAME = Claudia
133 LAST_NAME = Sutherland
134 PHONE_EXT = NULL
135 HIRE_DATE = 20/4/1992
136 DEPT_NO = 140
137 JOB_CODE = SRep
138 JOB_GRADE = 4
139 JOB_COUNTRY = Canada
140 SALARY = 100914
141 FULL_NAME = Sutherland, Claudia
142 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: Canada
143 DEPT_KEY_PATH = 000;100;140
144
145 Row No = 10
146 EMP_NO = 34
147 FIRST_NAME = Janet
148 LAST_NAME = Baldwin
149 PHONE_EXT = 2
150 HIRE_DATE = 21/3/1991
151 DEPT_NO = 110
152 JOB_CODE = Sales
153 JOB_GRADE = 3
154 JOB_COUNTRY = USA
155 SALARY = 61637.81
156 FULL_NAME = Baldwin, Janet
157 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
158 DEPT_KEY_PATH = 000;100;110
159
160 Row No = 11
161 EMP_NO = 61
162 FIRST_NAME = Luke
163 LAST_NAME = Leung
164 PHONE_EXT = 3
165 HIRE_DATE = 18/2/1992
166 DEPT_NO = 110
167 JOB_CODE = SRep
168 JOB_GRADE = 4
169 JOB_COUNTRY = USA
170 SALARY = 68805
171 FULL_NAME = Leung, Luke
172 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
173 DEPT_KEY_PATH = 000;100;110
174
175 Row No = 12
176 EMP_NO = 110
177 FIRST_NAME = Yuki
178 LAST_NAME = Ichida
179 PHONE_EXT = 22
180 HIRE_DATE = 04/2/1993
181 DEPT_NO = 115
182 JOB_CODE = Eng
183 JOB_GRADE = 3
184 JOB_COUNTRY = Japan
185 SALARY = 6000000
186 FULL_NAME = Ichida, Yuki
187 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
188 DEPT_KEY_PATH = 000;100;110;115
189
190 Row No = 13
191 EMP_NO = 118
192 FIRST_NAME = Takashi
193 LAST_NAME = Yamamoto
194 PHONE_EXT = 23
195 HIRE_DATE = 01/7/1993
196 DEPT_NO = 115
197 JOB_CODE = SRep
198 JOB_GRADE = 4
199 JOB_COUNTRY = Japan
200 SALARY = 7480000
201 FULL_NAME = Yamamoto, Takashi
202 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
203 DEPT_KEY_PATH = 000;100;110;115
204
205 Row No = 14
206 EMP_NO = 28
207 FIRST_NAME = Ann
208 LAST_NAME = Bennet
209 PHONE_EXT = 5
210 HIRE_DATE = 01/2/1991
211 DEPT_NO = 120
212 JOB_CODE = Admin
213 JOB_GRADE = 5
214 JOB_COUNTRY = England
215 SALARY = 22935
216 FULL_NAME = Bennet, Ann
217 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
218 DEPT_KEY_PATH = 000;100;120
219
220 Row No = 15
221 EMP_NO = 36
222 FIRST_NAME = Roger
223 LAST_NAME = Reeves
224 PHONE_EXT = 6
225 HIRE_DATE = 25/4/1991
226 DEPT_NO = 120
227 JOB_CODE = Sales
228 JOB_GRADE = 3
229 JOB_COUNTRY = England
230 SALARY = 33620.63
231 FULL_NAME = Reeves, Roger
232 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
233 DEPT_KEY_PATH = 000;100;120
234
235 Row No = 16
236 EMP_NO = 37
237 FIRST_NAME = Willie
238 LAST_NAME = Stansbury
239 PHONE_EXT = 7
240 HIRE_DATE = 25/4/1991
241 DEPT_NO = 120
242 JOB_CODE = Eng
243 JOB_GRADE = 4
244 JOB_COUNTRY = England
245 SALARY = 39224.06
246 FULL_NAME = Stansbury, Willie
247 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
248 DEPT_KEY_PATH = 000;100;120
249
250 Row No = 17
251 EMP_NO = 141
252 FIRST_NAME = Pierre
253 LAST_NAME = Osborne
254 PHONE_EXT = NULL
255 HIRE_DATE = 03/1/1994
256 DEPT_NO = 121
257 JOB_CODE = SRep
258 JOB_GRADE = 4
259 JOB_COUNTRY = Switzerland
260 SALARY = 110000
261 FULL_NAME = Osborne, Pierre
262 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Switzerland
263 DEPT_KEY_PATH = 000;100;120;121
264
265 Row No = 18
266 EMP_NO = 134
267 FIRST_NAME = Jacques
268 LAST_NAME = Glon
269 PHONE_EXT = NULL
270 HIRE_DATE = 23/8/1993
271 DEPT_NO = 123
272 JOB_CODE = SRep
273 JOB_GRADE = 4
274 JOB_COUNTRY = France
275 SALARY = 390500
276 FULL_NAME = Glon, Jacques
277 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: France
278 DEPT_KEY_PATH = 000;100;120;123
279
280 Row No = 19
281 EMP_NO = 121
282 FIRST_NAME = Roberto
283 LAST_NAME = Ferrari
284 PHONE_EXT = 1
285 HIRE_DATE = 12/7/1993
286 DEPT_NO = 125
287 JOB_CODE = SRep
288 JOB_GRADE = 4
289 JOB_COUNTRY = Italy
290 SALARY = 99000000
291 FULL_NAME = Ferrari, Roberto
292 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Italy
293 DEPT_KEY_PATH = 000;100;120;125
294
295 Row No = 20
296 EMP_NO = 2
297 FIRST_NAME = Robert
298 LAST_NAME = Nelson
299 PHONE_EXT = 250
300 HIRE_DATE = 28/12/1988
301 DEPT_NO = 600
302 JOB_CODE = VP
303 JOB_GRADE = 2
304 JOB_COUNTRY = USA
305 SALARY = 105900
306 FULL_NAME = Nelson, Robert
307 DEPT_PATH = Corporate Headquarters / Engineering
308 DEPT_KEY_PATH = 000;600
309
310 Row No = 21
311 EMP_NO = 109
312 FIRST_NAME = Kelly
313 LAST_NAME = Brown
314 PHONE_EXT = 202
315 HIRE_DATE = 04/2/1993
316 DEPT_NO = 600
317 JOB_CODE = Admin
318 JOB_GRADE = 5
319 JOB_COUNTRY = USA
320 SALARY = 27000
321 FULL_NAME = Brown, Kelly
322 DEPT_PATH = Corporate Headquarters / Engineering
323 DEPT_KEY_PATH = 000;600
324
325 Row No = 22
326 EMP_NO = 4
327 FIRST_NAME = Bruce
328 LAST_NAME = Young
329 PHONE_EXT = 233
330 HIRE_DATE = 28/12/1988
331 DEPT_NO = 621
332 JOB_CODE = Eng
333 JOB_GRADE = 2
334 JOB_COUNTRY = USA
335 SALARY = 97500
336 FULL_NAME = Young, Bruce
337 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
338 DEPT_KEY_PATH = 000;600;620;621
339
340 Row No = 23
341 EMP_NO = 45
342 FIRST_NAME = Ashok
343 LAST_NAME = Ramanathan
344 PHONE_EXT = 209
345 HIRE_DATE = 01/8/1991
346 DEPT_NO = 621
347 JOB_CODE = Eng
348 JOB_GRADE = 3
349 JOB_COUNTRY = USA
350 SALARY = 80689.5
351 FULL_NAME = Ramanathan, Ashok
352 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
353 DEPT_KEY_PATH = 000;600;620;621
354
355 Row No = 24
356 EMP_NO = 83
357 FIRST_NAME = Dana
358 LAST_NAME = Bishop
359 PHONE_EXT = 290
360 HIRE_DATE = 01/6/1992
361 DEPT_NO = 621
362 JOB_CODE = Eng
363 JOB_GRADE = 3
364 JOB_COUNTRY = USA
365 SALARY = 62550
366 FULL_NAME = Bishop, Dana
367 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
368 DEPT_KEY_PATH = 000;600;620;621
369
370 Row No = 25
371 EMP_NO = 138
372 FIRST_NAME = T.J.
373 LAST_NAME = Green
374 PHONE_EXT = 218
375 HIRE_DATE = 01/11/1993
376 DEPT_NO = 621
377 JOB_CODE = Eng
378 JOB_GRADE = 4
379 JOB_COUNTRY = USA
380 SALARY = 36000
381 FULL_NAME = Green, T.J.
382 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
383 DEPT_KEY_PATH = 000;600;620;621
384
385 Row No = 26
386 EMP_NO = 9
387 FIRST_NAME = Phil
388 LAST_NAME = Forest
389 PHONE_EXT = 229
390 HIRE_DATE = 17/4/1989
391 DEPT_NO = 622
392 JOB_CODE = Mngr
393 JOB_GRADE = 3
394 JOB_COUNTRY = USA
395 SALARY = 75060
396 FULL_NAME = Forest, Phil
397 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
398 DEPT_KEY_PATH = 000;600;620;622
399
400 Row No = 27
401 EMP_NO = 71
402 FIRST_NAME = Jennifer M.
403 LAST_NAME = Burbank
404 PHONE_EXT = 289
405 HIRE_DATE = 15/4/1992
406 DEPT_NO = 622
407 JOB_CODE = Eng
408 JOB_GRADE = 3
409 JOB_COUNTRY = USA
410 SALARY = 53167.5
411 FULL_NAME = Burbank, Jennifer M.
412 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
413 DEPT_KEY_PATH = 000;600;620;622
414
415 Row No = 28
416 EMP_NO = 145
417 FIRST_NAME = Mark
418 LAST_NAME = Guckenheimer
419 PHONE_EXT = 221
420 HIRE_DATE = 02/5/1994
421 DEPT_NO = 622
422 JOB_CODE = Eng
423 JOB_GRADE = 5
424 JOB_COUNTRY = USA
425 SALARY = 32000
426 FULL_NAME = Guckenheimer, Mark
427 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
428 DEPT_KEY_PATH = 000;600;620;622
429
430 Row No = 29
431 EMP_NO = 15
432 FIRST_NAME = Katherine
433 LAST_NAME = Young
434 PHONE_EXT = 231
435 HIRE_DATE = 14/6/1990
436 DEPT_NO = 623
437 JOB_CODE = Mngr
438 JOB_GRADE = 3
439 JOB_COUNTRY = USA
440 SALARY = 67241.25
441 FULL_NAME = Young, Katherine
442 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
443 DEPT_KEY_PATH = 000;600;620;623
444
445 Row No = 30
446 EMP_NO = 29
447 FIRST_NAME = Roger
448 LAST_NAME = De Souza
449 PHONE_EXT = 288
450 HIRE_DATE = 18/2/1991
451 DEPT_NO = 623
452 JOB_CODE = Eng
453 JOB_GRADE = 3
454 JOB_COUNTRY = USA
455 SALARY = 69482.63
456 FULL_NAME = De Souza, Roger
457 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
458 DEPT_KEY_PATH = 000;600;620;623
459
460 Row No = 31
461 EMP_NO = 44
462 FIRST_NAME = Leslie
463 LAST_NAME = Phong
464 PHONE_EXT = 216
465 HIRE_DATE = 03/6/1991
466 DEPT_NO = 623
467 JOB_CODE = Eng
468 JOB_GRADE = 4
469 JOB_COUNTRY = USA
470 SALARY = 56034.38
471 FULL_NAME = Phong, Leslie
472 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
473 DEPT_KEY_PATH = 000;600;620;623
474
475 Row No = 32
476 EMP_NO = 114
477 FIRST_NAME = Bill
478 LAST_NAME = Parker
479 PHONE_EXT = 247
480 HIRE_DATE = 01/6/1993
481 DEPT_NO = 623
482 JOB_CODE = Eng
483 JOB_GRADE = 5
484 JOB_COUNTRY = USA
485 SALARY = 35000
486 FULL_NAME = Parker, Bill
487 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
488 DEPT_KEY_PATH = 000;600;620;623
489
490 Row No = 33
491 EMP_NO = 136
492 FIRST_NAME = Scott
493 LAST_NAME = Johnson
494 PHONE_EXT = 265
495 HIRE_DATE = 13/9/1993
496 DEPT_NO = 623
497 JOB_CODE = Doc
498 JOB_GRADE = 3
499 JOB_COUNTRY = USA
500 SALARY = 60000
501 FULL_NAME = Johnson, Scott
502 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
503 DEPT_KEY_PATH = 000;600;620;623
504
505 Row No = 34
506 EMP_NO = 65
507 FIRST_NAME = Sue Anne
508 LAST_NAME = O'Brien
509 PHONE_EXT = 877
510 HIRE_DATE = 23/3/1992
511 DEPT_NO = 670
512 JOB_CODE = Admin
513 JOB_GRADE = 5
514 JOB_COUNTRY = USA
515 SALARY = 31275
516 FULL_NAME = O'Brien, Sue Anne
517 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
518 DEPT_KEY_PATH = 000;600;670
519
520 Row No = 35
521 EMP_NO = 107
522 FIRST_NAME = Kevin
523 LAST_NAME = Cook
524 PHONE_EXT = 894
525 HIRE_DATE = 01/2/1993
526 DEPT_NO = 670
527 JOB_CODE = Dir
528 JOB_GRADE = 2
529 JOB_COUNTRY = USA
530 SALARY = 111262.5
531 FULL_NAME = Cook, Kevin
532 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
533 DEPT_KEY_PATH = 000;600;670
534
535 Row No = 36
536 EMP_NO = 20
537 FIRST_NAME = Chris
538 LAST_NAME = Papadopoulos
539 PHONE_EXT = 887
540 HIRE_DATE = 01/1/1990
541 DEPT_NO = 671
542 JOB_CODE = Mngr
543 JOB_GRADE = 3
544 JOB_COUNTRY = USA
545 SALARY = 89655
546 FULL_NAME = Papadopoulos, Chris
547 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
548 DEPT_KEY_PATH = 000;600;670;671
549
550 Row No = 37
551 EMP_NO = 24
552 FIRST_NAME = Pete
553 LAST_NAME = Fisher
554 PHONE_EXT = 888
555 HIRE_DATE = 12/9/1990
556 DEPT_NO = 671
557 JOB_CODE = Eng
558 JOB_GRADE = 3
559 JOB_COUNTRY = USA
560 SALARY = 81810.19
561 FULL_NAME = Fisher, Pete
562 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
563 DEPT_KEY_PATH = 000;600;670;671
564
565 Row No = 38
566 EMP_NO = 113
567 FIRST_NAME = Mary
568 LAST_NAME = Page
569 PHONE_EXT = 845
570 HIRE_DATE = 12/4/1993
571 DEPT_NO = 671
572 JOB_CODE = Eng
573 JOB_GRADE = 4
574 JOB_COUNTRY = USA
575 SALARY = 48000
576 FULL_NAME = Page, Mary
577 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
578 DEPT_KEY_PATH = 000;600;670;671
579
580 Row No = 39
581 EMP_NO = 94
582 FIRST_NAME = Randy
583 LAST_NAME = Williams
584 PHONE_EXT = 892
585 HIRE_DATE = 08/8/1992
586 DEPT_NO = 672
587 JOB_CODE = Mngr
588 JOB_GRADE = 4
589 JOB_COUNTRY = USA
590 SALARY = 56295
591 FULL_NAME = Williams, Randy
592 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
593 DEPT_KEY_PATH = 000;600;670;672
594
595 Row No = 40
596 EMP_NO = 144
597 FIRST_NAME = John
598 LAST_NAME = Montgomery
599 PHONE_EXT = 820
600 HIRE_DATE = 30/3/1994
601 DEPT_NO = 672
602 JOB_CODE = Eng
603 JOB_GRADE = 5
604 JOB_COUNTRY = USA
605 SALARY = 35000
606 FULL_NAME = Montgomery, John
607 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
608 DEPT_KEY_PATH = 000;600;670;672
609
610 Row No = 41
611 EMP_NO = 14
612 FIRST_NAME = Stewart
613 LAST_NAME = Hall
614 PHONE_EXT = 227
615 HIRE_DATE = 04/6/1990
616 DEPT_NO = 900
617 JOB_CODE = Finan
618 JOB_GRADE = 3
619 JOB_COUNTRY = USA
620 SALARY = 69482.63
621 FULL_NAME = Hall, Stewart
622 DEPT_PATH = Corporate Headquarters / Finance
623 DEPT_KEY_PATH = 000;900
624
625 Row No = 42
626 EMP_NO = 46
627 FIRST_NAME = Walter
628 LAST_NAME = Steadman
629 PHONE_EXT = 210
630 HIRE_DATE = 09/8/1991
631 DEPT_NO = 900
632 JOB_CODE = CFO
633 JOB_GRADE = 1
634 JOB_COUNTRY = USA
635 SALARY = 116100
636 FULL_NAME = Steadman, Walter
637 DEPT_PATH = Corporate Headquarters / Finance
638 DEPT_KEY_PATH = 000;900
639
640 Rows printed = 42
641
642 Current memory = 960,760
643 Delta memory = 9,512
644 Max memory = 1,012,104
645 Elapsed time= 0.027 sec
646 Cpu = 0.002 sec
647 Buffers = 75
648 Reads = 3
649 Writes = 0
650 Fetches = 212
651 Selects = 0
652 Inserts = 0
653 Updates = 0
654 Deletes = 0
655
656 Reconnect
657 Read dataset bidirectional buffering
658 Row No = 1
659 EMP_NO = 12
660 FIRST_NAME = Terri
661 LAST_NAME = Lee
662 PHONE_EXT = 256
663 HIRE_DATE = 01/5/1990
664 DEPT_NO = 000
665 JOB_CODE = Admin
666 JOB_GRADE = 4
667 JOB_COUNTRY = USA
668 SALARY = 53793
669 FULL_NAME = Lee, Terri
670 DEPT_PATH = Corporate Headquarters
671 DEPT_KEY_PATH = 000
672
673 Row No = 2
674 EMP_NO = 105
675 FIRST_NAME = Oliver H.
676 LAST_NAME = Bender
677 PHONE_EXT = 255
678 HIRE_DATE = 08/10/1992
679 DEPT_NO = 000
680 JOB_CODE = CEO
681 JOB_GRADE = 1
682 JOB_COUNTRY = USA
683 SALARY = 212850
684 FULL_NAME = Bender, Oliver H.
685 DEPT_PATH = Corporate Headquarters
686 DEPT_KEY_PATH = 000
687
688 Row No = 3
689 EMP_NO = 85
690 FIRST_NAME = Mary S.
691 LAST_NAME = MacDonald
692 PHONE_EXT = 477
693 HIRE_DATE = 01/6/1992
694 DEPT_NO = 100
695 JOB_CODE = VP
696 JOB_GRADE = 2
697 JOB_COUNTRY = USA
698 SALARY = 111262.5
699 FULL_NAME = MacDonald, Mary S.
700 DEPT_PATH = Corporate Headquarters / Sales and Marketing
701 DEPT_KEY_PATH = 000;100
702
703 Row No = 4
704 EMP_NO = 127
705 FIRST_NAME = Michael
706 LAST_NAME = Yanowski
707 PHONE_EXT = 492
708 HIRE_DATE = 09/8/1993
709 DEPT_NO = 100
710 JOB_CODE = SRep
711 JOB_GRADE = 4
712 JOB_COUNTRY = USA
713 SALARY = 44000
714 FULL_NAME = Yanowski, Michael
715 DEPT_PATH = Corporate Headquarters / Sales and Marketing
716 DEPT_KEY_PATH = 000;100
717
718 Row No = 5
719 EMP_NO = 8
720 FIRST_NAME = Leslie
721 LAST_NAME = Johnson
722 PHONE_EXT = 410
723 HIRE_DATE = 05/4/1989
724 DEPT_NO = 180
725 JOB_CODE = Mktg
726 JOB_GRADE = 3
727 JOB_COUNTRY = USA
728 SALARY = 64635
729 FULL_NAME = Johnson, Leslie
730 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
731 DEPT_KEY_PATH = 000;100;180
732
733 Row No = 6
734 EMP_NO = 52
735 FIRST_NAME = Carol
736 LAST_NAME = Nordstrom
737 PHONE_EXT = 420
738 HIRE_DATE = 02/10/1991
739 DEPT_NO = 180
740 JOB_CODE = PRel
741 JOB_GRADE = 4
742 JOB_COUNTRY = USA
743 SALARY = 42742.5
744 FULL_NAME = Nordstrom, Carol
745 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
746 DEPT_KEY_PATH = 000;100;180
747
748 Row No = 7
749 EMP_NO = 5
750 FIRST_NAME = Kim
751 LAST_NAME = Lambert
752 PHONE_EXT = 22
753 HIRE_DATE = 06/2/1989
754 DEPT_NO = 130
755 JOB_CODE = Eng
756 JOB_GRADE = 2
757 JOB_COUNTRY = USA
758 SALARY = 102750
759 FULL_NAME = Lambert, Kim
760 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
761 DEPT_KEY_PATH = 000;100;130
762
763 Row No = 8
764 EMP_NO = 11
765 FIRST_NAME = K. J.
766 LAST_NAME = Weston
767 PHONE_EXT = 34
768 HIRE_DATE = 17/1/1990
769 DEPT_NO = 130
770 JOB_CODE = SRep
771 JOB_GRADE = 4
772 JOB_COUNTRY = USA
773 SALARY = 86292.94
774 FULL_NAME = Weston, K. J.
775 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
776 DEPT_KEY_PATH = 000;100;130
777
778 Row No = 9
779 EMP_NO = 72
780 FIRST_NAME = Claudia
781 LAST_NAME = Sutherland
782 PHONE_EXT = NULL
783 HIRE_DATE = 20/4/1992
784 DEPT_NO = 140
785 JOB_CODE = SRep
786 JOB_GRADE = 4
787 JOB_COUNTRY = Canada
788 SALARY = 100914
789 FULL_NAME = Sutherland, Claudia
790 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: Canada
791 DEPT_KEY_PATH = 000;100;140
792
793 Row No = 10
794 EMP_NO = 34
795 FIRST_NAME = Janet
796 LAST_NAME = Baldwin
797 PHONE_EXT = 2
798 HIRE_DATE = 21/3/1991
799 DEPT_NO = 110
800 JOB_CODE = Sales
801 JOB_GRADE = 3
802 JOB_COUNTRY = USA
803 SALARY = 61637.81
804 FULL_NAME = Baldwin, Janet
805 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
806 DEPT_KEY_PATH = 000;100;110
807
808 Row No = 11
809 EMP_NO = 61
810 FIRST_NAME = Luke
811 LAST_NAME = Leung
812 PHONE_EXT = 3
813 HIRE_DATE = 18/2/1992
814 DEPT_NO = 110
815 JOB_CODE = SRep
816 JOB_GRADE = 4
817 JOB_COUNTRY = USA
818 SALARY = 68805
819 FULL_NAME = Leung, Luke
820 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
821 DEPT_KEY_PATH = 000;100;110
822
823 Row No = 12
824 EMP_NO = 110
825 FIRST_NAME = Yuki
826 LAST_NAME = Ichida
827 PHONE_EXT = 22
828 HIRE_DATE = 04/2/1993
829 DEPT_NO = 115
830 JOB_CODE = Eng
831 JOB_GRADE = 3
832 JOB_COUNTRY = Japan
833 SALARY = 6000000
834 FULL_NAME = Ichida, Yuki
835 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
836 DEPT_KEY_PATH = 000;100;110;115
837
838 Row No = 13
839 EMP_NO = 118
840 FIRST_NAME = Takashi
841 LAST_NAME = Yamamoto
842 PHONE_EXT = 23
843 HIRE_DATE = 01/7/1993
844 DEPT_NO = 115
845 JOB_CODE = SRep
846 JOB_GRADE = 4
847 JOB_COUNTRY = Japan
848 SALARY = 7480000
849 FULL_NAME = Yamamoto, Takashi
850 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
851 DEPT_KEY_PATH = 000;100;110;115
852
853 Row No = 14
854 EMP_NO = 28
855 FIRST_NAME = Ann
856 LAST_NAME = Bennet
857 PHONE_EXT = 5
858 HIRE_DATE = 01/2/1991
859 DEPT_NO = 120
860 JOB_CODE = Admin
861 JOB_GRADE = 5
862 JOB_COUNTRY = England
863 SALARY = 22935
864 FULL_NAME = Bennet, Ann
865 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
866 DEPT_KEY_PATH = 000;100;120
867
868 Row No = 15
869 EMP_NO = 36
870 FIRST_NAME = Roger
871 LAST_NAME = Reeves
872 PHONE_EXT = 6
873 HIRE_DATE = 25/4/1991
874 DEPT_NO = 120
875 JOB_CODE = Sales
876 JOB_GRADE = 3
877 JOB_COUNTRY = England
878 SALARY = 33620.63
879 FULL_NAME = Reeves, Roger
880 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
881 DEPT_KEY_PATH = 000;100;120
882
883 Row No = 16
884 EMP_NO = 37
885 FIRST_NAME = Willie
886 LAST_NAME = Stansbury
887 PHONE_EXT = 7
888 HIRE_DATE = 25/4/1991
889 DEPT_NO = 120
890 JOB_CODE = Eng
891 JOB_GRADE = 4
892 JOB_COUNTRY = England
893 SALARY = 39224.06
894 FULL_NAME = Stansbury, Willie
895 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
896 DEPT_KEY_PATH = 000;100;120
897
898 Row No = 17
899 EMP_NO = 141
900 FIRST_NAME = Pierre
901 LAST_NAME = Osborne
902 PHONE_EXT = NULL
903 HIRE_DATE = 03/1/1994
904 DEPT_NO = 121
905 JOB_CODE = SRep
906 JOB_GRADE = 4
907 JOB_COUNTRY = Switzerland
908 SALARY = 110000
909 FULL_NAME = Osborne, Pierre
910 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Switzerland
911 DEPT_KEY_PATH = 000;100;120;121
912
913 Row No = 18
914 EMP_NO = 134
915 FIRST_NAME = Jacques
916 LAST_NAME = Glon
917 PHONE_EXT = NULL
918 HIRE_DATE = 23/8/1993
919 DEPT_NO = 123
920 JOB_CODE = SRep
921 JOB_GRADE = 4
922 JOB_COUNTRY = France
923 SALARY = 390500
924 FULL_NAME = Glon, Jacques
925 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: France
926 DEPT_KEY_PATH = 000;100;120;123
927
928 Row No = 19
929 EMP_NO = 121
930 FIRST_NAME = Roberto
931 LAST_NAME = Ferrari
932 PHONE_EXT = 1
933 HIRE_DATE = 12/7/1993
934 DEPT_NO = 125
935 JOB_CODE = SRep
936 JOB_GRADE = 4
937 JOB_COUNTRY = Italy
938 SALARY = 99000000
939 FULL_NAME = Ferrari, Roberto
940 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Italy
941 DEPT_KEY_PATH = 000;100;120;125
942
943 Row No = 20
944 EMP_NO = 2
945 FIRST_NAME = Robert
946 LAST_NAME = Nelson
947 PHONE_EXT = 250
948 HIRE_DATE = 28/12/1988
949 DEPT_NO = 600
950 JOB_CODE = VP
951 JOB_GRADE = 2
952 JOB_COUNTRY = USA
953 SALARY = 105900
954 FULL_NAME = Nelson, Robert
955 DEPT_PATH = Corporate Headquarters / Engineering
956 DEPT_KEY_PATH = 000;600
957
958 Row No = 21
959 EMP_NO = 109
960 FIRST_NAME = Kelly
961 LAST_NAME = Brown
962 PHONE_EXT = 202
963 HIRE_DATE = 04/2/1993
964 DEPT_NO = 600
965 JOB_CODE = Admin
966 JOB_GRADE = 5
967 JOB_COUNTRY = USA
968 SALARY = 27000
969 FULL_NAME = Brown, Kelly
970 DEPT_PATH = Corporate Headquarters / Engineering
971 DEPT_KEY_PATH = 000;600
972
973 Row No = 22
974 EMP_NO = 4
975 FIRST_NAME = Bruce
976 LAST_NAME = Young
977 PHONE_EXT = 233
978 HIRE_DATE = 28/12/1988
979 DEPT_NO = 621
980 JOB_CODE = Eng
981 JOB_GRADE = 2
982 JOB_COUNTRY = USA
983 SALARY = 97500
984 FULL_NAME = Young, Bruce
985 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
986 DEPT_KEY_PATH = 000;600;620;621
987
988 Row No = 23
989 EMP_NO = 45
990 FIRST_NAME = Ashok
991 LAST_NAME = Ramanathan
992 PHONE_EXT = 209
993 HIRE_DATE = 01/8/1991
994 DEPT_NO = 621
995 JOB_CODE = Eng
996 JOB_GRADE = 3
997 JOB_COUNTRY = USA
998 SALARY = 80689.5
999 FULL_NAME = Ramanathan, Ashok
1000 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
1001 DEPT_KEY_PATH = 000;600;620;621
1002
1003 Row No = 24
1004 EMP_NO = 83
1005 FIRST_NAME = Dana
1006 LAST_NAME = Bishop
1007 PHONE_EXT = 290
1008 HIRE_DATE = 01/6/1992
1009 DEPT_NO = 621
1010 JOB_CODE = Eng
1011 JOB_GRADE = 3
1012 JOB_COUNTRY = USA
1013 SALARY = 62550
1014 FULL_NAME = Bishop, Dana
1015 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
1016 DEPT_KEY_PATH = 000;600;620;621
1017
1018 Row No = 25
1019 EMP_NO = 138
1020 FIRST_NAME = T.J.
1021 LAST_NAME = Green
1022 PHONE_EXT = 218
1023 HIRE_DATE = 01/11/1993
1024 DEPT_NO = 621
1025 JOB_CODE = Eng
1026 JOB_GRADE = 4
1027 JOB_COUNTRY = USA
1028 SALARY = 36000
1029 FULL_NAME = Green, T.J.
1030 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
1031 DEPT_KEY_PATH = 000;600;620;621
1032
1033 Row No = 26
1034 EMP_NO = 9
1035 FIRST_NAME = Phil
1036 LAST_NAME = Forest
1037 PHONE_EXT = 229
1038 HIRE_DATE = 17/4/1989
1039 DEPT_NO = 622
1040 JOB_CODE = Mngr
1041 JOB_GRADE = 3
1042 JOB_COUNTRY = USA
1043 SALARY = 75060
1044 FULL_NAME = Forest, Phil
1045 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
1046 DEPT_KEY_PATH = 000;600;620;622
1047
1048 Row No = 27
1049 EMP_NO = 71
1050 FIRST_NAME = Jennifer M.
1051 LAST_NAME = Burbank
1052 PHONE_EXT = 289
1053 HIRE_DATE = 15/4/1992
1054 DEPT_NO = 622
1055 JOB_CODE = Eng
1056 JOB_GRADE = 3
1057 JOB_COUNTRY = USA
1058 SALARY = 53167.5
1059 FULL_NAME = Burbank, Jennifer M.
1060 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
1061 DEPT_KEY_PATH = 000;600;620;622
1062
1063 Row No = 28
1064 EMP_NO = 145
1065 FIRST_NAME = Mark
1066 LAST_NAME = Guckenheimer
1067 PHONE_EXT = 221
1068 HIRE_DATE = 02/5/1994
1069 DEPT_NO = 622
1070 JOB_CODE = Eng
1071 JOB_GRADE = 5
1072 JOB_COUNTRY = USA
1073 SALARY = 32000
1074 FULL_NAME = Guckenheimer, Mark
1075 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
1076 DEPT_KEY_PATH = 000;600;620;622
1077
1078 Row No = 29
1079 EMP_NO = 15
1080 FIRST_NAME = Katherine
1081 LAST_NAME = Young
1082 PHONE_EXT = 231
1083 HIRE_DATE = 14/6/1990
1084 DEPT_NO = 623
1085 JOB_CODE = Mngr
1086 JOB_GRADE = 3
1087 JOB_COUNTRY = USA
1088 SALARY = 67241.25
1089 FULL_NAME = Young, Katherine
1090 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
1091 DEPT_KEY_PATH = 000;600;620;623
1092
1093 Row No = 30
1094 EMP_NO = 29
1095 FIRST_NAME = Roger
1096 LAST_NAME = De Souza
1097 PHONE_EXT = 288
1098 HIRE_DATE = 18/2/1991
1099 DEPT_NO = 623
1100 JOB_CODE = Eng
1101 JOB_GRADE = 3
1102 JOB_COUNTRY = USA
1103 SALARY = 69482.63
1104 FULL_NAME = De Souza, Roger
1105 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
1106 DEPT_KEY_PATH = 000;600;620;623
1107
1108 Row No = 31
1109 EMP_NO = 44
1110 FIRST_NAME = Leslie
1111 LAST_NAME = Phong
1112 PHONE_EXT = 216
1113 HIRE_DATE = 03/6/1991
1114 DEPT_NO = 623
1115 JOB_CODE = Eng
1116 JOB_GRADE = 4
1117 JOB_COUNTRY = USA
1118 SALARY = 56034.38
1119 FULL_NAME = Phong, Leslie
1120 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
1121 DEPT_KEY_PATH = 000;600;620;623
1122
1123 Row No = 32
1124 EMP_NO = 114
1125 FIRST_NAME = Bill
1126 LAST_NAME = Parker
1127 PHONE_EXT = 247
1128 HIRE_DATE = 01/6/1993
1129 DEPT_NO = 623
1130 JOB_CODE = Eng
1131 JOB_GRADE = 5
1132 JOB_COUNTRY = USA
1133 SALARY = 35000
1134 FULL_NAME = Parker, Bill
1135 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
1136 DEPT_KEY_PATH = 000;600;620;623
1137
1138 Row No = 33
1139 EMP_NO = 136
1140 FIRST_NAME = Scott
1141 LAST_NAME = Johnson
1142 PHONE_EXT = 265
1143 HIRE_DATE = 13/9/1993
1144 DEPT_NO = 623
1145 JOB_CODE = Doc
1146 JOB_GRADE = 3
1147 JOB_COUNTRY = USA
1148 SALARY = 60000
1149 FULL_NAME = Johnson, Scott
1150 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
1151 DEPT_KEY_PATH = 000;600;620;623
1152
1153 Row No = 34
1154 EMP_NO = 65
1155 FIRST_NAME = Sue Anne
1156 LAST_NAME = O'Brien
1157 PHONE_EXT = 877
1158 HIRE_DATE = 23/3/1992
1159 DEPT_NO = 670
1160 JOB_CODE = Admin
1161 JOB_GRADE = 5
1162 JOB_COUNTRY = USA
1163 SALARY = 31275
1164 FULL_NAME = O'Brien, Sue Anne
1165 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
1166 DEPT_KEY_PATH = 000;600;670
1167
1168 Row No = 35
1169 EMP_NO = 107
1170 FIRST_NAME = Kevin
1171 LAST_NAME = Cook
1172 PHONE_EXT = 894
1173 HIRE_DATE = 01/2/1993
1174 DEPT_NO = 670
1175 JOB_CODE = Dir
1176 JOB_GRADE = 2
1177 JOB_COUNTRY = USA
1178 SALARY = 111262.5
1179 FULL_NAME = Cook, Kevin
1180 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
1181 DEPT_KEY_PATH = 000;600;670
1182
1183 Row No = 36
1184 EMP_NO = 20
1185 FIRST_NAME = Chris
1186 LAST_NAME = Papadopoulos
1187 PHONE_EXT = 887
1188 HIRE_DATE = 01/1/1990
1189 DEPT_NO = 671
1190 JOB_CODE = Mngr
1191 JOB_GRADE = 3
1192 JOB_COUNTRY = USA
1193 SALARY = 89655
1194 FULL_NAME = Papadopoulos, Chris
1195 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
1196 DEPT_KEY_PATH = 000;600;670;671
1197
1198 Row No = 37
1199 EMP_NO = 24
1200 FIRST_NAME = Pete
1201 LAST_NAME = Fisher
1202 PHONE_EXT = 888
1203 HIRE_DATE = 12/9/1990
1204 DEPT_NO = 671
1205 JOB_CODE = Eng
1206 JOB_GRADE = 3
1207 JOB_COUNTRY = USA
1208 SALARY = 81810.19
1209 FULL_NAME = Fisher, Pete
1210 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
1211 DEPT_KEY_PATH = 000;600;670;671
1212
1213 Row No = 38
1214 EMP_NO = 113
1215 FIRST_NAME = Mary
1216 LAST_NAME = Page
1217 PHONE_EXT = 845
1218 HIRE_DATE = 12/4/1993
1219 DEPT_NO = 671
1220 JOB_CODE = Eng
1221 JOB_GRADE = 4
1222 JOB_COUNTRY = USA
1223 SALARY = 48000
1224 FULL_NAME = Page, Mary
1225 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
1226 DEPT_KEY_PATH = 000;600;670;671
1227
1228 Row No = 39
1229 EMP_NO = 94
1230 FIRST_NAME = Randy
1231 LAST_NAME = Williams
1232 PHONE_EXT = 892
1233 HIRE_DATE = 08/8/1992
1234 DEPT_NO = 672
1235 JOB_CODE = Mngr
1236 JOB_GRADE = 4
1237 JOB_COUNTRY = USA
1238 SALARY = 56295
1239 FULL_NAME = Williams, Randy
1240 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
1241 DEPT_KEY_PATH = 000;600;670;672
1242
1243 Row No = 40
1244 EMP_NO = 144
1245 FIRST_NAME = John
1246 LAST_NAME = Montgomery
1247 PHONE_EXT = 820
1248 HIRE_DATE = 30/3/1994
1249 DEPT_NO = 672
1250 JOB_CODE = Eng
1251 JOB_GRADE = 5
1252 JOB_COUNTRY = USA
1253 SALARY = 35000
1254 FULL_NAME = Montgomery, John
1255 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
1256 DEPT_KEY_PATH = 000;600;670;672
1257
1258 Row No = 41
1259 EMP_NO = 14
1260 FIRST_NAME = Stewart
1261 LAST_NAME = Hall
1262 PHONE_EXT = 227
1263 HIRE_DATE = 04/6/1990
1264 DEPT_NO = 900
1265 JOB_CODE = Finan
1266 JOB_GRADE = 3
1267 JOB_COUNTRY = USA
1268 SALARY = 69482.63
1269 FULL_NAME = Hall, Stewart
1270 DEPT_PATH = Corporate Headquarters / Finance
1271 DEPT_KEY_PATH = 000;900
1272
1273 Row No = 42
1274 EMP_NO = 46
1275 FIRST_NAME = Walter
1276 LAST_NAME = Steadman
1277 PHONE_EXT = 210
1278 HIRE_DATE = 09/8/1991
1279 DEPT_NO = 900
1280 JOB_CODE = CFO
1281 JOB_GRADE = 1
1282 JOB_COUNTRY = USA
1283 SALARY = 116100
1284 FULL_NAME = Steadman, Walter
1285 DEPT_PATH = Corporate Headquarters / Finance
1286 DEPT_KEY_PATH = 000;900
1287
1288 Rows printed = 42
1289
1290 Server Side Filter: Hire Date < 1/1/90
1291 Row No = 1
1292 EMP_NO = 8
1293 FIRST_NAME = Leslie
1294 LAST_NAME = Johnson
1295 PHONE_EXT = 410
1296 HIRE_DATE = 05/4/1989
1297 DEPT_NO = 180
1298 JOB_CODE = Mktg
1299 JOB_GRADE = 3
1300 JOB_COUNTRY = USA
1301 SALARY = 64635
1302 FULL_NAME = Johnson, Leslie
1303 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
1304 DEPT_KEY_PATH = 000;100;180
1305
1306 Row No = 2
1307 EMP_NO = 5
1308 FIRST_NAME = Kim
1309 LAST_NAME = Lambert
1310 PHONE_EXT = 22
1311 HIRE_DATE = 06/2/1989
1312 DEPT_NO = 130
1313 JOB_CODE = Eng
1314 JOB_GRADE = 2
1315 JOB_COUNTRY = USA
1316 SALARY = 102750
1317 FULL_NAME = Lambert, Kim
1318 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
1319 DEPT_KEY_PATH = 000;100;130
1320
1321 Row No = 3
1322 EMP_NO = 2
1323 FIRST_NAME = Robert
1324 LAST_NAME = Nelson
1325 PHONE_EXT = 250
1326 HIRE_DATE = 28/12/1988
1327 DEPT_NO = 600
1328 JOB_CODE = VP
1329 JOB_GRADE = 2
1330 JOB_COUNTRY = USA
1331 SALARY = 105900
1332 FULL_NAME = Nelson, Robert
1333 DEPT_PATH = Corporate Headquarters / Engineering
1334 DEPT_KEY_PATH = 000;600
1335
1336 Row No = 4
1337 EMP_NO = 4
1338 FIRST_NAME = Bruce
1339 LAST_NAME = Young
1340 PHONE_EXT = 233
1341 HIRE_DATE = 28/12/1988
1342 DEPT_NO = 621
1343 JOB_CODE = Eng
1344 JOB_GRADE = 2
1345 JOB_COUNTRY = USA
1346 SALARY = 97500
1347 FULL_NAME = Young, Bruce
1348 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
1349 DEPT_KEY_PATH = 000;600;620;621
1350
1351 Row No = 5
1352 EMP_NO = 9
1353 FIRST_NAME = Phil
1354 LAST_NAME = Forest
1355 PHONE_EXT = 229
1356 HIRE_DATE = 17/4/1989
1357 DEPT_NO = 622
1358 JOB_CODE = Mngr
1359 JOB_GRADE = 3
1360 JOB_COUNTRY = USA
1361 SALARY = 75060
1362 FULL_NAME = Forest, Phil
1363 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
1364 DEPT_KEY_PATH = 000;600;620;622
1365
1366 Rows printed = 5
1367
1368 Client side Filter: Hire Date > 1/1/94
1369 Row No = 1
1370 EMP_NO = 141
1371 FIRST_NAME = Pierre
1372 LAST_NAME = Osborne
1373 PHONE_EXT = NULL
1374 HIRE_DATE = 03/1/1994
1375 DEPT_NO = 121
1376 JOB_CODE = SRep
1377 JOB_GRADE = 4
1378 JOB_COUNTRY = Switzerland
1379 SALARY = 110000
1380 FULL_NAME = Osborne, Pierre
1381 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Switzerland
1382 DEPT_KEY_PATH = 000;100;120;121
1383
1384 Row No = 2
1385 EMP_NO = 145
1386 FIRST_NAME = Mark
1387 LAST_NAME = Guckenheimer
1388 PHONE_EXT = 221
1389 HIRE_DATE = 02/5/1994
1390 DEPT_NO = 622
1391 JOB_CODE = Eng
1392 JOB_GRADE = 5
1393 JOB_COUNTRY = USA
1394 SALARY = 32000
1395 FULL_NAME = Guckenheimer, Mark
1396 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
1397 DEPT_KEY_PATH = 000;600;620;622
1398
1399 Row No = 3
1400 EMP_NO = 144
1401 FIRST_NAME = John
1402 LAST_NAME = Montgomery
1403 PHONE_EXT = 820
1404 HIRE_DATE = 30/3/1994
1405 DEPT_NO = 672
1406 JOB_CODE = Eng
1407 JOB_GRADE = 5
1408 JOB_COUNTRY = USA
1409 SALARY = 35000
1410 FULL_NAME = Montgomery, John
1411 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
1412 DEPT_KEY_PATH = 000;600;670;672
1413
1414 Rows printed = 3
1415
1416 TIBQuery with open parameters - select only records with First Name = Claudia
1417 Row No = 1
1418 EMP_NO = 72
1419 FIRST_NAME = Claudia
1420 LAST_NAME = Sutherland
1421 PHONE_EXT = NULL
1422 HIRE_DATE = 20/4/1992
1423 DEPT_NO = 140
1424 JOB_CODE = SRep
1425 JOB_GRADE = 4
1426 JOB_COUNTRY = Canada
1427 SALARY = 100914
1428 FULL_NAME = Sutherland, Claudia
1429 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: Canada
1430 DEPT_KEY_PATH = 000;100;140
1431
1432 Rows printed = 1
1433
1434
1435
1436 ------------------------------------------------------
1437 Running Test 02: Database Event Handlers and Idle disconnect
1438 Before Connect
1439 Connected to localhost:employee
1440 DPB: Item Count = 3
1441 isc_dpb_user_name = SYSDBA
1442 isc_dpb_password = xxxxxxxx
1443 isc_dpb_lc_ctype = UTF8
1444
1445 Before Disconnect
1446 localhost:employee Disconnected after 17 ms
1447 Before Connect
1448 Connected to localhost:employee
1449 DPB: Item Count = 3
1450 isc_dpb_user_name = SYSDBA
1451 isc_dpb_password = xxxxxxxx
1452 isc_dpb_lc_ctype = UTF8
1453
1454 Before Disconnect
1455 localhost:employee Disconnected after 3979 ms
1456 Idle Timer Expired for Test_Database_02
1457 Database Closed
1458 Transaction Events
1459 Before Connect
1460 Connected to localhost:employee
1461 DPB: Item Count = 3
1462 isc_dpb_user_name = SYSDBA
1463 isc_dpb_password = xxxxxxxx
1464 isc_dpb_lc_ctype = UTF8
1465
1466 Requested TPB: Item Count = 3
1467 isc_tpb_concurrency
1468 isc_tpb_wait
1469 isc_tpb_read
1470
1471 Transaction Starts
1472 TPB: Item Count = 3
1473 isc_tpb_concurrency
1474 isc_tpb_wait
1475 isc_tpb_read
1476
1477 Transaction Ending
1478 Transaction Ended after 11 ms
1479 Transaction idle timer test
1480 Requested TPB: Item Count = 3
1481 isc_tpb_concurrency
1482 isc_tpb_wait
1483 isc_tpb_read
1484
1485 Transaction Starts
1486 TPB: Item Count = 3
1487 isc_tpb_concurrency
1488 isc_tpb_wait
1489 isc_tpb_read
1490
1491 Transaction Ending
1492 Transaction Ended after 2015 ms
1493 Idle Timer Expired for Test_Transaction_02
1494 Before Disconnect
1495 localhost:employee Disconnected after 2066 ms
1496 SQL Dialect Downgrade test
1497 Before Connect
1498 Connected to localhost:/tmp/ibx-testsuite/testsuite1.fdb
1499 DPB: Item Count = 4
1500 isc_dpb_user_name = SYSDBA
1501 isc_dpb_password = xxxxxxxx
1502 isc_dpb_lc_ctype = UTF8
1503 isc_dpb_set_db_sql_dialect = 1
1504
1505 localhost:/tmp/ibx-testsuite/testsuite1.fdb created
1506 Before Disconnect
1507 localhost:/tmp/ibx-testsuite/testsuite1.fdb Disconnected after 27 ms
1508 Before Connect
1509 Warning: SQL Dialect Downgrade of localhost:/tmp/ibx-testsuite/testsuite1.fdb
1510 Connected to localhost:/tmp/ibx-testsuite/testsuite1.fdb
1511 DPB: Item Count = 3
1512 isc_dpb_user_name = SYSDBA
1513 isc_dpb_password = xxxxxxxx
1514 isc_dpb_lc_ctype = UTF8
1515
1516 Before Disconnect
1517 localhost:/tmp/ibx-testsuite/testsuite1.fdb Disconnected after 22 ms
1518
1519
1520 ------------------------------------------------------
1521 Running Test 03: Database Information
1522 Authentication Method = Legacy_Auth
1523 Remote Protocol = TCPv4
1524 Attachment SQLDialect = 3
1525 Firebird/linux AMD64 (access method), version "LI-V2.5.9.27139 Firebird 2.5"
1526 Firebird/linux AMD64 (remote server), version "LI-V2.5.9.27139 Firebird 2.5/tcp (zeus)/P12"
1527 Firebird/linux AMD64 (remote interface), version "LI-V2.5.9.27139 Firebird 2.5/tcp (zeus)/P12"
1528 on disk structure version 11.2
1529 FB Version: Firebird/linux AMD64 (access method), version "LI-V2.5.9.27139 Firebird 2.5", Firebird/linux AMD64 (remote server), version "LI-V2.5.9.27139 Firebird 2.5/tcp (zeus)/P12", Firebird/linux AMD64 (remote interface), version "LI-V2.5.9.27139 Firebird 2.5/tcp (zeus)/P12", on disk structure version 11.2
1530 Firebird Library Pathname = /opt/firebird2.5.9/lib/libfbembed.so
1531 DB SQLDialect = 3
1532 Allocation = 272
1533 Base Level = 4
1534 DB File Name = /opt/firebird2.5.9/examples/empbuild/employee.fdb
1535 DB Site Name = zeus
1536 DB Implementation No = 7
1537 Database Created: 17/6/2019 19:37:08
1538 DB Implementation Class = 0
1539 Space is Reserved
1540 ODS Minor Version = 2
1541 ODS Major Version = 11
1542 Page Size = 4096
1543 Version = LI-V6.3.9.27139 Firebird 2.5
1544 Current Memory = 876840
1545 Forced Writes Enabled
1546 Max Memory = 902544
1547 Number of Buffers = 75
1548 Sweep Interval = 20000
1549 User Names: SYSDBA
1550 Fetches = 2088
1551 Marks = 6
1552 Reads = 89
1553 Writes = 6
1554 Transaction Count = 1
1555
1556 Read Idx Count
1557 RDB$FIELDS = 95
1558 RDB$RELATION_FIELDS = 173
1559 RDB$RELATIONS = 125
1560 RDB$TYPES = 4
1561 RDB$TRIGGERS = 36
1562 RDB$CHARACTER_SETS = 12
1563 RDB$COLLATIONS = 9
1564
1565 Read Seq Count
1566 RDB$PAGES = 88
1567 RDB$DATABASE = 1
1568 RDB$RELATIONS = 53
1569
1570 Database is Read/Write
1571 Hex Dump of Database Page 100:
1572 7 70 39 30 C 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 21 2 0 0 16 0 6F 1 0 0 27 0 50 2 0 0 0 0 7 49 4E 54 45 47 5F 31 A9 0 7 30 AA 0 7 31 AB 0 7 32 AC 0 7 33 AD 0 7 34 AE 0 7 35 AF 0 7 36 B0 0 7 37 B1 0 7 38 B2 0 7 39 A1 0 6 32 B3 0 7 30 B4 0 7 31 B5 0 7 32 B6 0 7 33 B7 0 7 34 B8 0 7 35 B9 0 7 36 BA 0 7 37 BB 0 7 38 BC 0 7 39 A2 0 6 33 BD 0 7 30 BE 0 7 31 BF 0 7 32 A0 1 7 33 A1 1 7 34 A2 1 7 35 A3 1 7 36 A4 1 7 37 A5 1 7 38 A6 1 7 39 A3 0 6 34 A7 1 7 30 A8 1 7 31 A9 1 7 32 AA 1 7 33 AB 1 7 34 AC 1 7 35 AF 7 7 36 B0 7 7 37 B1 7 7 38 B2 7 7 39 A4 0 6 35 B3 7 7 30 B4 7 7 31 B5 7 7 32 B6 7 7 33 B7 7 7 34 B8 7 7 35 B9 7 7 36 BA 7 7 37 BB 7 7 38 BC 7 7 39 A5 0 6 36 BD 7 7 30 BE 7 7 31 BF 7 7 32 A0 8 7 33 A1 8 7 34 A2 8 7 35 A3 8 7 36 A4 8 7 37 A5 8 7 38 A6 8 7 39 A6 0 6 37 A7 8 7 30 A8 8 7 31 A9 8 7 32 AA 8 7 33 AB 8 7 34 AC 8 7 35 AD 8 7 36 AE 8 7 37 AF 8 7 38 B0 8 7 39 A7 0 6 38 B1 8 7 30 A8 0 6 39 20 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
1573
1574
1575 ------------------------------------------------------
1576 Running Test 04: Handling of data types up to Firebird 3
1577 Creating Database from resources/Test04.sql
1578
1579 Create Table IBXTest (
1580 TableKey Integer not null,
1581 F1 Smallint,
1582 F2 Float,
1583 F3 Double Precision,
1584 F4 Decimal(9,3),
1585 F5 Decimal(18,4),
1586 F6 Date,
1587 F7 Timestamp,
1588 F8 Char (2),
1589 F9 VarChar(256),
1590 F10 Blob,
1591 F11 BigInt,
1592 "f12" Integer,
1593 F13 Time,
1594 F14 Blob sub_type text,
1595 MyArray Integer [0:16],
1596 "GRANTS" VarChar(20),
1597 "My Field" VarChar(32),
1598 "MY Field" VarChar(32),
1599 Primary Key(TableKey)
1600 );
1601 Transaction Exec Query "Create Table IBXTest (
1602 TableKey Integer not null,
1603 F1 Smallint,
1604 F2 Float,
1605 F3 Double Precision,
1606 F4 Decimal(9,3),
1607 F5 Decimal(18,4),
1608 F6 Date,
1609 F7 Timestamp,
1610 F8 Char (2),
1611 F9 VarChar(256),
1612 F10 Blob,
1613 F11 BigInt,
1614 "f12" Integer,
1615 F13 Time,
1616 F14 Blob sub_type text,
1617 MyArray Integer [0:16],
1618 "GRANTS" VarChar(20),
1619 "My Field" VarChar(32),
1620 "MY Field" VarChar(32),
1621 Primary Key(TableKey)
1622 )
1623 "
1624
1625 Create Generator IBXGen;
1626 Transaction Exec Query "Create Generator IBXGen
1627 "
1628 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
1629 "
1630 Add a record
1631 Transaction Exec Query "Select Gen_ID(IBXGEN,1) From RDB$Database
1632 "
1633 Transaction Insert
1634 Transaction Exec Query "Insert Into IBXTEST(TABLEKEY, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, "f12", F13, F14, MyArray, GRANTS) Values(:TABLEKEY, :F1, :F2, :F3, :F4, :F5, :F6, :F7,:F8, :F9, :F10, :F11, :F12, :F13, :F14, :MyArray, :GRANTS)
1635 "
1636 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A Where A.TABLEKEY = :TABLEKEY
1637 "
1638 Transaction Post
1639 Add and edit a record
1640 Transaction Exec Query "Select Gen_ID(IBXGEN,1) From RDB$Database
1641 "
1642 Transaction Insert
1643 Transaction Exec Query "Insert Into IBXTEST(TABLEKEY, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, "f12", F13, F14, MyArray, GRANTS) Values(:TABLEKEY, :F1, :F2, :F3, :F4, :F5, :F6, :F7,:F8, :F9, :F10, :F11, :F12, :F13, :F14, :MyArray, :GRANTS)
1644 "
1645 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A Where A.TABLEKEY = :TABLEKEY
1646 "
1647 Transaction Post
1648 Transaction Edit
1649 Transaction Exec Query "Update IBXTEST A Set A.F1 = :F1, A.F2 = :F2, A.F3 = :F3, A.F4 = :F4, A.F5 = :F5, A.F6 = :F6, A.F7 = :F7, A.F8 = :F8, A.F9 = :F9, A.F10 = :F10, A.F11 = :F11, A."f12" = :F12, A.F13 = :F13, A.F14 = :F14, A.MyArray = :MyArray, A."My Field" = :MYFIELD1, A."MY Field" = :MYFIELD2, A.GRANTS = :GRANTS Where A.TABLEKEY = :OLD_TABLEKEY
1650 "
1651 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A Where A.TABLEKEY = :TABLEKEY
1652 "
1653 Transaction Post
1654 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
1655 "
1656 Row No = 1
1657 TABLEKEY = 1
1658 F1 = 2
1659 F2 = 0.314000010490
1660 F3 = 0.314123456780
1661 F4 = 101.314
1662 F5 = 101.99
1663 F6 = 25/12/2007
1664 F7 = 25/12/2007 12:30:29.130
1665 F8 = XX (Charset = UTF8 Codepage = 65001)
1666 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1667 F10 = (blob), Length = 543916
1668 F11 = 9223372036854775807
1669 F12 = 65566
1670 F13 = 12:30:45.000
1671 F14 (Charset = UTF8 Codepage = 65001)
1672
1673 If music be the food of love, play on;
1674 Give me excess of it, that, surfeiting,
1675 The appetite may sicken, and so die.
1676 That strain again! it had a dying fall:
1677 O, it came o'er my ear like the sweet south,
1678 That breathes upon a bank of violets,
1679 Stealing and giving odour! Enough; no more:
1680 'Tis not so sweet now as it was before.
1681 O spirit of love! how quick and fresh art thou,
1682 That, notwithstanding thy capacity 10
1683 Receiveth as the sea, nought enters there,
1684 Of what validity and pitch soe'er,
1685 But falls into abatement and low price,
1686 Even in a minute: so full of shapes is fancy
1687 That it alone is high fantastical.
1688
1689 Si la musique est la nourriture de l'amour, continuez à jouer;
1690 Donnez-m'en un excès, que, surexcité,
1691 L'appétit peut devenir malade et ainsi mourir.
1692 Cette souche encore! il a eu une chute mourante:
1693 Oh, ça m'est venu à l'oreille comme le doux sud,
1694 Qui souffle sur une banque de violettes,
1695 Voler et donner de l'odeur! Assez; Pas plus:
1696 «Ce n'est pas si doux maintenant qu'avant.
1697 O esprit d'amour! comme tu es rapide et fraîche,
1698 Que, malgré ta capacité 10
1699 Reçoit comme la mer, rien n'y entre,
1700 De quelle validité et de quelle hauteur soe'er,
1701 Mais tombe dans l'abattement et le prix bas,
1702 Même en une minute: si plein de formes est fantaisie
1703 Que cela seul est fantastique.
1704
1705
1706
1707 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1708
1709 GRANTS = NULL
1710 MYFIELD1 = NULL
1711 MYFIELD2 = NULL
1712
1713 Row No = 2
1714 TABLEKEY = 2
1715 F1 = 2
1716 F2 = 0.314000010490
1717 F3 = 0.314123456780
1718 F4 = 101.314
1719 F5 = 101.99
1720 F6 = 25/12/2007
1721 F7 = 25/12/2007 12:30:29.130
1722 F8 = XX (Charset = UTF8 Codepage = 65001)
1723 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1724 F10 = NULL
1725 F11 = 9223372036854775807
1726 F12 = 65566
1727 F13 = 12:30:45.000
1728 F14 = NULL
1729 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1730
1731 GRANTS = NULL
1732 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
1733 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
1734
1735 Rows printed = 2
1736
1737 Delete a record
1738 Transaction Exec Query "Delete From IBXTEST A Where A.TABLEKEY = :OLD_TABLEKEY
1739 "
1740 Transaction Delete
1741 Row No = 1
1742 TABLEKEY = 2
1743 F1 = 2
1744 F2 = 0.314000010490
1745 F3 = 0.314123456780
1746 F4 = 101.314
1747 F5 = 101.99
1748 F6 = 25/12/2007
1749 F7 = 25/12/2007 12:30:29.130
1750 F8 = XX (Charset = UTF8 Codepage = 65001)
1751 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1752 F10 = NULL
1753 F11 = 9223372036854775807
1754 F12 = 65566
1755 F13 = 12:30:45.000
1756 F14 = NULL
1757 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1758
1759 GRANTS = NULL
1760 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
1761 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
1762
1763 Rows printed = 1
1764
1765 Rollback Retaining
1766 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
1767 "
1768 Row No = 1
1769 TABLEKEY = 1
1770 F1 = 2
1771 F2 = 0.314000010490
1772 F3 = 0.314123456780
1773 F4 = 101.314
1774 F5 = 101.99
1775 F6 = 25/12/2007
1776 F7 = 25/12/2007 12:30:29.130
1777 F8 = XX (Charset = UTF8 Codepage = 65001)
1778 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1779 F10 = (blob), Length = 543916
1780 F11 = 9223372036854775807
1781 F12 = 65566
1782 F13 = 12:30:45.000
1783 F14 (Charset = UTF8 Codepage = 65001)
1784
1785 If music be the food of love, play on;
1786 Give me excess of it, that, surfeiting,
1787 The appetite may sicken, and so die.
1788 That strain again! it had a dying fall:
1789 O, it came o'er my ear like the sweet south,
1790 That breathes upon a bank of violets,
1791 Stealing and giving odour! Enough; no more:
1792 'Tis not so sweet now as it was before.
1793 O spirit of love! how quick and fresh art thou,
1794 That, notwithstanding thy capacity 10
1795 Receiveth as the sea, nought enters there,
1796 Of what validity and pitch soe'er,
1797 But falls into abatement and low price,
1798 Even in a minute: so full of shapes is fancy
1799 That it alone is high fantastical.
1800
1801 Si la musique est la nourriture de l'amour, continuez à jouer;
1802 Donnez-m'en un excès, que, surexcité,
1803 L'appétit peut devenir malade et ainsi mourir.
1804 Cette souche encore! il a eu une chute mourante:
1805 Oh, ça m'est venu à l'oreille comme le doux sud,
1806 Qui souffle sur une banque de violettes,
1807 Voler et donner de l'odeur! Assez; Pas plus:
1808 «Ce n'est pas si doux maintenant qu'avant.
1809 O esprit d'amour! comme tu es rapide et fraîche,
1810 Que, malgré ta capacité 10
1811 Reçoit comme la mer, rien n'y entre,
1812 De quelle validité et de quelle hauteur soe'er,
1813 Mais tombe dans l'abattement et le prix bas,
1814 Même en une minute: si plein de formes est fantaisie
1815 Que cela seul est fantastique.
1816
1817
1818
1819 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1820
1821 GRANTS = NULL
1822 MYFIELD1 = NULL
1823 MYFIELD2 = NULL
1824
1825 Row No = 2
1826 TABLEKEY = 2
1827 F1 = 2
1828 F2 = 0.314000010490
1829 F3 = 0.314123456780
1830 F4 = 101.314
1831 F5 = 101.99
1832 F6 = 25/12/2007
1833 F7 = 25/12/2007 12:30:29.130
1834 F8 = XX (Charset = UTF8 Codepage = 65001)
1835 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1836 F10 = NULL
1837 F11 = 9223372036854775807
1838 F12 = 65566
1839 F13 = 12:30:45.000
1840 F14 = NULL
1841 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1842
1843 GRANTS = NULL
1844 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
1845 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
1846
1847 Rows printed = 2
1848
1849 Delete a record
1850 Transaction Exec Query "Delete From IBXTEST A Where A.TABLEKEY = :OLD_TABLEKEY
1851 "
1852 Transaction Delete
1853 Row No = 1
1854 TABLEKEY = 2
1855 F1 = 2
1856 F2 = 0.314000010490
1857 F3 = 0.314123456780
1858 F4 = 101.314
1859 F5 = 101.99
1860 F6 = 25/12/2007
1861 F7 = 25/12/2007 12:30:29.130
1862 F8 = XX (Charset = UTF8 Codepage = 65001)
1863 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1864 F10 = NULL
1865 F11 = 9223372036854775807
1866 F12 = 65566
1867 F13 = 12:30:45.000
1868 F14 = NULL
1869 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1870
1871 GRANTS = NULL
1872 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
1873 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
1874
1875 Rows printed = 1
1876
1877 Rollback
1878 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
1879 "
1880 Row No = 1
1881 TABLEKEY = 1
1882 F1 = 2
1883 F2 = 0.314000010490
1884 F3 = 0.314123456780
1885 F4 = 101.314
1886 F5 = 101.99
1887 F6 = 25/12/2007
1888 F7 = 25/12/2007 12:30:29.130
1889 F8 = XX (Charset = UTF8 Codepage = 65001)
1890 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1891 F10 = (blob), Length = 543916
1892 F11 = 9223372036854775807
1893 F12 = 65566
1894 F13 = 12:30:45.000
1895 F14 (Charset = UTF8 Codepage = 65001)
1896
1897 If music be the food of love, play on;
1898 Give me excess of it, that, surfeiting,
1899 The appetite may sicken, and so die.
1900 That strain again! it had a dying fall:
1901 O, it came o'er my ear like the sweet south,
1902 That breathes upon a bank of violets,
1903 Stealing and giving odour! Enough; no more:
1904 'Tis not so sweet now as it was before.
1905 O spirit of love! how quick and fresh art thou,
1906 That, notwithstanding thy capacity 10
1907 Receiveth as the sea, nought enters there,
1908 Of what validity and pitch soe'er,
1909 But falls into abatement and low price,
1910 Even in a minute: so full of shapes is fancy
1911 That it alone is high fantastical.
1912
1913 Si la musique est la nourriture de l'amour, continuez à jouer;
1914 Donnez-m'en un excès, que, surexcité,
1915 L'appétit peut devenir malade et ainsi mourir.
1916 Cette souche encore! il a eu une chute mourante:
1917 Oh, ça m'est venu à l'oreille comme le doux sud,
1918 Qui souffle sur une banque de violettes,
1919 Voler et donner de l'odeur! Assez; Pas plus:
1920 «Ce n'est pas si doux maintenant qu'avant.
1921 O esprit d'amour! comme tu es rapide et fraîche,
1922 Que, malgré ta capacité 10
1923 Reçoit comme la mer, rien n'y entre,
1924 De quelle validité et de quelle hauteur soe'er,
1925 Mais tombe dans l'abattement et le prix bas,
1926 Même en une minute: si plein de formes est fantaisie
1927 Que cela seul est fantastique.
1928
1929
1930
1931 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1932
1933 GRANTS = NULL
1934 MYFIELD1 = NULL
1935 MYFIELD2 = NULL
1936
1937 Row No = 2
1938 TABLEKEY = 2
1939 F1 = 2
1940 F2 = 0.314000010490
1941 F3 = 0.314123456780
1942 F4 = 101.314
1943 F5 = 101.99
1944 F6 = 25/12/2007
1945 F7 = 25/12/2007 12:30:29.130
1946 F8 = XX (Charset = UTF8 Codepage = 65001)
1947 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1948 F10 = NULL
1949 F11 = 9223372036854775807
1950 F12 = 65566
1951 F13 = 12:30:45.000
1952 F14 = NULL
1953 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
1954
1955 GRANTS = NULL
1956 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
1957 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
1958
1959 Rows printed = 2
1960
1961 Commit Retaining
1962 Transaction Exec Query "Select Gen_ID(IBXGEN,1) From RDB$Database
1963 "
1964 Transaction Insert
1965 Transaction Exec Query "Insert Into IBXTEST(TABLEKEY, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, "f12", F13, F14, MyArray, GRANTS) Values(:TABLEKEY, :F1, :F2, :F3, :F4, :F5, :F6, :F7,:F8, :F9, :F10, :F11, :F12, :F13, :F14, :MyArray, :GRANTS)
1966 "
1967 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A Where A.TABLEKEY = :TABLEKEY
1968 "
1969 Transaction Post
1970 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
1971 "
1972 Row No = 1
1973 TABLEKEY = 1
1974 F1 = 2
1975 F2 = 0.314000010490
1976 F3 = 0.314123456780
1977 F4 = 101.314
1978 F5 = 101.99
1979 F6 = 25/12/2007
1980 F7 = 25/12/2007 12:30:29.130
1981 F8 = XX (Charset = UTF8 Codepage = 65001)
1982 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
1983 F10 = (blob), Length = 543916
1984 F11 = 9223372036854775807
1985 F12 = 65566
1986 F13 = 12:30:45.000
1987 F14 (Charset = UTF8 Codepage = 65001)
1988
1989 If music be the food of love, play on;
1990 Give me excess of it, that, surfeiting,
1991 The appetite may sicken, and so die.
1992 That strain again! it had a dying fall:
1993 O, it came o'er my ear like the sweet south,
1994 That breathes upon a bank of violets,
1995 Stealing and giving odour! Enough; no more:
1996 'Tis not so sweet now as it was before.
1997 O spirit of love! how quick and fresh art thou,
1998 That, notwithstanding thy capacity 10
1999 Receiveth as the sea, nought enters there,
2000 Of what validity and pitch soe'er,
2001 But falls into abatement and low price,
2002 Even in a minute: so full of shapes is fancy
2003 That it alone is high fantastical.
2004
2005 Si la musique est la nourriture de l'amour, continuez à jouer;
2006 Donnez-m'en un excès, que, surexcité,
2007 L'appétit peut devenir malade et ainsi mourir.
2008 Cette souche encore! il a eu une chute mourante:
2009 Oh, ça m'est venu à l'oreille comme le doux sud,
2010 Qui souffle sur une banque de violettes,
2011 Voler et donner de l'odeur! Assez; Pas plus:
2012 «Ce n'est pas si doux maintenant qu'avant.
2013 O esprit d'amour! comme tu es rapide et fraîche,
2014 Que, malgré ta capacité 10
2015 Reçoit comme la mer, rien n'y entre,
2016 De quelle validité et de quelle hauteur soe'er,
2017 Mais tombe dans l'abattement et le prix bas,
2018 Même en une minute: si plein de formes est fantaisie
2019 Que cela seul est fantastique.
2020
2021
2022
2023 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2024
2025 GRANTS = NULL
2026 MYFIELD1 = NULL
2027 MYFIELD2 = NULL
2028
2029 Row No = 2
2030 TABLEKEY = 2
2031 F1 = 2
2032 F2 = 0.314000010490
2033 F3 = 0.314123456780
2034 F4 = 101.314
2035 F5 = 101.99
2036 F6 = 25/12/2007
2037 F7 = 25/12/2007 12:30:29.130
2038 F8 = XX (Charset = UTF8 Codepage = 65001)
2039 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2040 F10 = NULL
2041 F11 = 9223372036854775807
2042 F12 = 65566
2043 F13 = 12:30:45.000
2044 F14 = NULL
2045 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2046
2047 GRANTS = NULL
2048 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
2049 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
2050
2051 Row No = 3
2052 TABLEKEY = 3
2053 F1 = 2
2054 F2 = 0.314000010490
2055 F3 = 0.314123456780
2056 F4 = 101.314
2057 F5 = 101.99
2058 F6 = 25/12/2007
2059 F7 = 25/12/2007 12:30:29.130
2060 F8 = XX (Charset = UTF8 Codepage = 65001)
2061 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2062 F10 = (blob), Length = 543916
2063 F11 = 9223372036854775807
2064 F12 = 65566
2065 F13 = 12:30:45.000
2066 F14 (Charset = UTF8 Codepage = 65001)
2067
2068 If music be the food of love, play on;
2069 Give me excess of it, that, surfeiting,
2070 The appetite may sicken, and so die.
2071 That strain again! it had a dying fall:
2072 O, it came o'er my ear like the sweet south,
2073 That breathes upon a bank of violets,
2074 Stealing and giving odour! Enough; no more:
2075 'Tis not so sweet now as it was before.
2076 O spirit of love! how quick and fresh art thou,
2077 That, notwithstanding thy capacity 10
2078 Receiveth as the sea, nought enters there,
2079 Of what validity and pitch soe'er,
2080 But falls into abatement and low price,
2081 Even in a minute: so full of shapes is fancy
2082 That it alone is high fantastical.
2083
2084 Si la musique est la nourriture de l'amour, continuez à jouer;
2085 Donnez-m'en un excès, que, surexcité,
2086 L'appétit peut devenir malade et ainsi mourir.
2087 Cette souche encore! il a eu une chute mourante:
2088 Oh, ça m'est venu à l'oreille comme le doux sud,
2089 Qui souffle sur une banque de violettes,
2090 Voler et donner de l'odeur! Assez; Pas plus:
2091 «Ce n'est pas si doux maintenant qu'avant.
2092 O esprit d'amour! comme tu es rapide et fraîche,
2093 Que, malgré ta capacité 10
2094 Reçoit comme la mer, rien n'y entre,
2095 De quelle validité et de quelle hauteur soe'er,
2096 Mais tombe dans l'abattement et le prix bas,
2097 Même en une minute: si plein de formes est fantaisie
2098 Que cela seul est fantastique.
2099
2100
2101
2102 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2103
2104 GRANTS = NULL
2105 MYFIELD1 = NULL
2106 MYFIELD2 = NULL
2107
2108 Rows printed = 3
2109
2110 Commit
2111 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
2112 "
2113 Row No = 1
2114 TABLEKEY = 1
2115 F1 = 2
2116 F2 = 0.314000010490
2117 F3 = 0.314123456780
2118 F4 = 101.314
2119 F5 = 101.99
2120 F6 = 25/12/2007
2121 F7 = 25/12/2007 12:30:29.130
2122 F8 = XX (Charset = UTF8 Codepage = 65001)
2123 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2124 F10 = (blob), Length = 543916
2125 F11 = 9223372036854775807
2126 F12 = 65566
2127 F13 = 12:30:45.000
2128 F14 (Charset = UTF8 Codepage = 65001)
2129
2130 If music be the food of love, play on;
2131 Give me excess of it, that, surfeiting,
2132 The appetite may sicken, and so die.
2133 That strain again! it had a dying fall:
2134 O, it came o'er my ear like the sweet south,
2135 That breathes upon a bank of violets,
2136 Stealing and giving odour! Enough; no more:
2137 'Tis not so sweet now as it was before.
2138 O spirit of love! how quick and fresh art thou,
2139 That, notwithstanding thy capacity 10
2140 Receiveth as the sea, nought enters there,
2141 Of what validity and pitch soe'er,
2142 But falls into abatement and low price,
2143 Even in a minute: so full of shapes is fancy
2144 That it alone is high fantastical.
2145
2146 Si la musique est la nourriture de l'amour, continuez à jouer;
2147 Donnez-m'en un excès, que, surexcité,
2148 L'appétit peut devenir malade et ainsi mourir.
2149 Cette souche encore! il a eu une chute mourante:
2150 Oh, ça m'est venu à l'oreille comme le doux sud,
2151 Qui souffle sur une banque de violettes,
2152 Voler et donner de l'odeur! Assez; Pas plus:
2153 «Ce n'est pas si doux maintenant qu'avant.
2154 O esprit d'amour! comme tu es rapide et fraîche,
2155 Que, malgré ta capacité 10
2156 Reçoit comme la mer, rien n'y entre,
2157 De quelle validité et de quelle hauteur soe'er,
2158 Mais tombe dans l'abattement et le prix bas,
2159 Même en une minute: si plein de formes est fantaisie
2160 Que cela seul est fantastique.
2161
2162
2163
2164 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2165
2166 GRANTS = NULL
2167 MYFIELD1 = NULL
2168 MYFIELD2 = NULL
2169
2170 Row No = 2
2171 TABLEKEY = 2
2172 F1 = 2
2173 F2 = 0.314000010490
2174 F3 = 0.314123456780
2175 F4 = 101.314
2176 F5 = 101.99
2177 F6 = 25/12/2007
2178 F7 = 25/12/2007 12:30:29.130
2179 F8 = XX (Charset = UTF8 Codepage = 65001)
2180 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2181 F10 = NULL
2182 F11 = 9223372036854775807
2183 F12 = 65566
2184 F13 = 12:30:45.000
2185 F14 = NULL
2186 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2187
2188 GRANTS = NULL
2189 MYFIELD1 = My Field (Charset = UTF8 Codepage = 65001)
2190 MYFIELD2 = MY Field (Charset = UTF8 Codepage = 65001)
2191
2192 Row No = 3
2193 TABLEKEY = 3
2194 F1 = 2
2195 F2 = 0.314000010490
2196 F3 = 0.314123456780
2197 F4 = 101.314
2198 F5 = 101.99
2199 F6 = 25/12/2007
2200 F7 = 25/12/2007 12:30:29.130
2201 F8 = XX (Charset = UTF8 Codepage = 65001)
2202 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2203 F10 = (blob), Length = 543916
2204 F11 = 9223372036854775807
2205 F12 = 65566
2206 F13 = 12:30:45.000
2207 F14 (Charset = UTF8 Codepage = 65001)
2208
2209 If music be the food of love, play on;
2210 Give me excess of it, that, surfeiting,
2211 The appetite may sicken, and so die.
2212 That strain again! it had a dying fall:
2213 O, it came o'er my ear like the sweet south,
2214 That breathes upon a bank of violets,
2215 Stealing and giving odour! Enough; no more:
2216 'Tis not so sweet now as it was before.
2217 O spirit of love! how quick and fresh art thou,
2218 That, notwithstanding thy capacity 10
2219 Receiveth as the sea, nought enters there,
2220 Of what validity and pitch soe'er,
2221 But falls into abatement and low price,
2222 Even in a minute: so full of shapes is fancy
2223 That it alone is high fantastical.
2224
2225 Si la musique est la nourriture de l'amour, continuez à jouer;
2226 Donnez-m'en un excès, que, surexcité,
2227 L'appétit peut devenir malade et ainsi mourir.
2228 Cette souche encore! il a eu une chute mourante:
2229 Oh, ça m'est venu à l'oreille comme le doux sud,
2230 Qui souffle sur une banque de violettes,
2231 Voler et donner de l'odeur! Assez; Pas plus:
2232 «Ce n'est pas si doux maintenant qu'avant.
2233 O esprit d'amour! comme tu es rapide et fraîche,
2234 Que, malgré ta capacité 10
2235 Reçoit comme la mer, rien n'y entre,
2236 De quelle validité et de quelle hauteur soe'er,
2237 Mais tombe dans l'abattement et le prix bas,
2238 Même en une minute: si plein de formes est fantaisie
2239 Que cela seul est fantastique.
2240
2241
2242
2243 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2244
2245 GRANTS = NULL
2246 MYFIELD1 = NULL
2247 MYFIELD2 = NULL
2248
2249 Rows printed = 3
2250
2251 Creating Database from SQL
2252 Creating Database from resources/Test04.sql
2253
2254 Create Table IBXTest (
2255 TableKey Integer not null,
2256 F1 Smallint,
2257 F2 Float,
2258 F3 Double Precision,
2259 F4 Decimal(9,3),
2260 F5 Decimal(18,4),
2261 F6 Date,
2262 F7 Timestamp,
2263 F8 Char (2),
2264 F9 VarChar(256),
2265 F10 Blob,
2266 F11 BigInt,
2267 "f12" Integer,
2268 F13 Time,
2269 F14 Blob sub_type text,
2270 MyArray Integer [0:16],
2271 "GRANTS" VarChar(20),
2272 "My Field" VarChar(32),
2273 "MY Field" VarChar(32),
2274 Primary Key(TableKey)
2275 );
2276 Transaction Exec Query "Create Table IBXTest (
2277 TableKey Integer not null,
2278 F1 Smallint,
2279 F2 Float,
2280 F3 Double Precision,
2281 F4 Decimal(9,3),
2282 F5 Decimal(18,4),
2283 F6 Date,
2284 F7 Timestamp,
2285 F8 Char (2),
2286 F9 VarChar(256),
2287 F10 Blob,
2288 F11 BigInt,
2289 "f12" Integer,
2290 F13 Time,
2291 F14 Blob sub_type text,
2292 MyArray Integer [0:16],
2293 "GRANTS" VarChar(20),
2294 "My Field" VarChar(32),
2295 "MY Field" VarChar(32),
2296 Primary Key(TableKey)
2297 )
2298 "
2299
2300 Create Generator IBXGen;
2301 Transaction Exec Query "Create Generator IBXGen
2302 "
2303 Database Name = localhost:/tmp/ibx-testsuite/testsuite1.fdb
2304 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A
2305 "
2306 Add a record
2307 Transaction Exec Query "Select Gen_ID(IBXGEN,1) From RDB$Database
2308 "
2309 Transaction Insert
2310 Transaction Exec Query "Insert Into IBXTEST(TABLEKEY, F1, F2, F3, F4, F5, F6, F7, F8, F9, F10, F11, "f12", F13, F14, MyArray, GRANTS) Values(:TABLEKEY, :F1, :F2, :F3, :F4, :F5, :F6, :F7,:F8, :F9, :F10, :F11, :F12, :F13, :F14, :MyArray, :GRANTS)
2311 "
2312 Transaction Exec Query "Select A.TABLEKEY, A.F1, A.F2, A.F3, A.F4, A.F5, A.F6, A.F7, A.F8, A.F9, A.F10, A.F11, A."f12", A.F13, A.F14, A.MyArray, A.GRANTS, A."My Field" as MYFIELD1, A."MY Field" as MYFIELD2 From IBXTEST A Where A.TABLEKEY = :TABLEKEY
2313 "
2314 Transaction Post
2315 Row No = 1
2316 TABLEKEY = 1
2317 F1 = 2
2318 F2 = 0.314000010490
2319 F3 = 0.314123456780
2320 F4 = 101.314
2321 F5 = 101.99
2322 F6 = 25/12/2007
2323 F7 = 25/12/2007 12:30:29.130
2324 F8 = XX (Charset = UTF8 Codepage = 65001)
2325 F9 = The Quick Brown Fox jumps over the lazy dog (Charset = UTF8 Codepage = 65001)
2326 F10 = (blob), Length = 543916
2327 F11 = 9223372036854775807
2328 F12 = 65566
2329 F13 = 12:30:45.000
2330 F14 (Charset = UTF8 Codepage = 65001)
2331
2332 If music be the food of love, play on;
2333 Give me excess of it, that, surfeiting,
2334 The appetite may sicken, and so die.
2335 That strain again! it had a dying fall:
2336 O, it came o'er my ear like the sweet south,
2337 That breathes upon a bank of violets,
2338 Stealing and giving odour! Enough; no more:
2339 'Tis not so sweet now as it was before.
2340 O spirit of love! how quick and fresh art thou,
2341 That, notwithstanding thy capacity 10
2342 Receiveth as the sea, nought enters there,
2343 Of what validity and pitch soe'er,
2344 But falls into abatement and low price,
2345 Even in a minute: so full of shapes is fancy
2346 That it alone is high fantastical.
2347
2348 Si la musique est la nourriture de l'amour, continuez à jouer;
2349 Donnez-m'en un excès, que, surexcité,
2350 L'appétit peut devenir malade et ainsi mourir.
2351 Cette souche encore! il a eu une chute mourante:
2352 Oh, ça m'est venu à l'oreille comme le doux sud,
2353 Qui souffle sur une banque de violettes,
2354 Voler et donner de l'odeur! Assez; Pas plus:
2355 «Ce n'est pas si doux maintenant qu'avant.
2356 O esprit d'amour! comme tu es rapide et fraîche,
2357 Que, malgré ta capacité 10
2358 Reçoit comme la mer, rien n'y entre,
2359 De quelle validité et de quelle hauteur soe'er,
2360 Mais tombe dans l'abattement et le prix bas,
2361 Même en une minute: si plein de formes est fantaisie
2362 Que cela seul est fantastique.
2363
2364
2365
2366 Array: (0: 100) (1: 99) (2: 98) (3: 97) (4: 96) (5: 95) (6: 94) (7: 93) (8: 92) (9: 91) (10: 90) (11: 89) (12: 88) (13: 87) (14: 86) (15: 85) (16: 84)
2367
2368 GRANTS = NULL
2369 MYFIELD1 = NULL
2370 MYFIELD2 = NULL
2371
2372 Rows printed = 1
2373
2374
2375
2376 ------------------------------------------------------
2377 Skipping Test 05: Firebird 4 Data Types
2378 Skipping 05
2379 ------------------------------------------------------
2380 Running Test 06: Multi-Database Transaction
2381 Creating Database from resources/Test06.sql
2382
2383 Create Table IBXTest (
2384 TableKey Integer not null,
2385 F1 Smallint,
2386 F2 Float,
2387 F3 Double Precision,
2388 F4 Decimal(9,3),
2389 F5 Decimal(18,4),
2390 F6 Date,
2391 F7 Timestamp,
2392 F8 Char (2),
2393 F9 VarChar(256),
2394 F10 Blob,
2395 F11 BigInt,
2396 "f12" Integer,
2397 F13 Time,
2398 "GRANTS" VarChar(20),
2399 "My Field" VarChar(32),
2400 "MY Field" VarChar(32),
2401 Primary Key(TableKey)
2402 );
2403
2404 Create Generator IBXGen;
2405 Creating Database from resources/Test06.sql
2406
2407 Create Table IBXTest (
2408 TableKey Integer not null,
2409 F1 Smallint,
2410 F2 Float,
2411 F3 Double Precision,
2412 F4 Decimal(9,3),
2413 F5 Decimal(18,4),
2414 F6 Date,
2415 F7 Timestamp,
2416 F8 Char (2),
2417 F9 VarChar(256),
2418 F10 Blob,
2419 F11 BigInt,
2420 "f12" Integer,
2421 F13 Time,
2422 "GRANTS" VarChar(20),
2423 "My Field" VarChar(32),
2424 "MY Field" VarChar(32),
2425 Primary Key(TableKey)
2426 );
2427
2428 Create Generator IBXGen;
2429 Add Row to First Database
2430 TABLEKEY = 1
2431 Add Row to Second Database
2432 TABLEKEY = 1
2433 Query First Database
2434 TABLEKEY = 1
2435 F1 = 1
2436
2437 Query Second Database
2438 TABLEKEY = 1
2439 F1 = 2
2440
2441
2442
2443 ------------------------------------------------------
2444 Running Test 07: Open and read from Employee Database using IBSQL
2445 Metadata
2446 SQLType =SQL_SHORT
2447 sub type = 0
2448 Table = EMPLOYEE
2449 Owner = SYSDBA
2450 Column Name = EMP_NO
2451 Alias Name = EMP_NO
2452 Field Name = EMP_NO
2453 Scale = 0
2454 Charset id = 0
2455 Not Null
2456 Size = 2
2457
2458 SQLType =SQL_VARYING
2459 sub type = 0
2460 Table = EMPLOYEE
2461 Owner = SYSDBA
2462 Column Name = FIRST_NAME
2463 Alias Name = FIRST_NAME
2464 Field Name = FIRST_NAME
2465 Scale = 0
2466 Charset id = 0
2467 Not Null
2468 Size = 15
2469
2470 SQLType =SQL_VARYING
2471 sub type = 0
2472 Table = EMPLOYEE
2473 Owner = SYSDBA
2474 Column Name = LAST_NAME
2475 Alias Name = LAST_NAME
2476 Field Name = LAST_NAME
2477 Scale = 0
2478 Charset id = 0
2479 Not Null
2480 Size = 20
2481
2482 SQLType =SQL_VARYING
2483 sub type = 0
2484 Table = EMPLOYEE
2485 Owner = SYSDBA
2486 Column Name = PHONE_EXT
2487 Alias Name = PHONE_EXT
2488 Field Name = PHONE_EXT
2489 Scale = 0
2490 Charset id = 0
2491 Nullable
2492 Size = 4
2493
2494 SQLType =SQL_TIMESTAMP
2495 sub type = 0
2496 Table = EMPLOYEE
2497 Owner = SYSDBA
2498 Column Name = HIRE_DATE
2499 Alias Name = HIRE_DATE
2500 Field Name = HIRE_DATE
2501 Scale = 0
2502 Charset id = 0
2503 Not Null
2504 Size = 8
2505
2506 SQLType =SQL_TEXT
2507 sub type = 0
2508 Table = EMPLOYEE
2509 Owner = SYSDBA
2510 Column Name = DEPT_NO
2511 Alias Name = DEPT_NO
2512 Field Name = DEPT_NO
2513 Scale = 0
2514 Charset id = 0
2515 Not Null
2516 Size = 3
2517
2518 SQLType =SQL_VARYING
2519 sub type = 0
2520 Table = EMPLOYEE
2521 Owner = SYSDBA
2522 Column Name = JOB_CODE
2523 Alias Name = JOB_CODE
2524 Field Name = JOB_CODE
2525 Scale = 0
2526 Charset id = 0
2527 Not Null
2528 Size = 5
2529
2530 SQLType =SQL_SHORT
2531 sub type = 0
2532 Table = EMPLOYEE
2533 Owner = SYSDBA
2534 Column Name = JOB_GRADE
2535 Alias Name = JOB_GRADE
2536 Field Name = JOB_GRADE
2537 Scale = 0
2538 Charset id = 0
2539 Not Null
2540 Size = 2
2541
2542 SQLType =SQL_VARYING
2543 sub type = 0
2544 Table = EMPLOYEE
2545 Owner = SYSDBA
2546 Column Name = JOB_COUNTRY
2547 Alias Name = JOB_COUNTRY
2548 Field Name = JOB_COUNTRY
2549 Scale = 0
2550 Charset id = 0
2551 Not Null
2552 Size = 15
2553
2554 SQLType =SQL_INT64
2555 sub type = 0
2556 Table = EMPLOYEE
2557 Owner = SYSDBA
2558 Column Name = SALARY
2559 Alias Name = SALARY
2560 Field Name = SALARY
2561 Scale = -2
2562 Charset id = 0
2563 Not Null
2564 Size = 8
2565
2566 SQLType =SQL_VARYING
2567 sub type = 0
2568 Table = EMPLOYEE
2569 Owner = SYSDBA
2570 Column Name = FULL_NAME
2571 Alias Name = FULL_NAME
2572 Field Name = FULL_NAME
2573 Scale = 0
2574 Charset id = 0
2575 Nullable
2576 Size = 37
2577
2578 SQLType =SQL_VARYING
2579 sub type = 0
2580 Table =
2581 Owner =
2582 Column Name =
2583 Alias Name = DEPT_PATH
2584 Field Name = DEPT_PATH
2585 Scale = 0
2586 Charset id = 0
2587 Not Null
2588 Size = 256
2589
2590 SQLType =SQL_VARYING
2591 sub type = 0
2592 Table =
2593 Owner =
2594 Column Name =
2595 Alias Name = DEPT_KEY_PATH
2596 Field Name = DEPT_KEY_PATH
2597 Scale = 0
2598 Charset id = 0
2599 Not Null
2600 Size = 64
2601
2602
2603 PLAN SORT (JOIN ((DEPTS DEPARTMENT INDEX (RDB$FOREIGN6))
2604 PLAN (DEPTS D INDEX (RDB$FOREIGN6)), A INDEX (RDB$FOREIGN8)))
2605 EMP_NO = 2
2606 FIRST_NAME = Robert
2607 LAST_NAME = Nelson
2608 PHONE_EXT = 250
2609 HIRE_DATE = 1988/12/28 00:00:00.0000
2610 DEPT_NO = 600
2611 JOB_CODE = VP
2612 JOB_GRADE = 2
2613 JOB_COUNTRY = USA
2614 SALARY = 105,900.00
2615 FULL_NAME = Nelson, Robert
2616 DEPT_PATH = Corporate Headquarters / Engineering
2617 DEPT_KEY_PATH = 000;600
2618 EMP_NO = 4
2619 FIRST_NAME = Bruce
2620 LAST_NAME = Young
2621 PHONE_EXT = 233
2622 HIRE_DATE = 1988/12/28 00:00:00.0000
2623 DEPT_NO = 621
2624 JOB_CODE = Eng
2625 JOB_GRADE = 2
2626 JOB_COUNTRY = USA
2627 SALARY = 97,500.00
2628 FULL_NAME = Young, Bruce
2629 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
2630 DEPT_KEY_PATH = 000;600;620;621
2631 EMP_NO = 5
2632 FIRST_NAME = Kim
2633 LAST_NAME = Lambert
2634 PHONE_EXT = 22
2635 HIRE_DATE = 1989/02/06 00:00:00.0000
2636 DEPT_NO = 130
2637 JOB_CODE = Eng
2638 JOB_GRADE = 2
2639 JOB_COUNTRY = USA
2640 SALARY = 102,750.00
2641 FULL_NAME = Lambert, Kim
2642 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
2643 DEPT_KEY_PATH = 000;100;130
2644 EMP_NO = 8
2645 FIRST_NAME = Leslie
2646 LAST_NAME = Johnson
2647 PHONE_EXT = 410
2648 HIRE_DATE = 1989/04/05 00:00:00.0000
2649 DEPT_NO = 180
2650 JOB_CODE = Mktg
2651 JOB_GRADE = 3
2652 JOB_COUNTRY = USA
2653 SALARY = 64,635.00
2654 FULL_NAME = Johnson, Leslie
2655 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
2656 DEPT_KEY_PATH = 000;100;180
2657 EMP_NO = 9
2658 FIRST_NAME = Phil
2659 LAST_NAME = Forest
2660 PHONE_EXT = 229
2661 HIRE_DATE = 1989/04/17 00:00:00.0000
2662 DEPT_NO = 622
2663 JOB_CODE = Mngr
2664 JOB_GRADE = 3
2665 JOB_COUNTRY = USA
2666 SALARY = 75,060.00
2667 FULL_NAME = Forest, Phil
2668 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
2669 DEPT_KEY_PATH = 000;600;620;622
2670 EMP_NO = 11
2671 FIRST_NAME = K. J.
2672 LAST_NAME = Weston
2673 PHONE_EXT = 34
2674 HIRE_DATE = 1990/01/17 00:00:00.0000
2675 DEPT_NO = 130
2676 JOB_CODE = SRep
2677 JOB_GRADE = 4
2678 JOB_COUNTRY = USA
2679 SALARY = 86,292.94
2680 FULL_NAME = Weston, K. J.
2681 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
2682 DEPT_KEY_PATH = 000;100;130
2683 EMP_NO = 12
2684 FIRST_NAME = Terri
2685 LAST_NAME = Lee
2686 PHONE_EXT = 256
2687 HIRE_DATE = 1990/05/01 00:00:00.0000
2688 DEPT_NO = 000
2689 JOB_CODE = Admin
2690 JOB_GRADE = 4
2691 JOB_COUNTRY = USA
2692 SALARY = 53,793.00
2693 FULL_NAME = Lee, Terri
2694 DEPT_PATH = Corporate Headquarters
2695 DEPT_KEY_PATH = 000
2696 EMP_NO = 14
2697 FIRST_NAME = Stewart
2698 LAST_NAME = Hall
2699 PHONE_EXT = 227
2700 HIRE_DATE = 1990/06/04 00:00:00.0000
2701 DEPT_NO = 900
2702 JOB_CODE = Finan
2703 JOB_GRADE = 3
2704 JOB_COUNTRY = USA
2705 SALARY = 69,482.63
2706 FULL_NAME = Hall, Stewart
2707 DEPT_PATH = Corporate Headquarters / Finance
2708 DEPT_KEY_PATH = 000;900
2709 EMP_NO = 15
2710 FIRST_NAME = Katherine
2711 LAST_NAME = Young
2712 PHONE_EXT = 231
2713 HIRE_DATE = 1990/06/14 00:00:00.0000
2714 DEPT_NO = 623
2715 JOB_CODE = Mngr
2716 JOB_GRADE = 3
2717 JOB_COUNTRY = USA
2718 SALARY = 67,241.25
2719 FULL_NAME = Young, Katherine
2720 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
2721 DEPT_KEY_PATH = 000;600;620;623
2722 EMP_NO = 20
2723 FIRST_NAME = Chris
2724 LAST_NAME = Papadopoulos
2725 PHONE_EXT = 887
2726 HIRE_DATE = 1990/01/01 00:00:00.0000
2727 DEPT_NO = 671
2728 JOB_CODE = Mngr
2729 JOB_GRADE = 3
2730 JOB_COUNTRY = USA
2731 SALARY = 89,655.00
2732 FULL_NAME = Papadopoulos, Chris
2733 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
2734 DEPT_KEY_PATH = 000;600;670;671
2735 EMP_NO = 24
2736 FIRST_NAME = Pete
2737 LAST_NAME = Fisher
2738 PHONE_EXT = 888
2739 HIRE_DATE = 1990/09/12 00:00:00.0000
2740 DEPT_NO = 671
2741 JOB_CODE = Eng
2742 JOB_GRADE = 3
2743 JOB_COUNTRY = USA
2744 SALARY = 81,810.19
2745 FULL_NAME = Fisher, Pete
2746 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
2747 DEPT_KEY_PATH = 000;600;670;671
2748 EMP_NO = 28
2749 FIRST_NAME = Ann
2750 LAST_NAME = Bennet
2751 PHONE_EXT = 5
2752 HIRE_DATE = 1991/02/01 00:00:00.0000
2753 DEPT_NO = 120
2754 JOB_CODE = Admin
2755 JOB_GRADE = 5
2756 JOB_COUNTRY = England
2757 SALARY = 22,935.00
2758 FULL_NAME = Bennet, Ann
2759 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
2760 DEPT_KEY_PATH = 000;100;120
2761 EMP_NO = 29
2762 FIRST_NAME = Roger
2763 LAST_NAME = De Souza
2764 PHONE_EXT = 288
2765 HIRE_DATE = 1991/02/18 00:00:00.0000
2766 DEPT_NO = 623
2767 JOB_CODE = Eng
2768 JOB_GRADE = 3
2769 JOB_COUNTRY = USA
2770 SALARY = 69,482.63
2771 FULL_NAME = De Souza, Roger
2772 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
2773 DEPT_KEY_PATH = 000;600;620;623
2774 EMP_NO = 34
2775 FIRST_NAME = Janet
2776 LAST_NAME = Baldwin
2777 PHONE_EXT = 2
2778 HIRE_DATE = 1991/03/21 00:00:00.0000
2779 DEPT_NO = 110
2780 JOB_CODE = Sales
2781 JOB_GRADE = 3
2782 JOB_COUNTRY = USA
2783 SALARY = 61,637.81
2784 FULL_NAME = Baldwin, Janet
2785 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
2786 DEPT_KEY_PATH = 000;100;110
2787 EMP_NO = 36
2788 FIRST_NAME = Roger
2789 LAST_NAME = Reeves
2790 PHONE_EXT = 6
2791 HIRE_DATE = 1991/04/25 00:00:00.0000
2792 DEPT_NO = 120
2793 JOB_CODE = Sales
2794 JOB_GRADE = 3
2795 JOB_COUNTRY = England
2796 SALARY = 33,620.63
2797 FULL_NAME = Reeves, Roger
2798 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
2799 DEPT_KEY_PATH = 000;100;120
2800 EMP_NO = 37
2801 FIRST_NAME = Willie
2802 LAST_NAME = Stansbury
2803 PHONE_EXT = 7
2804 HIRE_DATE = 1991/04/25 00:00:00.0000
2805 DEPT_NO = 120
2806 JOB_CODE = Eng
2807 JOB_GRADE = 4
2808 JOB_COUNTRY = England
2809 SALARY = 39,224.06
2810 FULL_NAME = Stansbury, Willie
2811 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
2812 DEPT_KEY_PATH = 000;100;120
2813 EMP_NO = 44
2814 FIRST_NAME = Leslie
2815 LAST_NAME = Phong
2816 PHONE_EXT = 216
2817 HIRE_DATE = 1991/06/03 00:00:00.0000
2818 DEPT_NO = 623
2819 JOB_CODE = Eng
2820 JOB_GRADE = 4
2821 JOB_COUNTRY = USA
2822 SALARY = 56,034.38
2823 FULL_NAME = Phong, Leslie
2824 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
2825 DEPT_KEY_PATH = 000;600;620;623
2826 EMP_NO = 45
2827 FIRST_NAME = Ashok
2828 LAST_NAME = Ramanathan
2829 PHONE_EXT = 209
2830 HIRE_DATE = 1991/08/01 00:00:00.0000
2831 DEPT_NO = 621
2832 JOB_CODE = Eng
2833 JOB_GRADE = 3
2834 JOB_COUNTRY = USA
2835 SALARY = 80,689.50
2836 FULL_NAME = Ramanathan, Ashok
2837 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
2838 DEPT_KEY_PATH = 000;600;620;621
2839 EMP_NO = 46
2840 FIRST_NAME = Walter
2841 LAST_NAME = Steadman
2842 PHONE_EXT = 210
2843 HIRE_DATE = 1991/08/09 00:00:00.0000
2844 DEPT_NO = 900
2845 JOB_CODE = CFO
2846 JOB_GRADE = 1
2847 JOB_COUNTRY = USA
2848 SALARY = 116,100.00
2849 FULL_NAME = Steadman, Walter
2850 DEPT_PATH = Corporate Headquarters / Finance
2851 DEPT_KEY_PATH = 000;900
2852 EMP_NO = 52
2853 FIRST_NAME = Carol
2854 LAST_NAME = Nordstrom
2855 PHONE_EXT = 420
2856 HIRE_DATE = 1991/10/02 00:00:00.0000
2857 DEPT_NO = 180
2858 JOB_CODE = PRel
2859 JOB_GRADE = 4
2860 JOB_COUNTRY = USA
2861 SALARY = 42,742.50
2862 FULL_NAME = Nordstrom, Carol
2863 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
2864 DEPT_KEY_PATH = 000;100;180
2865 EMP_NO = 61
2866 FIRST_NAME = Luke
2867 LAST_NAME = Leung
2868 PHONE_EXT = 3
2869 HIRE_DATE = 1992/02/18 00:00:00.0000
2870 DEPT_NO = 110
2871 JOB_CODE = SRep
2872 JOB_GRADE = 4
2873 JOB_COUNTRY = USA
2874 SALARY = 68,805.00
2875 FULL_NAME = Leung, Luke
2876 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
2877 DEPT_KEY_PATH = 000;100;110
2878 EMP_NO = 65
2879 FIRST_NAME = Sue Anne
2880 LAST_NAME = O'Brien
2881 PHONE_EXT = 877
2882 HIRE_DATE = 1992/03/23 00:00:00.0000
2883 DEPT_NO = 670
2884 JOB_CODE = Admin
2885 JOB_GRADE = 5
2886 JOB_COUNTRY = USA
2887 SALARY = 31,275.00
2888 FULL_NAME = O'Brien, Sue Anne
2889 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
2890 DEPT_KEY_PATH = 000;600;670
2891 EMP_NO = 71
2892 FIRST_NAME = Jennifer M.
2893 LAST_NAME = Burbank
2894 PHONE_EXT = 289
2895 HIRE_DATE = 1992/04/15 00:00:00.0000
2896 DEPT_NO = 622
2897 JOB_CODE = Eng
2898 JOB_GRADE = 3
2899 JOB_COUNTRY = USA
2900 SALARY = 53,167.50
2901 FULL_NAME = Burbank, Jennifer M.
2902 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
2903 DEPT_KEY_PATH = 000;600;620;622
2904 EMP_NO = 72
2905 FIRST_NAME = Claudia
2906 LAST_NAME = Sutherland
2907 PHONE_EXT = NULL
2908 HIRE_DATE = 1992/04/20 00:00:00.0000
2909 DEPT_NO = 140
2910 JOB_CODE = SRep
2911 JOB_GRADE = 4
2912 JOB_COUNTRY = Canada
2913 SALARY = 100,914.00
2914 FULL_NAME = Sutherland, Claudia
2915 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: Canada
2916 DEPT_KEY_PATH = 000;100;140
2917 EMP_NO = 83
2918 FIRST_NAME = Dana
2919 LAST_NAME = Bishop
2920 PHONE_EXT = 290
2921 HIRE_DATE = 1992/06/01 00:00:00.0000
2922 DEPT_NO = 621
2923 JOB_CODE = Eng
2924 JOB_GRADE = 3
2925 JOB_COUNTRY = USA
2926 SALARY = 62,550.00
2927 FULL_NAME = Bishop, Dana
2928 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
2929 DEPT_KEY_PATH = 000;600;620;621
2930 EMP_NO = 85
2931 FIRST_NAME = Mary S.
2932 LAST_NAME = MacDonald
2933 PHONE_EXT = 477
2934 HIRE_DATE = 1992/06/01 00:00:00.0000
2935 DEPT_NO = 100
2936 JOB_CODE = VP
2937 JOB_GRADE = 2
2938 JOB_COUNTRY = USA
2939 SALARY = 111,262.50
2940 FULL_NAME = MacDonald, Mary S.
2941 DEPT_PATH = Corporate Headquarters / Sales and Marketing
2942 DEPT_KEY_PATH = 000;100
2943 EMP_NO = 94
2944 FIRST_NAME = Randy
2945 LAST_NAME = Williams
2946 PHONE_EXT = 892
2947 HIRE_DATE = 1992/08/08 00:00:00.0000
2948 DEPT_NO = 672
2949 JOB_CODE = Mngr
2950 JOB_GRADE = 4
2951 JOB_COUNTRY = USA
2952 SALARY = 56,295.00
2953 FULL_NAME = Williams, Randy
2954 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
2955 DEPT_KEY_PATH = 000;600;670;672
2956 EMP_NO = 105
2957 FIRST_NAME = Oliver H.
2958 LAST_NAME = Bender
2959 PHONE_EXT = 255
2960 HIRE_DATE = 1992/10/08 00:00:00.0000
2961 DEPT_NO = 000
2962 JOB_CODE = CEO
2963 JOB_GRADE = 1
2964 JOB_COUNTRY = USA
2965 SALARY = 212,850.00
2966 FULL_NAME = Bender, Oliver H.
2967 DEPT_PATH = Corporate Headquarters
2968 DEPT_KEY_PATH = 000
2969 EMP_NO = 107
2970 FIRST_NAME = Kevin
2971 LAST_NAME = Cook
2972 PHONE_EXT = 894
2973 HIRE_DATE = 1993/02/01 00:00:00.0000
2974 DEPT_NO = 670
2975 JOB_CODE = Dir
2976 JOB_GRADE = 2
2977 JOB_COUNTRY = USA
2978 SALARY = 111,262.50
2979 FULL_NAME = Cook, Kevin
2980 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div.
2981 DEPT_KEY_PATH = 000;600;670
2982 EMP_NO = 109
2983 FIRST_NAME = Kelly
2984 LAST_NAME = Brown
2985 PHONE_EXT = 202
2986 HIRE_DATE = 1993/02/04 00:00:00.0000
2987 DEPT_NO = 600
2988 JOB_CODE = Admin
2989 JOB_GRADE = 5
2990 JOB_COUNTRY = USA
2991 SALARY = 27,000.00
2992 FULL_NAME = Brown, Kelly
2993 DEPT_PATH = Corporate Headquarters / Engineering
2994 DEPT_KEY_PATH = 000;600
2995 EMP_NO = 110
2996 FIRST_NAME = Yuki
2997 LAST_NAME = Ichida
2998 PHONE_EXT = 22
2999 HIRE_DATE = 1993/02/04 00:00:00.0000
3000 DEPT_NO = 115
3001 JOB_CODE = Eng
3002 JOB_GRADE = 3
3003 JOB_COUNTRY = Japan
3004 SALARY = 6,000,000.00
3005 FULL_NAME = Ichida, Yuki
3006 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
3007 DEPT_KEY_PATH = 000;100;110;115
3008 EMP_NO = 113
3009 FIRST_NAME = Mary
3010 LAST_NAME = Page
3011 PHONE_EXT = 845
3012 HIRE_DATE = 1993/04/12 00:00:00.0000
3013 DEPT_NO = 671
3014 JOB_CODE = Eng
3015 JOB_GRADE = 4
3016 JOB_COUNTRY = USA
3017 SALARY = 48,000.00
3018 FULL_NAME = Page, Mary
3019 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
3020 DEPT_KEY_PATH = 000;600;670;671
3021 EMP_NO = 114
3022 FIRST_NAME = Bill
3023 LAST_NAME = Parker
3024 PHONE_EXT = 247
3025 HIRE_DATE = 1993/06/01 00:00:00.0000
3026 DEPT_NO = 623
3027 JOB_CODE = Eng
3028 JOB_GRADE = 5
3029 JOB_COUNTRY = USA
3030 SALARY = 35,000.00
3031 FULL_NAME = Parker, Bill
3032 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
3033 DEPT_KEY_PATH = 000;600;620;623
3034 EMP_NO = 118
3035 FIRST_NAME = Takashi
3036 LAST_NAME = Yamamoto
3037 PHONE_EXT = 23
3038 HIRE_DATE = 1993/07/01 00:00:00.0000
3039 DEPT_NO = 115
3040 JOB_CODE = SRep
3041 JOB_GRADE = 4
3042 JOB_COUNTRY = Japan
3043 SALARY = 7,480,000.00
3044 FULL_NAME = Yamamoto, Takashi
3045 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters / Field Office: Japan
3046 DEPT_KEY_PATH = 000;100;110;115
3047 EMP_NO = 121
3048 FIRST_NAME = Roberto
3049 LAST_NAME = Ferrari
3050 PHONE_EXT = 1
3051 HIRE_DATE = 1993/07/12 00:00:00.0000
3052 DEPT_NO = 125
3053 JOB_CODE = SRep
3054 JOB_GRADE = 4
3055 JOB_COUNTRY = Italy
3056 SALARY = 99,000,000.00
3057 FULL_NAME = Ferrari, Roberto
3058 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Italy
3059 DEPT_KEY_PATH = 000;100;120;125
3060 EMP_NO = 127
3061 FIRST_NAME = Michael
3062 LAST_NAME = Yanowski
3063 PHONE_EXT = 492
3064 HIRE_DATE = 1993/08/09 00:00:00.0000
3065 DEPT_NO = 100
3066 JOB_CODE = SRep
3067 JOB_GRADE = 4
3068 JOB_COUNTRY = USA
3069 SALARY = 44,000.00
3070 FULL_NAME = Yanowski, Michael
3071 DEPT_PATH = Corporate Headquarters / Sales and Marketing
3072 DEPT_KEY_PATH = 000;100
3073 EMP_NO = 134
3074 FIRST_NAME = Jacques
3075 LAST_NAME = Glon
3076 PHONE_EXT = NULL
3077 HIRE_DATE = 1993/08/23 00:00:00.0000
3078 DEPT_NO = 123
3079 JOB_CODE = SRep
3080 JOB_GRADE = 4
3081 JOB_COUNTRY = France
3082 SALARY = 390,500.00
3083 FULL_NAME = Glon, Jacques
3084 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: France
3085 DEPT_KEY_PATH = 000;100;120;123
3086 EMP_NO = 136
3087 FIRST_NAME = Scott
3088 LAST_NAME = Johnson
3089 PHONE_EXT = 265
3090 HIRE_DATE = 1993/09/13 00:00:00.0000
3091 DEPT_NO = 623
3092 JOB_CODE = Doc
3093 JOB_GRADE = 3
3094 JOB_COUNTRY = USA
3095 SALARY = 60,000.00
3096 FULL_NAME = Johnson, Scott
3097 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
3098 DEPT_KEY_PATH = 000;600;620;623
3099 EMP_NO = 138
3100 FIRST_NAME = T.J.
3101 LAST_NAME = Green
3102 PHONE_EXT = 218
3103 HIRE_DATE = 1993/11/01 00:00:00.0000
3104 DEPT_NO = 621
3105 JOB_CODE = Eng
3106 JOB_GRADE = 4
3107 JOB_COUNTRY = USA
3108 SALARY = 36,000.00
3109 FULL_NAME = Green, T.J.
3110 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
3111 DEPT_KEY_PATH = 000;600;620;621
3112 EMP_NO = 141
3113 FIRST_NAME = Pierre
3114 LAST_NAME = Osborne
3115 PHONE_EXT = NULL
3116 HIRE_DATE = 1994/01/03 00:00:00.0000
3117 DEPT_NO = 121
3118 JOB_CODE = SRep
3119 JOB_GRADE = 4
3120 JOB_COUNTRY = Switzerland
3121 SALARY = 110,000.00
3122 FULL_NAME = Osborne, Pierre
3123 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters / Field Office: Switzerland
3124 DEPT_KEY_PATH = 000;100;120;121
3125 EMP_NO = 144
3126 FIRST_NAME = John
3127 LAST_NAME = Montgomery
3128 PHONE_EXT = 820
3129 HIRE_DATE = 1994/03/30 00:00:00.0000
3130 DEPT_NO = 672
3131 JOB_CODE = Eng
3132 JOB_GRADE = 5
3133 JOB_COUNTRY = USA
3134 SALARY = 35,000.00
3135 FULL_NAME = Montgomery, John
3136 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Customer Services
3137 DEPT_KEY_PATH = 000;600;670;672
3138 EMP_NO = 145
3139 FIRST_NAME = Mark
3140 LAST_NAME = Guckenheimer
3141 PHONE_EXT = 221
3142 HIRE_DATE = 1994/05/02 00:00:00.0000
3143 DEPT_NO = 622
3144 JOB_CODE = Eng
3145 JOB_GRADE = 5
3146 JOB_COUNTRY = USA
3147 SALARY = 32,000.00
3148 FULL_NAME = Guckenheimer, Mark
3149 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
3150 DEPT_KEY_PATH = 000;600;620;622
3151 Current memory = 952,624
3152 Delta memory = 9,496
3153 Max memory = 1,013,496
3154 Elapsed time= 0.031 sec
3155 Cpu = 0.002 sec
3156 Buffers = 75
3157 Reads = 3
3158 Writes = 0
3159 Fetches = 212
3160
3161 ------------------------------------------------------
3162 With Named Parameter
3163 EMP_NO = 12
3164 FIRST_NAME = Terri
3165 LAST_NAME = Lee
3166 PHONE_EXT = 256
3167 HIRE_DATE = 1990/05/01 00:00:00.0000
3168 DEPT_NO = 000
3169 JOB_CODE = Admin
3170 JOB_GRADE = 4
3171 JOB_COUNTRY = USA
3172 SALARY = 53,793.00
3173 FULL_NAME = Lee, Terri
3174 DEPT_PATH = Corporate Headquarters
3175 DEPT_KEY_PATH = 000
3176 EMP_NO = 8
3177 FIRST_NAME = Leslie
3178 LAST_NAME = Johnson
3179 PHONE_EXT = 410
3180 HIRE_DATE = 1989/04/05 00:00:00.0000
3181 DEPT_NO = 180
3182 JOB_CODE = Mktg
3183 JOB_GRADE = 3
3184 JOB_COUNTRY = USA
3185 SALARY = 64,635.00
3186 FULL_NAME = Johnson, Leslie
3187 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
3188 DEPT_KEY_PATH = 000;100;180
3189 EMP_NO = 5
3190 FIRST_NAME = Kim
3191 LAST_NAME = Lambert
3192 PHONE_EXT = 22
3193 HIRE_DATE = 1989/02/06 00:00:00.0000
3194 DEPT_NO = 130
3195 JOB_CODE = Eng
3196 JOB_GRADE = 2
3197 JOB_COUNTRY = USA
3198 SALARY = 102,750.00
3199 FULL_NAME = Lambert, Kim
3200 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
3201 DEPT_KEY_PATH = 000;100;130
3202 EMP_NO = 11
3203 FIRST_NAME = K. J.
3204 LAST_NAME = Weston
3205 PHONE_EXT = 34
3206 HIRE_DATE = 1990/01/17 00:00:00.0000
3207 DEPT_NO = 130
3208 JOB_CODE = SRep
3209 JOB_GRADE = 4
3210 JOB_COUNTRY = USA
3211 SALARY = 86,292.94
3212 FULL_NAME = Weston, K. J.
3213 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
3214 DEPT_KEY_PATH = 000;100;130
3215 EMP_NO = 2
3216 FIRST_NAME = Robert
3217 LAST_NAME = Nelson
3218 PHONE_EXT = 250
3219 HIRE_DATE = 1988/12/28 00:00:00.0000
3220 DEPT_NO = 600
3221 JOB_CODE = VP
3222 JOB_GRADE = 2
3223 JOB_COUNTRY = USA
3224 SALARY = 105,900.00
3225 FULL_NAME = Nelson, Robert
3226 DEPT_PATH = Corporate Headquarters / Engineering
3227 DEPT_KEY_PATH = 000;600
3228 EMP_NO = 4
3229 FIRST_NAME = Bruce
3230 LAST_NAME = Young
3231 PHONE_EXT = 233
3232 HIRE_DATE = 1988/12/28 00:00:00.0000
3233 DEPT_NO = 621
3234 JOB_CODE = Eng
3235 JOB_GRADE = 2
3236 JOB_COUNTRY = USA
3237 SALARY = 97,500.00
3238 FULL_NAME = Young, Bruce
3239 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
3240 DEPT_KEY_PATH = 000;600;620;621
3241 EMP_NO = 9
3242 FIRST_NAME = Phil
3243 LAST_NAME = Forest
3244 PHONE_EXT = 229
3245 HIRE_DATE = 1989/04/17 00:00:00.0000
3246 DEPT_NO = 622
3247 JOB_CODE = Mngr
3248 JOB_GRADE = 3
3249 JOB_COUNTRY = USA
3250 SALARY = 75,060.00
3251 FULL_NAME = Forest, Phil
3252 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
3253 DEPT_KEY_PATH = 000;600;620;622
3254 EMP_NO = 15
3255 FIRST_NAME = Katherine
3256 LAST_NAME = Young
3257 PHONE_EXT = 231
3258 HIRE_DATE = 1990/06/14 00:00:00.0000
3259 DEPT_NO = 623
3260 JOB_CODE = Mngr
3261 JOB_GRADE = 3
3262 JOB_COUNTRY = USA
3263 SALARY = 67,241.25
3264 FULL_NAME = Young, Katherine
3265 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
3266 DEPT_KEY_PATH = 000;600;620;623
3267 EMP_NO = 20
3268 FIRST_NAME = Chris
3269 LAST_NAME = Papadopoulos
3270 PHONE_EXT = 887
3271 HIRE_DATE = 1990/01/01 00:00:00.0000
3272 DEPT_NO = 671
3273 JOB_CODE = Mngr
3274 JOB_GRADE = 3
3275 JOB_COUNTRY = USA
3276 SALARY = 89,655.00
3277 FULL_NAME = Papadopoulos, Chris
3278 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
3279 DEPT_KEY_PATH = 000;600;670;671
3280 EMP_NO = 24
3281 FIRST_NAME = Pete
3282 LAST_NAME = Fisher
3283 PHONE_EXT = 888
3284 HIRE_DATE = 1990/09/12 00:00:00.0000
3285 DEPT_NO = 671
3286 JOB_CODE = Eng
3287 JOB_GRADE = 3
3288 JOB_COUNTRY = USA
3289 SALARY = 81,810.19
3290 FULL_NAME = Fisher, Pete
3291 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
3292 DEPT_KEY_PATH = 000;600;670;671
3293 EMP_NO = 14
3294 FIRST_NAME = Stewart
3295 LAST_NAME = Hall
3296 PHONE_EXT = 227
3297 HIRE_DATE = 1990/06/04 00:00:00.0000
3298 DEPT_NO = 900
3299 JOB_CODE = Finan
3300 JOB_GRADE = 3
3301 JOB_COUNTRY = USA
3302 SALARY = 69,482.63
3303 FULL_NAME = Hall, Stewart
3304 DEPT_PATH = Corporate Headquarters / Finance
3305 DEPT_KEY_PATH = 000;900
3306
3307 With Positional Parameter
3308 EMP_NO = 8
3309 FIRST_NAME = Leslie
3310 LAST_NAME = Johnson
3311 PHONE_EXT = 410
3312 HIRE_DATE = 1989/04/05 00:00:00.0000
3313 DEPT_NO = 180
3314 JOB_CODE = Mktg
3315 JOB_GRADE = 3
3316 JOB_COUNTRY = USA
3317 SALARY = 64,635.00
3318 FULL_NAME = Johnson, Leslie
3319 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
3320 DEPT_KEY_PATH = 000;100;180
3321 EMP_NO = 5
3322 FIRST_NAME = Kim
3323 LAST_NAME = Lambert
3324 PHONE_EXT = 22
3325 HIRE_DATE = 1989/02/06 00:00:00.0000
3326 DEPT_NO = 130
3327 JOB_CODE = Eng
3328 JOB_GRADE = 2
3329 JOB_COUNTRY = USA
3330 SALARY = 102,750.00
3331 FULL_NAME = Lambert, Kim
3332 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
3333 DEPT_KEY_PATH = 000;100;130
3334 EMP_NO = 2
3335 FIRST_NAME = Robert
3336 LAST_NAME = Nelson
3337 PHONE_EXT = 250
3338 HIRE_DATE = 1988/12/28 00:00:00.0000
3339 DEPT_NO = 600
3340 JOB_CODE = VP
3341 JOB_GRADE = 2
3342 JOB_COUNTRY = USA
3343 SALARY = 105,900.00
3344 FULL_NAME = Nelson, Robert
3345 DEPT_PATH = Corporate Headquarters / Engineering
3346 DEPT_KEY_PATH = 000;600
3347 EMP_NO = 4
3348 FIRST_NAME = Bruce
3349 LAST_NAME = Young
3350 PHONE_EXT = 233
3351 HIRE_DATE = 1988/12/28 00:00:00.0000
3352 DEPT_NO = 621
3353 JOB_CODE = Eng
3354 JOB_GRADE = 2
3355 JOB_COUNTRY = USA
3356 SALARY = 97,500.00
3357 FULL_NAME = Young, Bruce
3358 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
3359 DEPT_KEY_PATH = 000;600;620;621
3360 EMP_NO = 9
3361 FIRST_NAME = Phil
3362 LAST_NAME = Forest
3363 PHONE_EXT = 229
3364 HIRE_DATE = 1989/04/17 00:00:00.0000
3365 DEPT_NO = 622
3366 JOB_CODE = Mngr
3367 JOB_GRADE = 3
3368 JOB_COUNTRY = USA
3369 SALARY = 75,060.00
3370 FULL_NAME = Forest, Phil
3371 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
3372 DEPT_KEY_PATH = 000;600;620;622
3373
3374 Get Employee Project
3375 Metadata
3376 SQLType =SQL_TEXT
3377 sub type = 0
3378 Table = GET_EMP_PROJ
3379 Owner = SYSDBA
3380 Column Name = PROJ_ID
3381 Alias Name = PROJ_ID
3382 Field Name = PROJ_ID
3383 Scale = 0
3384 Charset id = 0
3385 Nullable
3386 Size = 5
3387
3388 PROJ_ID = VBASE
3389 PROJ_ID = MAPDB
3390
3391 Call Delete Employee - exception expected
3392 Terminated with Exception:exception 2
3393 -REASSIGN_SALES
3394 -Reassign the sales records before deleting this employee.
3395 -At procedure 'DELETE_EMPLOYEE' line: 19, col: 3
3396
3397
3398 ------------------------------------------------------
3399 Running Test 08: TIBDataset: Locate, Bookmark and Lookup
3400 Field No 1 Name = EMP_NO DataType = ftSmallint
3401 Field No 2 Name = FIRST_NAME DataType = ftString
3402 Field No 3 Name = LAST_NAME DataType = ftString
3403 Field No 4 Name = PHONE_EXT DataType = ftString
3404 Field No 5 Name = HIRE_DATE DataType = ftDateTime
3405 Field No 6 Name = DEPT_NO DataType = ftString
3406 Field No 7 Name = JOB_CODE DataType = ftString
3407 Field No 8 Name = JOB_GRADE DataType = ftSmallint
3408 Field No 9 Name = JOB_COUNTRY DataType = ftString
3409 Field No 10 Name = SALARY DataType = ftBCD
3410 Field No 11 Name = FULL_NAME DataType = ftString
3411 Field No 12 Name = DEPT_PATH DataType = ftString
3412 Field No 13 Name = DEPT_KEY_PATH DataType = ftString
3413 Field No -1 Name = HireYear DataType = ftInteger
3414 Field No -1 Name = HireDatePlus1 DataType = ftDate
3415 EMP_NO = 12
3416 FIRST_NAME = Terri
3417 LAST_NAME = Lee
3418 PHONE_EXT = 256
3419 HIRE_DATE = 01/5/1990
3420 DEPT_NO = 000
3421 JOB_CODE = Admin
3422 JOB_GRADE = 4
3423 JOB_COUNTRY = USA
3424 SALARY = 53793
3425 FULL_NAME = Lee, Terri
3426 DEPT_PATH = Corporate Headquarters
3427 DEPT_KEY_PATH = 000
3428 HireYear = 1990
3429 HireDatePlus1 = 02/5/1990
3430 EMP_NO = 36
3431 FIRST_NAME = Roger
3432 LAST_NAME = Reeves
3433 PHONE_EXT = 6
3434 HIRE_DATE = 25/4/1991
3435 DEPT_NO = 120
3436 JOB_CODE = Sales
3437 JOB_GRADE = 3
3438 JOB_COUNTRY = England
3439 SALARY = 33620.63
3440 FULL_NAME = Reeves, Roger
3441 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
3442 DEPT_KEY_PATH = 000;100;120
3443 HireYear = 1991
3444 HireDatePlus1 = 26/4/1991
3445 Back to EMP_NO = 12
3446 EMP_NO = 12
3447 FIRST_NAME = Terri
3448 LAST_NAME = Lee
3449 PHONE_EXT = 256
3450 HIRE_DATE = 01/5/1990
3451 DEPT_NO = 000
3452 JOB_CODE = Admin
3453 JOB_GRADE = 4
3454 JOB_COUNTRY = USA
3455 SALARY = 53793
3456 FULL_NAME = Lee, Terri
3457 DEPT_PATH = Corporate Headquarters
3458 DEPT_KEY_PATH = 000
3459 HireYear = 1990
3460 HireDatePlus1 = 02/5/1990
3461 Locate Employee 20, First Name and Last Name
3462 Field No. 0 = Chris
3463 Field No. 1 = Papadopoulos
3464
3465 Print All
3466 Row No = 1
3467 EMP_NO = 2
3468 FIRST_NAME = Robert
3469 LAST_NAME = Nelson
3470 PHONE_EXT = 250
3471 HIRE_DATE = 28/12/1988
3472 DEPT_NO = 600
3473 JOB_CODE = VP
3474 JOB_GRADE = 2
3475 JOB_COUNTRY = USA
3476 SALARY = 105900
3477 FULL_NAME = Nelson, Robert
3478 DEPT_PATH = Corporate Headquarters / Engineering
3479 DEPT_KEY_PATH = 000;600
3480 HireYear = 1988
3481 HireDatePlus1 = 29/12/1988
3482
3483 Row No = 2
3484 EMP_NO = 4
3485 FIRST_NAME = Bruce
3486 LAST_NAME = Young
3487 PHONE_EXT = 233
3488 HIRE_DATE = 28/12/1988
3489 DEPT_NO = 621
3490 JOB_CODE = Eng
3491 JOB_GRADE = 2
3492 JOB_COUNTRY = USA
3493 SALARY = 97500
3494 FULL_NAME = Young, Bruce
3495 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Software Development
3496 DEPT_KEY_PATH = 000;600;620;621
3497 HireYear = 1988
3498 HireDatePlus1 = 29/12/1988
3499
3500 Row No = 3
3501 EMP_NO = 5
3502 FIRST_NAME = Kim
3503 LAST_NAME = Lambert
3504 PHONE_EXT = 22
3505 HIRE_DATE = 06/2/1989
3506 DEPT_NO = 130
3507 JOB_CODE = Eng
3508 JOB_GRADE = 2
3509 JOB_COUNTRY = USA
3510 SALARY = 102750
3511 FULL_NAME = Lambert, Kim
3512 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
3513 DEPT_KEY_PATH = 000;100;130
3514 HireYear = 1989
3515 HireDatePlus1 = 07/2/1989
3516
3517 Row No = 4
3518 EMP_NO = 8
3519 FIRST_NAME = Leslie
3520 LAST_NAME = Johnson
3521 PHONE_EXT = 410
3522 HIRE_DATE = 05/4/1989
3523 DEPT_NO = 180
3524 JOB_CODE = Mktg
3525 JOB_GRADE = 3
3526 JOB_COUNTRY = USA
3527 SALARY = 64635
3528 FULL_NAME = Johnson, Leslie
3529 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Marketing
3530 DEPT_KEY_PATH = 000;100;180
3531 HireYear = 1989
3532 HireDatePlus1 = 06/4/1989
3533
3534 Row No = 5
3535 EMP_NO = 9
3536 FIRST_NAME = Phil
3537 LAST_NAME = Forest
3538 PHONE_EXT = 229
3539 HIRE_DATE = 17/4/1989
3540 DEPT_NO = 622
3541 JOB_CODE = Mngr
3542 JOB_GRADE = 3
3543 JOB_COUNTRY = USA
3544 SALARY = 75060
3545 FULL_NAME = Forest, Phil
3546 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Quality Assurance
3547 DEPT_KEY_PATH = 000;600;620;622
3548 HireYear = 1989
3549 HireDatePlus1 = 18/4/1989
3550
3551 Row No = 6
3552 EMP_NO = 11
3553 FIRST_NAME = K. J.
3554 LAST_NAME = Weston
3555 PHONE_EXT = 34
3556 HIRE_DATE = 17/1/1990
3557 DEPT_NO = 130
3558 JOB_CODE = SRep
3559 JOB_GRADE = 4
3560 JOB_COUNTRY = USA
3561 SALARY = 86292.94
3562 FULL_NAME = Weston, K. J.
3563 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Field Office: East Coast
3564 DEPT_KEY_PATH = 000;100;130
3565 HireYear = 1990
3566 HireDatePlus1 = 18/1/1990
3567
3568 Row No = 7
3569 EMP_NO = 12
3570 FIRST_NAME = Terri
3571 LAST_NAME = Lee
3572 PHONE_EXT = 256
3573 HIRE_DATE = 01/5/1990
3574 DEPT_NO = 000
3575 JOB_CODE = Admin
3576 JOB_GRADE = 4
3577 JOB_COUNTRY = USA
3578 SALARY = 53793
3579 FULL_NAME = Lee, Terri
3580 DEPT_PATH = Corporate Headquarters
3581 DEPT_KEY_PATH = 000
3582 HireYear = 1990
3583 HireDatePlus1 = 02/5/1990
3584
3585 Row No = 8
3586 EMP_NO = 14
3587 FIRST_NAME = Stewart
3588 LAST_NAME = Hall
3589 PHONE_EXT = 227
3590 HIRE_DATE = 04/6/1990
3591 DEPT_NO = 900
3592 JOB_CODE = Finan
3593 JOB_GRADE = 3
3594 JOB_COUNTRY = USA
3595 SALARY = 69482.63
3596 FULL_NAME = Hall, Stewart
3597 DEPT_PATH = Corporate Headquarters / Finance
3598 DEPT_KEY_PATH = 000;900
3599 HireYear = 1990
3600 HireDatePlus1 = 05/6/1990
3601
3602 Row No = 9
3603 EMP_NO = 15
3604 FIRST_NAME = Katherine
3605 LAST_NAME = Young
3606 PHONE_EXT = 231
3607 HIRE_DATE = 14/6/1990
3608 DEPT_NO = 623
3609 JOB_CODE = Mngr
3610 JOB_GRADE = 3
3611 JOB_COUNTRY = USA
3612 SALARY = 67241.25
3613 FULL_NAME = Young, Katherine
3614 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
3615 DEPT_KEY_PATH = 000;600;620;623
3616 HireYear = 1990
3617 HireDatePlus1 = 15/6/1990
3618
3619 Row No = 10
3620 EMP_NO = 20
3621 FIRST_NAME = Chris
3622 LAST_NAME = Papadopoulos
3623 PHONE_EXT = 887
3624 HIRE_DATE = 01/1/1990
3625 DEPT_NO = 671
3626 JOB_CODE = Mngr
3627 JOB_GRADE = 3
3628 JOB_COUNTRY = USA
3629 SALARY = 89655
3630 FULL_NAME = Papadopoulos, Chris
3631 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
3632 DEPT_KEY_PATH = 000;600;670;671
3633 HireYear = 1990
3634 HireDatePlus1 = 02/1/1990
3635
3636 Row No = 11
3637 EMP_NO = 24
3638 FIRST_NAME = Pete
3639 LAST_NAME = Fisher
3640 PHONE_EXT = 888
3641 HIRE_DATE = 12/9/1990
3642 DEPT_NO = 671
3643 JOB_CODE = Eng
3644 JOB_GRADE = 3
3645 JOB_COUNTRY = USA
3646 SALARY = 81810.19
3647 FULL_NAME = Fisher, Pete
3648 DEPT_PATH = Corporate Headquarters / Engineering / Consumer Electronics Div. / Research and Development
3649 DEPT_KEY_PATH = 000;600;670;671
3650 HireYear = 1990
3651 HireDatePlus1 = 13/9/1990
3652
3653 Row No = 12
3654 EMP_NO = 28
3655 FIRST_NAME = Ann
3656 LAST_NAME = Bennet
3657 PHONE_EXT = 5
3658 HIRE_DATE = 01/2/1991
3659 DEPT_NO = 120
3660 JOB_CODE = Admin
3661 JOB_GRADE = 5
3662 JOB_COUNTRY = England
3663 SALARY = 22935
3664 FULL_NAME = Bennet, Ann
3665 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
3666 DEPT_KEY_PATH = 000;100;120
3667 HireYear = 1991
3668 HireDatePlus1 = 02/2/1991
3669
3670 Row No = 13
3671 EMP_NO = 29
3672 FIRST_NAME = Roger
3673 LAST_NAME = De Souza
3674 PHONE_EXT = 288
3675 HIRE_DATE = 18/2/1991
3676 DEPT_NO = 623
3677 JOB_CODE = Eng
3678 JOB_GRADE = 3
3679 JOB_COUNTRY = USA
3680 SALARY = 69482.63
3681 FULL_NAME = De Souza, Roger
3682 DEPT_PATH = Corporate Headquarters / Engineering / Software Products Div. / Customer Support
3683 DEPT_KEY_PATH = 000;600;620;623
3684 HireYear = 1991
3685 HireDatePlus1 = 19/2/1991
3686
3687 Row No = 14
3688 EMP_NO = 34
3689 FIRST_NAME = Janet
3690 LAST_NAME = Baldwin
3691 PHONE_EXT = 2
3692 HIRE_DATE = 21/3/1991
3693 DEPT_NO = 110
3694 JOB_CODE = Sales
3695 JOB_GRADE = 3
3696 JOB_COUNTRY = USA
3697 SALARY = 61637.81
3698 FULL_NAME = Baldwin, Janet
3699 DEPT_PATH = Corporate Headquarters / Sales and Marketing / Pacific Rim Headquarters
3700 DEPT_KEY_PATH = 000;100;110
3701 HireYear = 1991
3702 HireDatePlus1 = 22/3/1991
3703
3704 Row No = 15
3705 EMP_NO = 36
3706 FIRST_NAME = Roger
3707 LAST_NAME = Reeves
3708 PHONE_EXT = 6
3709 HIRE_DATE = 25/4/1991
3710 DEPT_NO = 120
3711 JOB_CODE = Sales
3712 JOB_GRADE = 3
3713 JOB_COUNTRY = England
3714 SALARY = 33620.63
3715 FULL_NAME = Reeves, Roger
3716 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
3717 DEPT_KEY_PATH = 000;100;120
3718 HireYear = 1991
3719 HireDatePlus1 = 26/4/1991
3720
3721 Row No = 16
3722 EMP_NO = 37
3723 FIRST_NAME = Willie
3724 LAST_NAME = Stansbury
3725 PHONE_EXT = 7
3726 HIRE_DATE = 25/4/1991
3727 DEPT_NO = 120
3728 JOB_CODE = Eng
3729 JOB_GRADE = 4
3730 JOB_COUNTRY = England
3731 SALARY = 39224.06
3732 FULL_NAME = Stansbury, Willie
3733 DEPT_PATH = Corporate Headquarters / Sales and Marketing / European Headquarters
3734 DEPT_KEY_PATH = 000;100;120
3735 HireYear = 1991
3736 HireDatePlus1 = 26/4/1991
3737
3738 Rows printed = 16
3739
3740
3741
3742 ------------------------------------------------------
3743 Running Test 09: Extract DDL from example Employee Database
3744
3745 Extracting Database Schema and Data
3746 SET SQL DIALECT 3;
3747 SET AUTODDL ON;
3748
3749 /* CREATE DATABASE 'localhost:employee' PAGE_SIZE 4096
3750
3751 DEFAULT CHARACTER SET NONE; */
3752
3753 /* Domain definitions */
3754
3755 CREATE DOMAIN ADDRESSLINE AS VARCHAR(30);
3756 CREATE DOMAIN BUDGET AS DECIMAL(12,2)
3757 DEFAULT 50000;
3758 CREATE DOMAIN COUNTRYNAME AS VARCHAR(15);
3759 CREATE DOMAIN CUSTNO AS INTEGER;
3760 CREATE DOMAIN DEPTNO AS CHAR(3);
3761 CREATE DOMAIN EMPNO AS SMALLINT;
3762 CREATE DOMAIN FIRSTNAME AS VARCHAR(15);
3763 CREATE DOMAIN JOBCODE AS VARCHAR(5);
3764 CREATE DOMAIN JOBGRADE AS SMALLINT;
3765 CREATE DOMAIN LASTNAME AS VARCHAR(20);
3766 CREATE DOMAIN PHONENUMBER AS VARCHAR(20);
3767 CREATE DOMAIN PONUMBER AS CHAR(8);
3768 CREATE DOMAIN PRODTYPE AS VARCHAR(12)
3769 DEFAULT 'software' NOT NULL;
3770 CREATE DOMAIN PROJNO AS CHAR(5);
3771 CREATE DOMAIN SALARY AS NUMERIC(10,2)
3772 DEFAULT 0;
3773
3774 /* Table: COUNTRY, Owner: SYSDBA */
3775
3776 CREATE TABLE COUNTRY
3777 (
3778 COUNTRY COUNTRYNAME NOT NULL,
3779 CURRENCY VARCHAR(10) NOT NULL,
3780 PRIMARY KEY (COUNTRY)
3781 );
3782
3783 /* Table: CUSTOMER, Owner: SYSDBA */
3784
3785 CREATE TABLE CUSTOMER
3786 (
3787 CUST_NO CUSTNO NOT NULL,
3788 CUSTOMER VARCHAR(25) NOT NULL,
3789 CONTACT_FIRST FIRSTNAME,
3790 CONTACT_LAST LASTNAME,
3791 PHONE_NO PHONENUMBER,
3792 ADDRESS_LINE1 ADDRESSLINE,
3793 ADDRESS_LINE2 ADDRESSLINE,
3794 CITY VARCHAR(25),
3795 STATE_PROVINCE VARCHAR(15),
3796 COUNTRY COUNTRYNAME,
3797 POSTAL_CODE VARCHAR(12),
3798 ON_HOLD CHAR(1) DEFAULT NULL,
3799 PRIMARY KEY (CUST_NO)
3800 );
3801
3802 /* Table: DEPARTMENT, Owner: SYSDBA */
3803
3804 CREATE TABLE DEPARTMENT
3805 (
3806 DEPT_NO DEPTNO NOT NULL,
3807 DEPARTMENT VARCHAR(25) NOT NULL,
3808 HEAD_DEPT DEPTNO,
3809 MNGR_NO EMPNO,
3810 BUDGET BUDGET,
3811 LOCATION VARCHAR(15),
3812 PHONE_NO PHONENUMBER DEFAULT '555-1234',
3813 UNIQUE (DEPARTMENT),
3814 PRIMARY KEY (DEPT_NO)
3815 );
3816
3817 /* Table: EMPLOYEE, Owner: SYSDBA */
3818
3819 CREATE TABLE EMPLOYEE
3820 (
3821 EMP_NO EMPNO NOT NULL,
3822 FIRST_NAME FIRSTNAME NOT NULL,
3823 LAST_NAME LASTNAME NOT NULL,
3824 PHONE_EXT VARCHAR(4),
3825 HIRE_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
3826 DEPT_NO DEPTNO NOT NULL,
3827 JOB_CODE JOBCODE NOT NULL,
3828 JOB_GRADE JOBGRADE NOT NULL,
3829 JOB_COUNTRY COUNTRYNAME NOT NULL,
3830 SALARY SALARY NOT NULL,
3831 FULL_NAME COMPUTED BY (last_name || ', ' || first_name),
3832 PRIMARY KEY (EMP_NO)
3833 );
3834
3835 /* Table: EMPLOYEE_PROJECT, Owner: SYSDBA */
3836
3837 CREATE TABLE EMPLOYEE_PROJECT
3838 (
3839 EMP_NO EMPNO NOT NULL,
3840 PROJ_ID PROJNO NOT NULL,
3841 PRIMARY KEY (EMP_NO, PROJ_ID)
3842 );
3843
3844 /* Table: JOB, Owner: SYSDBA */
3845
3846 CREATE TABLE JOB
3847 (
3848 JOB_CODE JOBCODE NOT NULL,
3849 JOB_GRADE JOBGRADE NOT NULL,
3850 JOB_COUNTRY COUNTRYNAME NOT NULL,
3851 JOB_TITLE VARCHAR(25) NOT NULL,
3852 MIN_SALARY SALARY NOT NULL,
3853 MAX_SALARY SALARY NOT NULL,
3854 JOB_REQUIREMENT BLOB SUB_TYPE TEXT SEGMENT SIZE 400,
3855 LANGUAGE_REQ VARCHAR(15)[1:5],
3856 PRIMARY KEY (JOB_CODE, JOB_GRADE, JOB_COUNTRY)
3857 );
3858
3859 /* Table: PROJECT, Owner: SYSDBA */
3860
3861 CREATE TABLE PROJECT
3862 (
3863 PROJ_ID PROJNO NOT NULL,
3864 PROJ_NAME VARCHAR(20) NOT NULL,
3865 PROJ_DESC BLOB SUB_TYPE TEXT SEGMENT SIZE 800,
3866 TEAM_LEADER EMPNO,
3867 PRODUCT PRODTYPE,
3868 UNIQUE (PROJ_NAME),
3869 PRIMARY KEY (PROJ_ID)
3870 );
3871
3872 /* Table: PROJ_DEPT_BUDGET, Owner: SYSDBA */
3873
3874 CREATE TABLE PROJ_DEPT_BUDGET
3875 (
3876 FISCAL_YEAR INTEGER NOT NULL,
3877 PROJ_ID PROJNO NOT NULL,
3878 DEPT_NO DEPTNO NOT NULL,
3879 QUART_HEAD_CNT INTEGER[1:4],
3880 PROJECTED_BUDGET BUDGET,
3881 PRIMARY KEY (FISCAL_YEAR, PROJ_ID, DEPT_NO)
3882 );
3883
3884 /* Table: SALARY_HISTORY, Owner: SYSDBA */
3885
3886 CREATE TABLE SALARY_HISTORY
3887 (
3888 EMP_NO EMPNO NOT NULL,
3889 CHANGE_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
3890 UPDATER_ID VARCHAR(20) NOT NULL,
3891 OLD_SALARY SALARY NOT NULL,
3892 PERCENT_CHANGE DOUBLE PRECISION DEFAULT 0 NOT NULL,
3893 NEW_SALARY COMPUTED BY (old_salary + old_salary * percent_change / 100),
3894 PRIMARY KEY (EMP_NO, CHANGE_DATE, UPDATER_ID)
3895 );
3896
3897 /* Table: SALES, Owner: SYSDBA */
3898
3899 CREATE TABLE SALES
3900 (
3901 PO_NUMBER PONUMBER NOT NULL,
3902 CUST_NO CUSTNO NOT NULL,
3903 SALES_REP EMPNO,
3904 ORDER_STATUS VARCHAR(7) DEFAULT 'new' NOT NULL,
3905 ORDER_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
3906 SHIP_DATE TIMESTAMP,
3907 DATE_NEEDED TIMESTAMP,
3908 PAID CHAR(1) DEFAULT 'n',
3909 QTY_ORDERED INTEGER DEFAULT 1 NOT NULL,
3910 TOTAL_VALUE DECIMAL(9,2) NOT NULL,
3911 DISCOUNT FLOAT DEFAULT 0 NOT NULL,
3912 ITEM_TYPE PRODTYPE,
3913 AGED COMPUTED BY (ship_date - order_date),
3914 PRIMARY KEY (PO_NUMBER)
3915 );
3916
3917 /* Index definitions for all user tables */
3918
3919 CREATE INDEX CUSTNAMEX ON CUSTOMER(CUSTOMER);
3920 CREATE INDEX CUSTREGION ON CUSTOMER(COUNTRY, CITY);
3921 CREATE DESCENDING INDEX BUDGETX ON DEPARTMENT(BUDGET);
3922 CREATE INDEX NAMEX ON EMPLOYEE(LAST_NAME, FIRST_NAME);
3923 CREATE DESCENDING INDEX MAXSALX ON JOB(JOB_COUNTRY, MAX_SALARY);
3924 CREATE INDEX MINSALX ON JOB(JOB_COUNTRY, MIN_SALARY);
3925 CREATE UNIQUE INDEX PRODTYPEX ON PROJECT(PRODUCT, PROJ_NAME);
3926 CREATE DESCENDING INDEX CHANGEX ON SALARY_HISTORY(CHANGE_DATE);
3927 CREATE INDEX UPDATERX ON SALARY_HISTORY(UPDATER_ID);
3928 CREATE INDEX NEEDX ON SALES(DATE_NEEDED);
3929 CREATE DESCENDING INDEX QTYX ON SALES(ITEM_TYPE, QTY_ORDERED);
3930 CREATE INDEX SALESTATX ON SALES(ORDER_STATUS, PAID);
3931 ALTER TABLE CUSTOMER ADD FOREIGN KEY (COUNTRY) REFERENCES COUNTRY (COUNTRY);
3932 ALTER TABLE DEPARTMENT ADD FOREIGN KEY (HEAD_DEPT) REFERENCES DEPARTMENT (DEPT_NO);
3933 ALTER TABLE DEPARTMENT ADD FOREIGN KEY (MNGR_NO) REFERENCES EMPLOYEE (EMP_NO);
3934 ALTER TABLE EMPLOYEE ADD FOREIGN KEY (DEPT_NO) REFERENCES DEPARTMENT (DEPT_NO);
3935 ALTER TABLE EMPLOYEE ADD FOREIGN KEY (JOB_CODE, JOB_GRADE, JOB_COUNTRY) REFERENCES JOB (JOB_CODE, JOB_GRADE, JOB_COUNTRY);
3936 ALTER TABLE EMPLOYEE_PROJECT ADD FOREIGN KEY (EMP_NO) REFERENCES EMPLOYEE (EMP_NO);
3937 ALTER TABLE EMPLOYEE_PROJECT ADD FOREIGN KEY (PROJ_ID) REFERENCES PROJECT (PROJ_ID);
3938 ALTER TABLE JOB ADD FOREIGN KEY (JOB_COUNTRY) REFERENCES COUNTRY (COUNTRY);
3939 ALTER TABLE PROJECT ADD FOREIGN KEY (TEAM_LEADER) REFERENCES EMPLOYEE (EMP_NO);
3940 ALTER TABLE PROJ_DEPT_BUDGET ADD FOREIGN KEY (DEPT_NO) REFERENCES DEPARTMENT (DEPT_NO);
3941 ALTER TABLE PROJ_DEPT_BUDGET ADD FOREIGN KEY (PROJ_ID) REFERENCES PROJECT (PROJ_ID);
3942 ALTER TABLE SALARY_HISTORY ADD FOREIGN KEY (EMP_NO) REFERENCES EMPLOYEE (EMP_NO);
3943 ALTER TABLE SALES ADD FOREIGN KEY (CUST_NO) REFERENCES CUSTOMER (CUST_NO);
3944 ALTER TABLE SALES ADD FOREIGN KEY (SALES_REP) REFERENCES EMPLOYEE (EMP_NO);
3945
3946 CREATE SEQUENCE CUST_NO_GEN;
3947 CREATE SEQUENCE EMP_NO_GEN;
3948
3949 /* View: PHONE_LIST, Owner: SYSDBA */
3950
3951 CREATE VIEW PHONE_LIST (
3952 EMP_NO,
3953 FIRST_NAME,
3954 LAST_NAME,
3955 PHONE_EXT,
3956 LOCATION,
3957 PHONE_NO
3958 ) AS
3959 SELECT
3960 emp_no, first_name, last_name, phone_ext, location, phone_no
3961 FROM employee, department
3962 WHERE employee.dept_no = department.dept_no
3963 ;
3964
3965 /* Add Domain Check Constraints */
3966
3967
3968 ALTER DOMAIN BUDGET ADD CONSTRAINT
3969 CHECK (VALUE > 10000 AND VALUE <= 2000000);
3970
3971 ALTER DOMAIN CUSTNO ADD CONSTRAINT
3972 CHECK (VALUE > 1000);
3973 ALTER DOMAIN DEPTNO ADD CONSTRAINT
3974 CHECK (VALUE = '000' OR (VALUE > '0' AND VALUE <= '999') OR VALUE IS NULL);
3975
3976
3977 ALTER DOMAIN JOBCODE ADD CONSTRAINT
3978 CHECK (VALUE > '99999');
3979 ALTER DOMAIN JOBGRADE ADD CONSTRAINT
3980 CHECK (VALUE BETWEEN 0 AND 6);
3981
3982
3983 ALTER DOMAIN PONUMBER ADD CONSTRAINT
3984 CHECK (VALUE STARTING WITH 'V');
3985 ALTER DOMAIN PRODTYPE ADD CONSTRAINT
3986 CHECK (VALUE IN ('software', 'hardware', 'other', 'N/A'));
3987 ALTER DOMAIN PROJNO ADD CONSTRAINT
3988 CHECK (VALUE = UPPER (VALUE));
3989 ALTER DOMAIN SALARY ADD CONSTRAINT
3990 CHECK (VALUE > 0);
3991 ALTER TABLE JOB ADD
3992 CHECK (min_salary < max_salary);
3993
3994 ALTER TABLE EMPLOYEE ADD
3995 CHECK ( salary >= (SELECT min_salary FROM job WHERE
3996 job.job_code = employee.job_code AND
3997 job.job_grade = employee.job_grade AND
3998 job.job_country = employee.job_country) AND
3999 salary <= (SELECT max_salary FROM job WHERE
4000 job.job_code = employee.job_code AND
4001 job.job_grade = employee.job_grade AND
4002 job.job_country = employee.job_country));
4003
4004 ALTER TABLE PROJ_DEPT_BUDGET ADD
4005 CHECK (FISCAL_YEAR >= 1993);
4006
4007 ALTER TABLE SALARY_HISTORY ADD
4008 CHECK (percent_change between -50 and 50);
4009
4010 ALTER TABLE CUSTOMER ADD
4011 CHECK (on_hold IS NULL OR on_hold = '*');
4012
4013 ALTER TABLE SALES ADD
4014 CHECK (order_status in
4015 ('new', 'open', 'shipped', 'waiting'));
4016
4017 ALTER TABLE SALES ADD
4018 CHECK (ship_date >= order_date OR ship_date IS NULL);
4019
4020 ALTER TABLE SALES ADD
4021 CHECK (date_needed > order_date OR date_needed IS NULL);
4022
4023 ALTER TABLE SALES ADD
4024 CHECK (paid in ('y', 'n'));
4025
4026 ALTER TABLE SALES ADD
4027 CHECK (qty_ordered >= 1);
4028
4029 ALTER TABLE SALES ADD
4030 CHECK (total_value >= 0);
4031
4032 ALTER TABLE SALES ADD
4033 CHECK (discount >= 0 AND discount <= 1);
4034
4035 ALTER TABLE SALES ADD
4036 CHECK (NOT (order_status = 'shipped' AND ship_date IS NULL));
4037
4038 ALTER TABLE SALES ADD
4039 CHECK (NOT (order_status = 'shipped' AND
4040 EXISTS (SELECT on_hold FROM customer
4041 WHERE customer.cust_no = sales.cust_no
4042 AND customer.on_hold = '*')));
4043
4044
4045 /* Exceptions */
4046
4047 CREATE EXCEPTION CUSTOMER_CHECK 'Overdue balance -- can not ship.';
4048 CREATE EXCEPTION CUSTOMER_ON_HOLD 'This customer is on hold.';
4049 CREATE EXCEPTION ORDER_ALREADY_SHIPPED 'Order status is "shipped."';
4050 CREATE EXCEPTION REASSIGN_SALES 'Reassign the sales records before deleting this employee.';
4051 CREATE EXCEPTION UNKNOWN_EMP_ID 'Invalid employee number or project id.';
4052 COMMIT WORK;
4053 SET AUTODDL OFF;
4054 SET TERM ^;
4055
4056 /* Stored procedures Definitions*/
4057
4058 CREATE PROCEDURE SHOW_LANGS
4059 (
4060 CODE VARCHAR(5) CHARACTER SET NONE,
4061 GRADE SMALLINT,
4062 CTY VARCHAR(15) CHARACTER SET NONE
4063 )
4064 RETURNS
4065 (
4066 LANGUAGES VARCHAR(15) CHARACTER SET NONE
4067 )
4068 AS
4069 BEGIN SUSPEND; EXIT; END
4070 ^
4071
4072 CREATE PROCEDURE ADD_EMP_PROJ
4073 (
4074 EMP_NO SMALLINT,
4075 PROJ_ID CHAR(5) CHARACTER SET NONE
4076 )
4077 AS
4078 BEGIN SUSPEND; EXIT; END
4079 ^
4080
4081 CREATE PROCEDURE ALL_LANGS
4082 RETURNS
4083 (
4084 CODE VARCHAR(5) CHARACTER SET NONE,
4085 GRADE VARCHAR(5) CHARACTER SET NONE,
4086 COUNTRY VARCHAR(15) CHARACTER SET NONE,
4087 LANG VARCHAR(15) CHARACTER SET NONE
4088 )
4089 AS
4090 BEGIN SUSPEND; EXIT; END
4091 ^
4092
4093 CREATE PROCEDURE DELETE_EMPLOYEE
4094 (
4095 EMP_NUM INTEGER
4096 )
4097 AS
4098 BEGIN SUSPEND; EXIT; END
4099 ^
4100
4101 CREATE PROCEDURE DEPT_BUDGET
4102 (
4103 DNO CHAR(3) CHARACTER SET NONE
4104 )
4105 RETURNS
4106 (
4107 TOT DECIMAL(12,2)
4108 )
4109 AS
4110 BEGIN SUSPEND; EXIT; END
4111 ^
4112
4113 CREATE PROCEDURE GET_EMP_PROJ
4114 (
4115 EMP_NO SMALLINT
4116 )
4117 RETURNS
4118 (
4119 PROJ_ID CHAR(5) CHARACTER SET NONE
4120 )
4121 AS
4122 BEGIN SUSPEND; EXIT; END
4123 ^
4124
4125 CREATE PROCEDURE MAIL_LABEL
4126 (
4127 CUST_NO INTEGER
4128 )
4129 RETURNS
4130 (
4131 LINE1 CHAR(40) CHARACTER SET NONE,
4132 LINE2 CHAR(40) CHARACTER SET NONE,
4133 LINE3 CHAR(40) CHARACTER SET NONE,
4134 LINE4 CHAR(40) CHARACTER SET NONE,
4135 LINE5 CHAR(40) CHARACTER SET NONE,
4136 LINE6 CHAR(40) CHARACTER SET NONE
4137 )
4138 AS
4139 BEGIN SUSPEND; EXIT; END
4140 ^
4141
4142 CREATE PROCEDURE ORG_CHART
4143 RETURNS
4144 (
4145 HEAD_DEPT CHAR(25) CHARACTER SET NONE,
4146 DEPARTMENT CHAR(25) CHARACTER SET NONE,
4147 MNGR_NAME CHAR(20) CHARACTER SET NONE,
4148 TITLE CHAR(5) CHARACTER SET NONE,
4149 EMP_CNT INTEGER
4150 )
4151 AS
4152 BEGIN SUSPEND; EXIT; END
4153 ^
4154
4155 CREATE PROCEDURE SHIP_ORDER
4156 (
4157 PO_NUM CHAR(8) CHARACTER SET NONE
4158 )
4159 AS
4160 BEGIN SUSPEND; EXIT; END
4161 ^
4162
4163 CREATE PROCEDURE SUB_TOT_BUDGET
4164 (
4165 HEAD_DEPT CHAR(3) CHARACTER SET NONE
4166 )
4167 RETURNS
4168 (
4169 TOT_BUDGET DECIMAL(12,2),
4170 AVG_BUDGET DECIMAL(12,2),
4171 MIN_BUDGET DECIMAL(12,2),
4172 MAX_BUDGET DECIMAL(12,2)
4173 )
4174 AS
4175 BEGIN SUSPEND; EXIT; END
4176 ^
4177
4178 SET TERM ;^
4179 COMMIT WORK;
4180 SET AUTODDL ON;
4181 SET TERM ^;
4182
4183
4184 /* Triggers only will work for SQL triggers */
4185
4186 CREATE TRIGGER SET_CUST_NO FOR CUSTOMER
4187 ACTIVE BEFORE INSERT POSITION 0
4188 AS
4189 BEGIN
4190 if (new.cust_no is null) then
4191 new.cust_no = gen_id(cust_no_gen, 1);
4192 END
4193 ^
4194
4195 CREATE TRIGGER SET_EMP_NO FOR EMPLOYEE
4196 ACTIVE BEFORE INSERT POSITION 0
4197 AS
4198 BEGIN
4199 if (new.emp_no is null) then
4200 new.emp_no = gen_id(emp_no_gen, 1);
4201 END
4202 ^
4203
4204 CREATE TRIGGER SAVE_SALARY_CHANGE FOR EMPLOYEE
4205 ACTIVE AFTER UPDATE POSITION 0
4206 AS
4207 BEGIN
4208 IF (old.salary <> new.salary) THEN
4209 INSERT INTO salary_history
4210 (emp_no, change_date, updater_id, old_salary, percent_change)
4211 VALUES (
4212 old.emp_no,
4213 'NOW',
4214 user,
4215 old.salary,
4216 (new.salary - old.salary) * 100 / old.salary);
4217 END
4218 ^
4219
4220 CREATE TRIGGER POST_NEW_ORDER FOR SALES
4221 ACTIVE AFTER INSERT POSITION 0
4222 AS
4223 BEGIN
4224 POST_EVENT 'new_order';
4225 END
4226 ^
4227
4228 COMMIT WORK^
4229 SET TERM ;^
4230 COMMIT WORK;
4231 SET AUTODDL OFF;
4232 SET TERM ^;
4233
4234 /* Stored procedure Bodies */
4235
4236 ALTER PROCEDURE SHOW_LANGS
4237 (
4238 CODE VARCHAR(5) CHARACTER SET NONE,
4239 GRADE SMALLINT,
4240 CTY VARCHAR(15) CHARACTER SET NONE
4241 )
4242 RETURNS
4243 (
4244 LANGUAGES VARCHAR(15) CHARACTER SET NONE
4245 )
4246 AS
4247 DECLARE VARIABLE i INTEGER;
4248 BEGIN
4249 i = 1;
4250 WHILE (i <= 5) DO
4251 BEGIN
4252 SELECT language_req[:i] FROM joB
4253 WHERE ((job_code = :code) AND (job_grade = :grade) AND (job_country = :cty)
4254 AND (language_req IS NOT NULL))
4255 INTO :languages;
4256 IF (languages = ' ') THEN /* Prints 'NULL' instead of blanks */
4257 languages = 'NULL';
4258 i = i +1;
4259 SUSPEND;
4260 END
4261 END
4262 ^
4263
4264 ALTER PROCEDURE ADD_EMP_PROJ
4265 (
4266 EMP_NO SMALLINT,
4267 PROJ_ID CHAR(5) CHARACTER SET NONE
4268 )
4269 AS
4270 BEGIN
4271 BEGIN
4272 INSERT INTO employee_project (emp_no, proj_id) VALUES (:emp_no, :proj_id);
4273 WHEN SQLCODE -530 DO
4274 EXCEPTION unknown_emp_id;
4275 END
4276 SUSPEND;
4277 END
4278 ^
4279
4280 ALTER PROCEDURE ALL_LANGS
4281 RETURNS
4282 (
4283 CODE VARCHAR(5) CHARACTER SET NONE,
4284 GRADE VARCHAR(5) CHARACTER SET NONE,
4285 COUNTRY VARCHAR(15) CHARACTER SET NONE,
4286 LANG VARCHAR(15) CHARACTER SET NONE
4287 )
4288 AS
4289 BEGIN
4290 FOR SELECT job_code, job_grade, job_country FROM job
4291 INTO :code, :grade, :country
4292
4293 DO
4294 BEGIN
4295 FOR SELECT languages FROM show_langs
4296 (:code, :grade, :country) INTO :lang DO
4297 SUSPEND;
4298 /* Put nice separators between rows */
4299 code = '=====';
4300 grade = '=====';
4301 country = '===============';
4302 lang = '==============';
4303 SUSPEND;
4304 END
4305 END
4306 ^
4307
4308 ALTER PROCEDURE DELETE_EMPLOYEE
4309 (
4310 EMP_NUM INTEGER
4311 )
4312 AS
4313 DECLARE VARIABLE any_sales INTEGER;
4314 BEGIN
4315 any_sales = 0;
4316
4317 /*
4318 * If there are any sales records referencing this employee,
4319 * can't delete the employee until the sales are re-assigned
4320 * to another employee or changed to NULL.
4321 */
4322 SELECT count(po_number)
4323 FROM sales
4324 WHERE sales_rep = :emp_num
4325 INTO :any_sales;
4326
4327 IF (any_sales > 0) THEN
4328 BEGIN
4329 EXCEPTION reassign_sales;
4330 SUSPEND;
4331 END
4332
4333 /*
4334 * If the employee is a manager, update the department.
4335 */
4336 UPDATE department
4337 SET mngr_no = NULL
4338 WHERE mngr_no = :emp_num;
4339
4340 /*
4341 * If the employee is a project leader, update project.
4342 */
4343 UPDATE project
4344 SET team_leader = NULL
4345 WHERE team_leader = :emp_num;
4346
4347 /*
4348 * Delete the employee from any projects.
4349 */
4350 DELETE FROM employee_project
4351 WHERE emp_no = :emp_num;
4352
4353 /*
4354 * Delete old salary records.
4355 */
4356 DELETE FROM salary_history
4357 WHERE emp_no = :emp_num;
4358
4359 /*
4360 * Delete the employee.
4361 */
4362 DELETE FROM employee
4363 WHERE emp_no = :emp_num;
4364
4365 SUSPEND;
4366 END
4367 ^
4368
4369 ALTER PROCEDURE DEPT_BUDGET
4370 (
4371 DNO CHAR(3) CHARACTER SET NONE
4372 )
4373 RETURNS
4374 (
4375 TOT DECIMAL(12,2)
4376 )
4377 AS
4378 DECLARE VARIABLE sumb DECIMAL(12, 2);
4379 DECLARE VARIABLE rdno CHAR(3);
4380 DECLARE VARIABLE cnt INTEGER;
4381 BEGIN
4382 tot = 0;
4383
4384 SELECT budget FROM department WHERE dept_no = :dno INTO :tot;
4385
4386 SELECT count(budget) FROM department WHERE head_dept = :dno INTO :cnt;
4387
4388 IF (cnt = 0) THEN
4389 SUSPEND;
4390
4391 FOR SELECT dept_no
4392 FROM department
4393 WHERE head_dept = :dno
4394 INTO :rdno
4395 DO
4396 BEGIN
4397 EXECUTE PROCEDURE dept_budget :rdno RETURNING_VALUES :sumb;
4398 tot = tot + sumb;
4399 END
4400
4401 SUSPEND;
4402 END
4403 ^
4404
4405 ALTER PROCEDURE GET_EMP_PROJ
4406 (
4407 EMP_NO SMALLINT
4408 )
4409 RETURNS
4410 (
4411 PROJ_ID CHAR(5) CHARACTER SET NONE
4412 )
4413 AS
4414 BEGIN
4415 FOR SELECT proj_id
4416 FROM employee_project
4417 WHERE emp_no = :emp_no
4418 INTO :proj_id
4419 DO
4420 SUSPEND;
4421 END
4422 ^
4423
4424 ALTER PROCEDURE MAIL_LABEL
4425 (
4426 CUST_NO INTEGER
4427 )
4428 RETURNS
4429 (
4430 LINE1 CHAR(40) CHARACTER SET NONE,
4431 LINE2 CHAR(40) CHARACTER SET NONE,
4432 LINE3 CHAR(40) CHARACTER SET NONE,
4433 LINE4 CHAR(40) CHARACTER SET NONE,
4434 LINE5 CHAR(40) CHARACTER SET NONE,
4435 LINE6 CHAR(40) CHARACTER SET NONE
4436 )
4437 AS
4438 DECLARE VARIABLE customer VARCHAR(25);
4439 DECLARE VARIABLE first_name VARCHAR(15);
4440 DECLARE VARIABLE last_name VARCHAR(20);
4441 DECLARE VARIABLE addr1 VARCHAR(30);
4442 DECLARE VARIABLE addr2 VARCHAR(30);
4443 DECLARE VARIABLE city VARCHAR(25);
4444 DECLARE VARIABLE state VARCHAR(15);
4445 DECLARE VARIABLE country VARCHAR(15);
4446 DECLARE VARIABLE postcode VARCHAR(12);
4447 DECLARE VARIABLE cnt INTEGER;
4448 BEGIN
4449 line1 = '';
4450 line2 = '';
4451 line3 = '';
4452 line4 = '';
4453 line5 = '';
4454 line6 = '';
4455
4456 SELECT customer, contact_first, contact_last, address_line1,
4457 address_line2, city, state_province, country, postal_code
4458 FROM CUSTOMER
4459 WHERE cust_no = :cust_no
4460 INTO :customer, :first_name, :last_name, :addr1, :addr2,
4461 :city, :state, :country, :postcode;
4462
4463 IF (customer IS NOT NULL) THEN
4464 line1 = customer;
4465 IF (first_name IS NOT NULL) THEN
4466 line2 = first_name || ' ' || last_name;
4467 ELSE
4468 line2 = last_name;
4469 IF (addr1 IS NOT NULL) THEN
4470 line3 = addr1;
4471 IF (addr2 IS NOT NULL) THEN
4472 line4 = addr2;
4473
4474 IF (country = 'USA') THEN
4475 BEGIN
4476 IF (city IS NOT NULL) THEN
4477 line5 = city || ', ' || state || ' ' || postcode;
4478 ELSE
4479 line5 = state || ' ' || postcode;
4480 END
4481 ELSE
4482 BEGIN
4483 IF (city IS NOT NULL) THEN
4484 line5 = city || ', ' || state;
4485 ELSE
4486 line5 = state;
4487 line6 = country || ' ' || postcode;
4488 END
4489
4490 SUSPEND;
4491 END
4492 ^
4493
4494 ALTER PROCEDURE ORG_CHART
4495 RETURNS
4496 (
4497 HEAD_DEPT CHAR(25) CHARACTER SET NONE,
4498 DEPARTMENT CHAR(25) CHARACTER SET NONE,
4499 MNGR_NAME CHAR(20) CHARACTER SET NONE,
4500 TITLE CHAR(5) CHARACTER SET NONE,
4501 EMP_CNT INTEGER
4502 )
4503 AS
4504 DECLARE VARIABLE mngr_no INTEGER;
4505 DECLARE VARIABLE dno CHAR(3);
4506 BEGIN
4507 FOR SELECT h.department, d.department, d.mngr_no, d.dept_no
4508 FROM department d
4509 LEFT OUTER JOIN department h ON d.head_dept = h.dept_no
4510 ORDER BY d.dept_no
4511 INTO :head_dept, :department, :mngr_no, :dno
4512 DO
4513 BEGIN
4514 IF (:mngr_no IS NULL) THEN
4515 BEGIN
4516 mngr_name = '--TBH--';
4517 title = '';
4518 END
4519
4520 ELSE
4521 SELECT full_name, job_code
4522 FROM employee
4523 WHERE emp_no = :mngr_no
4524 INTO :mngr_name, :title;
4525
4526 SELECT COUNT(emp_no)
4527 FROM employee
4528 WHERE dept_no = :dno
4529 INTO :emp_cnt;
4530
4531 SUSPEND;
4532 END
4533 END
4534 ^
4535
4536 ALTER PROCEDURE SHIP_ORDER
4537 (
4538 PO_NUM CHAR(8) CHARACTER SET NONE
4539 )
4540 AS
4541 DECLARE VARIABLE ord_stat CHAR(7);
4542 DECLARE VARIABLE hold_stat CHAR(1);
4543 DECLARE VARIABLE cust_no INTEGER;
4544 DECLARE VARIABLE any_po CHAR(8);
4545 BEGIN
4546 SELECT s.order_status, c.on_hold, c.cust_no
4547 FROM sales s, customer c
4548 WHERE po_number = :po_num
4549 AND s.cust_no = c.cust_no
4550 INTO :ord_stat, :hold_stat, :cust_no;
4551
4552 /* This purchase order has been already shipped. */
4553 IF (ord_stat = 'shipped') THEN
4554 BEGIN
4555 EXCEPTION order_already_shipped;
4556 SUSPEND;
4557 END
4558
4559 /* Customer is on hold. */
4560 ELSE IF (hold_stat = '*') THEN
4561 BEGIN
4562 EXCEPTION customer_on_hold;
4563 SUSPEND;
4564 END
4565
4566 /*
4567 * If there is an unpaid balance on orders shipped over 2 months ago,
4568 * put the customer on hold.
4569 */
4570 FOR SELECT po_number
4571 FROM sales
4572 WHERE cust_no = :cust_no
4573 AND order_status = 'shipped'
4574 AND paid = 'n'
4575 AND ship_date < CAST('NOW' AS TIMESTAMP) - 60
4576 INTO :any_po
4577 DO
4578 BEGIN
4579 EXCEPTION customer_check;
4580
4581 UPDATE customer
4582 SET on_hold = '*'
4583 WHERE cust_no = :cust_no;
4584
4585 SUSPEND;
4586 END
4587
4588 /*
4589 * Ship the order.
4590 */
4591 UPDATE sales
4592 SET order_status = 'shipped', ship_date = 'NOW'
4593 WHERE po_number = :po_num;
4594
4595 SUSPEND;
4596 END
4597 ^
4598
4599 ALTER PROCEDURE SUB_TOT_BUDGET
4600 (
4601 HEAD_DEPT CHAR(3) CHARACTER SET NONE
4602 )
4603 RETURNS
4604 (
4605 TOT_BUDGET DECIMAL(12,2),
4606 AVG_BUDGET DECIMAL(12,2),
4607 MIN_BUDGET DECIMAL(12,2),
4608 MAX_BUDGET DECIMAL(12,2)
4609 )
4610 AS
4611 BEGIN
4612 SELECT SUM(budget), AVG(budget), MIN(budget), MAX(budget)
4613 FROM department
4614 WHERE head_dept = :head_dept
4615 INTO :tot_budget, :avg_budget, :min_budget, :max_budget;
4616 SUSPEND;
4617 END
4618 ^
4619
4620 SET TERM ;^
4621 COMMIT WORK;
4622 SET AUTODDL ON;
4623
4624 /* Comments on System Objects */
4625
4626
4627 /* Grant Roles for this database */
4628
4629
4630 /* Grant permissions for this database */
4631
4632 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE COUNTRY TO USER PUBLIC WITH GRANT OPTION ;
4633 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE CUSTOMER TO USER PUBLIC WITH GRANT OPTION ;
4634 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE DEPARTMENT TO USER PUBLIC WITH GRANT OPTION ;
4635 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE EMPLOYEE TO USER PUBLIC WITH GRANT OPTION ;
4636 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE EMPLOYEE_PROJECT TO USER PUBLIC WITH GRANT OPTION ;
4637 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE JOB TO USER PUBLIC WITH GRANT OPTION ;
4638 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE PHONE_LIST TO USER PUBLIC WITH GRANT OPTION ;
4639 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE PROJECT TO USER PUBLIC WITH GRANT OPTION ;
4640 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE PROJ_DEPT_BUDGET TO USER PUBLIC WITH GRANT OPTION ;
4641 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE SALARY_HISTORY TO USER PUBLIC WITH GRANT OPTION ;
4642 GRANT DELETE,INSERT,REFERENCES,SELECT,UPDATE ON TABLE SALES TO USER PUBLIC WITH GRANT OPTION ;
4643 GRANT EXECUTE ON PROCEDURE ADD_EMP_PROJ TO USER PUBLIC WITH GRANT OPTION ;
4644 GRANT EXECUTE ON PROCEDURE ALL_LANGS TO USER PUBLIC WITH GRANT OPTION ;
4645 GRANT EXECUTE ON PROCEDURE DELETE_EMPLOYEE TO USER PUBLIC WITH GRANT OPTION ;
4646 GRANT EXECUTE ON PROCEDURE DEPT_BUDGET TO USER PUBLIC WITH GRANT OPTION ;
4647 GRANT EXECUTE ON PROCEDURE GET_EMP_PROJ TO USER PUBLIC WITH GRANT OPTION ;
4648 GRANT EXECUTE ON PROCEDURE MAIL_LABEL TO USER PUBLIC WITH GRANT OPTION ;
4649 GRANT EXECUTE ON PROCEDURE ORG_CHART TO USER PUBLIC WITH GRANT OPTION ;
4650 GRANT EXECUTE ON PROCEDURE SHIP_ORDER TO USER PUBLIC WITH GRANT OPTION ;
4651 GRANT EXECUTE ON PROCEDURE SHOW_LANGS TO USER PUBLIC WITH GRANT OPTION ;
4652 GRANT EXECUTE ON PROCEDURE SUB_TOT_BUDGET TO USER PUBLIC WITH GRANT OPTION ;
4653
4654
4655 ------------------------------------------------------
4656 Running Test 10: Create Database from SQL Script and Extract SQL
4657 Creating Database from resources/Test10.11.sql
4658
4659 /* Script for ODS 11 */
4660
4661 SET SQL DIALECT 3;
4662 SET AUTODDL ON;
4663
4664 CREATE DATABASE 'inet://localhost//tmp/ibx-testsuite/testsuite1.fdb' PAGE_SIZE 8192
4665
4666 DEFAULT CHARACTER SET NONE;
4667 COMMENT ON DATABASE IS 'Employee Test DB';
4668
4669 /* Domain definitions */
4670
4671 CREATE DOMAIN ADDRESSLINE AS VARCHAR(30);
4672 CREATE DOMAIN BUDGET AS DECIMAL(12,2)
4673 DEFAULT 50000;
4674 CREATE DOMAIN COUNTRYNAME AS VARCHAR(15);
4675 CREATE DOMAIN CUSTNO AS INTEGER;
4676 CREATE DOMAIN DEPTNO AS CHAR(3);
4677 CREATE DOMAIN EMPNO AS SMALLINT;
4678 CREATE DOMAIN FB$OUT_TYPE AS BLOB SUB_TYPE TEXT SEGMENT SIZE 80 NOT NULL;
4679 CREATE DOMAIN FIRSTNAME AS VARCHAR(15);
4680 CREATE DOMAIN JOBCODE AS VARCHAR(5);
4681 CREATE DOMAIN JOBGRADE AS SMALLINT;
4682 CREATE DOMAIN LASTNAME AS VARCHAR(20);
4683 CREATE DOMAIN PHONENUMBER AS VARCHAR(20);
4684 CREATE DOMAIN PONUMBER AS CHAR(8);
4685 CREATE DOMAIN PRODTYPE AS VARCHAR(12)
4686 DEFAULT 'software' NOT NULL;
4687 CREATE DOMAIN PROJNO AS CHAR(5);
4688 CREATE DOMAIN SALARY AS NUMERIC(10,2)
4689 DEFAULT 0;
4690
4691 /* Table: COUNTRIES, Owner: SYSDBA */
4692
4693 CREATE TABLE COUNTRIES
4694 (
4695 COUNTRY VARCHAR(64) NOT NULL,
4696 NONEU SMALLINT,
4697 ISO2 CHAR(2),
4698 ISO3 CHAR(3),
4699 PRIMARY KEY (COUNTRY)
4700 );
4701 COMMENT ON TABLE COUNTRIES IS 'List of Countries';
4702 COMMENT ON COLUMN COUNTRIES.ISO2 IS 'Two Character ISO Country Code';
4703
4704 /* Table: COUNTRY, Owner: SYSDBA */
4705
4706 CREATE TABLE COUNTRY
4707 (
4708 COUNTRY COUNTRYNAME NOT NULL,
4709 CURRENCY VARCHAR(10) NOT NULL,
4710 PRIMARY KEY (COUNTRY)
4711 );
4712
4713 /* Table: CUSTOMER, Owner: SYSDBA */
4714
4715 CREATE TABLE CUSTOMER
4716 (
4717 CUST_NO CUSTNO NOT NULL,
4718 CUSTOMER VARCHAR(25) NOT NULL,
4719 CONTACT_FIRST FIRSTNAME,
4720 CONTACT_LAST LASTNAME,
4721 PHONE_NO PHONENUMBER,
4722 ADDRESS_LINE1 ADDRESSLINE,
4723 ADDRESS_LINE2 ADDRESSLINE,
4724 CITY VARCHAR(25),
4725 STATE_PROVINCE VARCHAR(15),
4726 COUNTRY COUNTRYNAME,
4727 POSTAL_CODE VARCHAR(12),
4728 ON_HOLD CHAR(1) DEFAULT NULL,
4729 LONG_REFERENCE BIGINT,
4730 PRIMARY KEY (CUST_NO)
4731 );
4732
4733 /* Table: DEPARTMENT, Owner: SYSDBA */
4734
4735 CREATE TABLE DEPARTMENT
4736 (
4737 DEPT_NO DEPTNO NOT NULL,
4738 DEPARTMENT VARCHAR(25) NOT NULL,
4739 HEAD_DEPT DEPTNO,
4740 MNGR_NO EMPNO,
4741 BUDGET BUDGET,
4742 LOCATION VARCHAR(15),
4743 PHONE_NO PHONENUMBER DEFAULT '555-1234',
4744 UNIQUE (DEPARTMENT),
4745 PRIMARY KEY (DEPT_NO)
4746 );
4747
4748 /* Table: EMPLOYEE, Owner: SYSDBA */
4749
4750 CREATE TABLE EMPLOYEE
4751 (
4752 EMP_NO EMPNO NOT NULL,
4753 FIRST_NAME FIRSTNAME NOT NULL,
4754 LAST_NAME LASTNAME NOT NULL,
4755 PHONE_EXT VARCHAR(4),
4756 HIRE_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
4757 DEPT_NO DEPTNO NOT NULL,
4758 JOB_CODE JOBCODE NOT NULL,
4759 JOB_GRADE JOBGRADE NOT NULL,
4760 JOB_COUNTRY COUNTRYNAME NOT NULL,
4761 SALARY SALARY NOT NULL,
4762 FULL_NAME COMPUTED BY (last_name || ', ' || first_name),
4763 PRIMARY KEY (EMP_NO)
4764 );
4765
4766 /* Table: EMPLOYEE_PROJECT, Owner: SYSDBA */
4767
4768 CREATE TABLE EMPLOYEE_PROJECT
4769 (
4770 EMP_NO EMPNO NOT NULL,
4771 PROJ_ID PROJNO NOT NULL,
4772 PRIMARY KEY (EMP_NO, PROJ_ID)
4773 );
4774
4775 /* Table: FB$OUT_TABLE, Owner: SYSDBA */
4776
4777 CREATE GLOBAL TEMPORARY TABLE FB$OUT_TABLE
4778 (
4779 LINE_NUM INTEGER,
4780 CONTENT FB$OUT_TYPE
4781 ) ON COMMIT PRESERVE ROWS ;
4782
4783 /* Table: JOB, Owner: SYSDBA */
4784
4785 CREATE TABLE JOB
4786 (
4787 JOB_CODE JOBCODE NOT NULL,
4788 JOB_GRADE JOBGRADE NOT NULL,
4789 JOB_COUNTRY COUNTRYNAME NOT NULL,
4790 JOB_TITLE VARCHAR(25) NOT NULL,
4791 MIN_SALARY SALARY NOT NULL,
4792 MAX_SALARY SALARY NOT NULL,
4793 JOB_REQUIREMENT BLOB SUB_TYPE TEXT SEGMENT SIZE 400,
4794 LANGUAGE_REQ VARCHAR(15)[1:5],
4795 PRIMARY KEY (JOB_CODE, JOB_GRADE, JOB_COUNTRY)
4796 );
4797
4798 /* Table: PROJECT, Owner: SYSDBA */
4799
4800 CREATE TABLE PROJECT
4801 (
4802 PROJ_ID PROJNO NOT NULL,
4803 PROJ_NAME VARCHAR(20) NOT NULL,
4804 PROJ_DESC BLOB SUB_TYPE TEXT SEGMENT SIZE 800,
4805 TEAM_LEADER EMPNO,
4806 PRODUCT PRODTYPE,
4807 UNIQUE (PROJ_NAME),
4808 PRIMARY KEY (PROJ_ID)
4809 );
4810
4811 /* Table: PROJ_DEPT_BUDGET, Owner: SYSDBA */
4812
4813 CREATE TABLE PROJ_DEPT_BUDGET
4814 (
4815 FISCAL_YEAR INTEGER NOT NULL,
4816 PROJ_ID PROJNO NOT NULL,
4817 DEPT_NO DEPTNO NOT NULL,
4818 QUART_HEAD_CNT INTEGER[1:4],
4819 PROJECTED_BUDGET BUDGET,
4820 PRIMARY KEY (FISCAL_YEAR, PROJ_ID, DEPT_NO)
4821 );
4822
4823 /* Table: SALARY_HISTORY, Owner: SYSDBA */
4824
4825 CREATE TABLE SALARY_HISTORY
4826 (
4827 EMP_NO EMPNO NOT NULL,
4828 CHANGE_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
4829 UPDATER_ID VARCHAR(20) NOT NULL,
4830 OLD_SALARY SALARY NOT NULL,
4831 PERCENT_CHANGE DOUBLE PRECISION DEFAULT 0 NOT NULL,
4832 NEW_SALARY COMPUTED BY (old_salary + old_salary * percent_change / 100),
4833 PRIMARY KEY (EMP_NO, CHANGE_DATE, UPDATER_ID)
4834 );
4835
4836 /* Table: SALES, Owner: SYSDBA */
4837
4838 CREATE TABLE SALES
4839 (
4840 PO_NUMBER PONUMBER NOT NULL,
4841 CUST_NO CUSTNO NOT NULL,
4842 SALES_REP EMPNO,
4843 ORDER_STATUS VARCHAR(7) DEFAULT 'new' NOT NULL,
4844 ORDER_DATE TIMESTAMP DEFAULT 'NOW' NOT NULL,
4845 SHIP_DATE TIMESTAMP,
4846 DATE_NEEDED TIMESTAMP,
4847 PAID CHAR(1) DEFAULT 'n',
4848 QTY_ORDERED INTEGER DEFAULT 1 NOT NULL,
4849 TOTAL_VALUE DECIMAL(9,2) NOT NULL,
4850 DISCOUNT FLOAT DEFAULT 0 NOT NULL,
4851 ITEM_TYPE PRODTYPE,
4852 AGED COMPUTED BY (ship_date - order_date),
4853 PRIMARY KEY (PO_NUMBER)
4854 );
4855
4856 /* External Function declarations */
4857
4858 DECLARE EXTERNAL FUNCTION ADDDAY
4859 TIMESTAMP, INTEGER
4860 RETURNS TIMESTAMP
4861 ENTRY_POINT 'addDay' MODULE_NAME 'fbudf'
4862 ;
4863
4864
4865 DECLARE EXTERNAL FUNCTION I64TRUNCATE
4866 NUMERIC(18,0) BY DESCRIPTOR, NUMERIC(18,0) BY DESCRIPTOR
4867 RETURNS PARAMETER 2
4868 ENTRY_POINT 'fbtruncate' MODULE_NAME 'fbudf'
4869 ;
4870
4871
4872 DECLARE EXTERNAL FUNCTION TESTIT
4873 TIMESTAMP, INTEGER NULL, CSTRING(10) CHARACTER SET NONE, CSTRING(10) CHARACTER SET NONE BY DESCRIPTOR
4874 RETURNS CSTRING(32) CHARACTER SET NONE FREE_IT
4875 ENTRY_POINT 'testit' MODULE_NAME 'fbudf'
4876 ;
4877
4878
4879 /* Data Starts */
4880
4881 /* Inserting data into Table: COUNTRY */
4882
4883 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('USA','Dollar');
4884 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('England','Pound');
4885 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Canada','CdnDlr');
4886 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Switzerland','SFranc');
4887 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Japan','Yen');
4888 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Italy','Euro');
4889 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('France','Euro');
4890 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Germany','Euro');
4891 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Australia','ADollar');
4892 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Hong Kong','HKDollar');
4893 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Netherlands','Euro');
4894 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Belgium','Euro');
4895 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Austria','Euro');
4896 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Fiji','FDollar');
4897 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Russia','Ruble');
4898 INSERT INTO COUNTRY (COUNTRY,CURRENCY) VALUES('Romania','RLeu');
4899 COMMIT;
4900
4901 /* Inserting data into Table: CUSTOMER */
4902
4903 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1001,'Signature Design','Dale J.','Little','(619) 530-2710','15500 Pacific Heights Blvd.',NULL,'San Diego','CA','USA','92121',NULL,NULL);
4904 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1002,'Dallas Technologies','Glen','Brown','(214) 960-2233','P. O. Box 47000',NULL,'Dallas','TX','USA','75205','*',NULL);
4905 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1003,'Buttle, Griffith and Co.','James','Buttle','(617) 488-1864','2300 Newbury Street','Suite 101','Boston','MA','USA','02115',NULL,NULL);
4906 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1004,'Central Bank','Elizabeth','Brocket','61 211 99 88','66 Lloyd Street',NULL,'Manchester',NULL,'England','M2 3LA',NULL,NULL);
4907 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1005,'DT Systems, LTD.','Tai','Wu','(852) 850 43 98','400 Connaught Road',NULL,'Central Hong Kong',NULL,'Hong Kong',NULL,NULL,NULL);
4908 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1006,'DataServe International','Tomas','Bright','(613) 229 3323','2000 Carling Avenue','Suite 150','Ottawa','ON','Canada','K1V 9G1',NULL,NULL);
4909 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1007,'Mrs. Beauvais',NULL,'Mrs. Beauvais',NULL,'P.O. Box 22743',NULL,'Pebble Beach','CA','USA','93953',NULL,NULL);
4910 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1008,'Anini Vacation Rentals','Leilani','Briggs','(808) 835-7605','3320 Lawai Road',NULL,'Lihue','HI','USA','96766',NULL,NULL);
4911 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1009,'Max','Max',NULL,'22 01 23','1 Emerald Cove',NULL,'Turtle Island',NULL,'Fiji',NULL,'*',NULL);
4912 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1010,'MPM Corporation','Miwako','Miyamoto','3 880 77 19','2-64-7 Sasazuka',NULL,'Tokyo',NULL,'Japan','150',NULL,NULL);
4913 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1011,'Dynamic Intelligence Corp','Victor','Granges','01 221 16 50','Florhofgasse 10',NULL,'Zurich',NULL,'Switzerland','8005',NULL,NULL);
4914 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1012,'3D-Pad Corp.','Michelle','Roche','1 43 60 61','22 Place de la Concorde',NULL,'Paris',NULL,'France','75008',NULL,NULL);
4915 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1013,'Lorenzi Export, Ltd.','Andreas','Lorenzi','02 404 6284','Via Eugenia, 15',NULL,'Milan',NULL,'Italy','20124',NULL,NULL);
4916 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1014,'Dyno Consulting','Greta','Hessels','02 500 5940','Rue Royale 350',NULL,'Brussels',NULL,'Belgium','1210',NULL,NULL);
4917 INSERT INTO CUSTOMER (CUST_NO,CUSTOMER,CONTACT_FIRST,CONTACT_LAST,PHONE_NO,ADDRESS_LINE1,ADDRESS_LINE2,CITY,STATE_PROVINCE,COUNTRY,POSTAL_CODE,ON_HOLD,LONG_REFERENCE) VALUES(1015,'GeoTech Inc.','K.M.','Neppelenbroek','(070) 44 91 18','P.0.Box 702',NULL,'Den Haag',NULL,'Netherlands','2514',NULL,NULL);
4918 COMMIT;
4919
4920 /* Inserting data into Table: DEPARTMENT */
4921
4922 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('000','Corporate Headquarters',NULL,105,1000000,'Monterey','(408) 555-1234');
4923 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('100','Sales and Marketing','000',85,2000000,'San Francisco','(415) 555-1234');
4924 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('600','Engineering','000',2,1100000,'Monterey','(408) 555-1234');
4925 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('900','Finance','000',46,400000,'Monterey','(408) 555-1234');
4926 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('180','Marketing','100',NULL,1500000,'San Francisco','(415) 555-1234');
4927 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('620','Software Products Div.','600',NULL,1200000,'Monterey','(408) 555-1234');
4928 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('621','Software Development','620',NULL,400000,'Monterey','(408) 555-1234');
4929 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('622','Quality Assurance','620',9,300000,'Monterey','(408) 555-1234');
4930 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('623','Customer Support','620',15,650000,'Monterey','(408) 555-1234');
4931 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('670','Consumer Electronics Div.','600',107,1150000,'Burlington, VT','(802) 555-1234');
4932 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('671','Research and Development','670',20,460000,'Burlington, VT','(802) 555-1234');
4933 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('672','Customer Services','670',94,850000,'Burlington, VT','(802) 555-1234');
4934 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('130','Field Office: East Coast','100',11,500000,'Boston','(617) 555-1234');
4935 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('140','Field Office: Canada','100',72,500000,'Toronto','(416) 677-1000');
4936 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('110','Pacific Rim Headquarters','100',34,600000,'Kuaui','(808) 555-1234');
4937 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('115','Field Office: Japan','110',118,500000,'Tokyo','3 5350 0901');
4938 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('116','Field Office: Singapore','110',NULL,300000,'Singapore','3 55 1234');
4939 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('120','European Headquarters','100',36,700000,'London','71 235-4400');
4940 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('121','Field Office: Switzerland','120',141,500000,'Zurich','1 211 7767');
4941 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('123','Field Office: France','120',134,400000,'Cannes','58 68 11 12');
4942 INSERT INTO DEPARTMENT (DEPT_NO,DEPARTMENT,HEAD_DEPT,MNGR_NO,BUDGET,LOCATION,PHONE_NO) VALUES('125','Field Office: Italy','120',121,400000,'Milan','2 430 39 39');
4943 COMMIT;
4944
4945 /* Inserting data into Table: EMPLOYEE */
4946
4947 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(2,'Robert','Nelson','250','1988.12.28 00:00:00.000','600','VP',2,'USA',105900);
4948 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(4,'Bruce','Young','233','1988.12.28 00:00:00.000','621','Eng',2,'USA',97500);
4949 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(5,'Kim','Lambert','22','1989.02.06 00:00:00.000','130','Eng',2,'USA',102750);
4950 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(8,'Leslie','Johnson','410','1989.04.05 00:00:00.000','180','Mktg',3,'USA',64635);
4951 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(9,'Phil','Forest','229','1989.04.17 00:00:00.000','622','Mngr',3,'USA',75060);
4952 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(11,'K. J.','Weston','34','1990.01.17 00:00:00.000','130','SRep',4,'USA',86292.94);
4953 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(12,'Terri','Lee','256','1990.05.01 00:00:00.000','000','Admin',4,'USA',53793);
4954 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(14,'Stewart','Hall','227','1990.06.04 00:00:00.000','900','Finan',3,'USA',69482.63);
4955 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(15,'Katherine','Young','231','1990.06.14 00:00:00.000','623','Mngr',3,'USA',67241.25);
4956 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(20,'Chris','Papadopoulos','887','1990.01.01 00:00:00.000','671','Mngr',3,'USA',89655);
4957 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(24,'Pete','Fisher','888','1990.09.12 00:00:00.000','671','Eng',3,'USA',81810.19);
4958 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(28,'Ann','Bennet','5','1991.02.01 00:00:00.000','120','Admin',5,'England',22935);
4959 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(29,'Roger','De Souza','288','1991.02.18 00:00:00.000','623','Eng',3,'USA',69482.63);
4960 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(34,'Janet','Baldwin','2','1991.03.21 00:00:00.000','110','Sales',3,'USA',61637.8);
4961 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(36,'Roger','Reeves','6','1991.04.25 00:00:00.000','120','Sales',3,'England',33620.63);
4962 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(37,'Willie','Stansbury','7','1991.04.25 00:00:00.000','120','Eng',4,'England',39224.06);
4963 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(44,'Leslie','Phong','216','1991.06.03 00:00:00.000','623','Eng',4,'USA',56034.38);
4964 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(45,'Ashok','Ramanathan','209','1991.08.01 00:00:00.000','621','Eng',3,'USA',80689.5);
4965 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(46,'Walter','Steadman','210','1991.08.09 00:00:00.000','900','CFO',1,'USA',116100);
4966 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(52,'Carol','Nordstrom','420','1991.10.02 00:00:00.000','180','PRel',4,'USA',42742.5);
4967 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(61,'Luke','Leung','3','1992.02.18 00:00:00.000','110','SRep',4,'USA',68805);
4968 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(65,'Sue Anne','O''Brien','877','1992.03.23 00:00:00.000','670','Admin',5,'USA',31275);
4969 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(71,'Jennifer M.','Burbank','289','1992.04.15 00:00:00.000','622','Eng',3,'USA',53167.5);
4970 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(72,'Claudia','Sutherland',NULL,'1992.04.20 00:00:00.000','140','SRep',4,'Canada',100914);
4971 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(83,'Dana','Bishop','290','1992.06.02 00:00:00.000','621','Eng',3,'USA',62550.02);
4972 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(85,'Mary S.','MacDonald','477','1992.06.01 00:00:00.000','100','VP',2,'USA',111262.5);
4973 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(94,'Randy','Williams','892','1992.08.08 00:00:00.000','672','Mngr',4,'USA',56295);
4974 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(105,'Oliver H A','Bender','255','1992.10.08 00:00:00.000','000','CEO',1,'USA',212850);
4975 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(107,'Kevin','Cook','894','1993.02.01 00:00:00.000','670','Dir',2,'USA',111262.5);
4976 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(109,'Kelly','Brown','202','1993.02.04 00:00:00.000','600','Admin',5,'USA',27000.01);
4977 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(110,'Yuki','Ichida','22','1993.02.04 00:00:00.000','115','Eng',3,'Japan',6000000);
4978 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(113,'Mary','Page','845','1993.04.12 00:00:00.000','671','Eng',4,'USA',48000);
4979 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(114,'Bill','Parker','247','1993.06.01 00:00:00.000','623','Eng',5,'USA',35000);
4980 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(118,'Takashi','Yamamoto','23','1993.07.01 00:00:00.000','115','SRep',4,'Japan',7480000);
4981 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(121,'Roberto','Ferrari','1','1993.07.12 00:00:00.000','125','SRep',4,'USA',33000.01);
4982 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(127,'Michael','Yanowski','492','1993.08.09 00:00:00.000','100','SRep',4,'USA',44000);
4983 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(134,'Jacques','Glon',NULL,'1993.08.23 00:00:00.000','123','SRep',4,'France',38500);
4984 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(136,'Scott','Johnson','265','1993.09.13 00:00:00.000','623','Doc',3,'USA',60000);
4985 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(138,'T.J.','Green','218','1993.11.01 00:00:00.000','621','Eng',4,'USA',36000);
4986 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(141,'Pierre','Osborne',NULL,'1994.01.03 00:00:00.000','121','SRep',4,'Switzerland',110000);
4987 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(144,'John','Montgomery','820','1994.03.30 00:00:00.000','672','Eng',5,'USA',35000);
4988 INSERT INTO EMPLOYEE (EMP_NO,FIRST_NAME,LAST_NAME,PHONE_EXT,HIRE_DATE,DEPT_NO,JOB_CODE,JOB_GRADE,JOB_COUNTRY,SALARY) VALUES(145,'Mark','Guckenheimer','221','1994.05.02 00:00:00.000','622','Eng',5,'USA',32000);
4989 COMMIT;
4990
4991 /* Inserting data into Table: EMPLOYEE_PROJECT */
4992
4993 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(144,'DGPII');
4994 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(113,'DGPII');
4995 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(24,'DGPII');
4996 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(8,'VBASE');
4997 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(136,'VBASE');
4998 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(15,'VBASE');
4999 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(71,'VBASE');
5000 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(145,'VBASE');
5001 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(44,'VBASE');
5002 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(4,'VBASE');
5003 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(83,'VBASE');
5004 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(138,'VBASE');
5005 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(45,'VBASE');
5006 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(20,'GUIDE');
5007 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(24,'GUIDE');
5008 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(113,'GUIDE');
5009 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(8,'GUIDE');
5010 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(4,'MAPDB');
5011 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(71,'MAPDB');
5012 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(46,'MKTPR');
5013 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(105,'MKTPR');
5014 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(12,'MKTPR');
5015 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(85,'MKTPR');
5016 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(110,'MKTPR');
5017 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(34,'MKTPR');
5018 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(8,'MKTPR');
5019 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(14,'MKTPR');
5020 INSERT INTO EMPLOYEE_PROJECT (EMP_NO,PROJ_ID) VALUES(52,'MKTPR');
5021 COMMIT;
5022
5023 /* Inserting data into Table: JOB */
5024
5025 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('CEO',1,'USA','Chief Executive Officer',130000,250000,'No specific requirements.
5026 ',NULL);
5027 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('CFO',1,'USA','Chief Financial Officer',85000,140000,'15+ years in finance or 5+ years as a CFO
5028 with a proven track record.
5029 MBA or J.D. degree.
5030 ',NULL);
5031 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('VP',2,'USA','Vice President',80000,130000,'No specific requirements.
5032 ',NULL);
5033 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Dir',2,'USA','Director',75000,120000,'5-10 years as a director in computer or electronics industries.
5034 An advanced degree.
5035 ',NULL);
5036 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Mngr',3,'USA','Manager',60000,100000,'BA/BS required.
5037 3-5 years in management,
5038 plus 2-4 years engineering experience.
5039 ',NULL);
5040 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Mngr',4,'USA','Manager',30000,60000,'5+ years office management experience.
5041 ',NULL);
5042 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Admin',4,'USA','Administrative Assistant',35000,55000,'3-5 years experience in executive environment.
5043 Strong organizational and communication skills required.
5044 BA degree preferred.
5045 ',NULL);
5046 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Admin',5,'USA','Administrative Assistant',20000,40000,'2-4 years clerical experience.
5047 Facility with word processing and data entry.
5048 AA degree preferred.
5049 ',NULL);
5050 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Admin',5,'England','Administrative Assistant',13400,26800,NULL,NULL);
5051 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('PRel',4,'USA','Public Relations Rep.',25000,65000,NULL,NULL);
5052 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Mktg',3,'USA','Marketing Analyst',40000,80000,'MBA required.
5053 10+ years experience in high tech environment.
5054 ',NULL);
5055 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Mktg',4,'USA','Marketing Analyst',20000,50000,'BA/BS required. MBA preferred.
5056 3-5 years experience.
5057 Knowledgeable with spreadsheets and databases.
5058 ',NULL);
5059 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Accnt',4,'USA','Accountant',28000,55000,'CPA with 3-5 years experience.
5060 Spreadsheet, data entry, and word processing knowledge required.
5061 ',NULL);
5062 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Finan',3,'USA','Financial Analyst',35000,85000,'5-10 years of accounting and financial experience.
5063 Strong analytical skills.
5064 CPA/MBA required.
5065 ',NULL);
5066 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',2,'USA','Engineer',70000,110000,'Distinguished engineer.
5067 Ph.D/MS/BS or equivalent experience.
5068 ',NULL);
5069 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',3,'USA','Engineer',50000,90000,'5+ years experience.
5070 BA/BS required.
5071 MS degree preferred.
5072 ',NULL);
5073 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',3,'Japan','Engineer',5400000,9720000,'5+ years experience.
5074 BA/BS and/or MS degrees required.
5075 Customer support experience desired.
5076 Knowledge of Japanese and English.
5077 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5078 <elt ix="1">Japanese
5079 </elt>
5080 <elt ix="2">Mandarin
5081 </elt>
5082 <elt ix="3">English
5083 </elt>
5084 <elt ix="4">
5085 </elt>
5086 <elt ix="5">
5087 </elt>
5088 </array>
5089 );
5090 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',4,'USA','Engineer',30000,65000,'BA/BS and 3-5 years experience.
5091 ',NULL);
5092 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',4,'England','Engineer',20100,43550,'BA/BS and
5093 2-4 years experience in technical support.
5094 Knowledge of several European languages helpful.
5095 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5096 <elt ix="1">English
5097 </elt>
5098 <elt ix="2">German
5099 </elt>
5100 <elt ix="3">French
5101 </elt>
5102 <elt ix="4">
5103 </elt>
5104 <elt ix="5">
5105 </elt>
5106 </array>
5107 );
5108 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Eng',5,'USA','Engineer',25000,35000,'BA/BS preferred.
5109 2-4 years technical experience.
5110 ',NULL);
5111 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Doc',3,'USA','Technical Writer',38000,60000,'4+ years writing highly technical
5112 software documentation.
5113 A bachelor''s degree or equivalent.
5114 Programming experience required.
5115 Excellent language skills.
5116 ',NULL);
5117 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Doc',5,'USA','Technical Writer',22000,40000,'BA in English/journalism or excellent language skills.
5118 Some programming experience required.
5119 2-4 years of technical writing.
5120 ',NULL);
5121 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Sales',3,'USA','Sales Co-ordinator',40000,70000,'Experience in sales and public relations
5122 in a high tech environment.
5123 Excellent communication skills.
5124 BA or equivalent.
5125 ',NULL);
5126 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('Sales',3,'England','Sales Co-ordinator',26800,46900,'Experience in sales and public relations
5127 in a high tech environment.
5128 Excellent communication skills.
5129 BA or equivalent.
5130 Knowledge of several European languages helpful.
5131 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5132 <elt ix="1">English
5133 </elt>
5134 <elt ix="2">German
5135 </elt>
5136 <elt ix="3">French
5137 </elt>
5138 <elt ix="4">
5139 </elt>
5140 <elt ix="5">
5141 </elt>
5142 </array>
5143 );
5144 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'USA','Sales Representative',20000,100000,'Computer/electronics industry sales experience.
5145 Excellent communications, negotiation, and analytical skills.
5146 Experience in establishing long term customer relationships.
5147 Some knowledge of Spanish required.
5148 Travel required.
5149 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5150 <elt ix="1">English
5151 </elt>
5152 <elt ix="2">Spanish
5153 </elt>
5154 <elt ix="3">
5155 </elt>
5156 <elt ix="4">
5157 </elt>
5158 <elt ix="5">
5159 </elt>
5160 </array>
5161 );
5162 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'England','Sales Representative',13400,67000,'Computer/electronics industry sales experience.
5163 Excellent communications, negotiation, and analytical skills.
5164 Experience in establishing long term customer relationships.
5165 Knowledge of several European languages helpful.
5166 Travel required.
5167 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5168 <elt ix="1">English
5169 </elt>
5170 <elt ix="2">German
5171 </elt>
5172 <elt ix="3">French
5173 </elt>
5174 <elt ix="4">
5175 </elt>
5176 <elt ix="5">
5177 </elt>
5178 </array>
5179 );
5180 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'Canada','Sales Representative',26400,132000,'Computer/electronics industry sales experience.
5181 Excellent communications, negotiation, and analytical skills.
5182 Experience in establishing long term customer relationships.
5183 Travel required.
5184 English plus speaking knowledge of French required.
5185 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5186 <elt ix="1">English
5187 </elt>
5188 <elt ix="2">French
5189 </elt>
5190 <elt ix="3">
5191 </elt>
5192 <elt ix="4">
5193 </elt>
5194 <elt ix="5">
5195 </elt>
5196 </array>
5197 );
5198 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'Switzerland','Sales Representative',28000,149000,'Computer/electronics industry sales experience.
5199 Excellent communications, negotiation, and analytical skills.
5200 Experience in establishing long term customer relationships.
5201 Knowledge of German required; one or more other European language helpful.
5202 Travel required.
5203 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5204 <elt ix="1">German
5205 </elt>
5206 <elt ix="2">French
5207 </elt>
5208 <elt ix="3">English
5209 </elt>
5210 <elt ix="4">Italian
5211 </elt>
5212 <elt ix="5">
5213 </elt>
5214 </array>
5215 );
5216 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'Japan','Sales Representative',2160000,10800000,'Computer/electronics industry sales experience.
5217 Excellent communications, negotiation, and analytical skills.
5218 Experience in establishing long term customer relationships.
5219 Knowledge of Japanese required.
5220 Travel required.
5221 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5222 <elt ix="1">Japanese
5223 </elt>
5224 <elt ix="2">English
5225 </elt>
5226 <elt ix="3">
5227 </elt>
5228 <elt ix="4">
5229 </elt>
5230 <elt ix="5">
5231 </elt>
5232 </array>
5233 );
5234 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'Italy','Sales Representative',20000,100000,'Computer/electronics industry sales experience.
5235 Excellent communications, negotiation, and analytical skills.
5236 Experience in establishing long term customer relationships.
5237 Fluency in Italian; some knowledge of German helpful.
5238 Travel required.
5239 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5240 <elt ix="1">Italian
5241 </elt>
5242 <elt ix="2">German
5243 </elt>
5244 <elt ix="3">French
5245 </elt>
5246 <elt ix="4">
5247 </elt>
5248 <elt ix="5">
5249 </elt>
5250 </array>
5251 );
5252 INSERT INTO JOB (JOB_CODE,JOB_GRADE,JOB_COUNTRY,JOB_TITLE,MIN_SALARY,MAX_SALARY,JOB_REQUIREMENT,LANGUAGE_REQ) VALUES('SRep',4,'France','Sales Representative',20000,100000,'Computer/electronics industry sales experience.
5253 Excellent communications, negotiation, and analytical skills.
5254 Experience in establishing long term customer relationships.
5255 Fluency in French; some knowledge of German/Spanish helpful.
5256 Travel required.
5257 ',<array dim = "1" sqltype = "448" length = "15" relation_name = "JOB" column_name = "LANGUAGE_REQ" charset = "NONE" bounds="1:5">
5258 <elt ix="1">English
5259 </elt>
5260 <elt ix="2">French
5261 </elt>
5262 <elt ix="3">Spanish
5263 </elt>
5264 <elt ix="4">
5265 </elt>
5266 <elt ix="5">
5267 </elt>
5268 </array>
5269 );
5270 COMMIT;
5271
5272 /* Inserting data into Table: PROJECT */
5273
5274 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('VBASE','Video Database','Design a video data base management system for
5275 controlling on-demand video distribution.
5276 ',45,'software');
5277 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('DGPII','DigiPizza','Develop second generation digital pizza maker
5278 with flash-bake heating element and
5279 digital ingredient measuring system.
5280 ',24,'other');
5281 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('GUIDE','AutoMap','Develop a prototype for the automobile version of
5282 the hand-held map browsing device.
5283 ',20,'hardware');
5284 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('MAPDB','MapBrowser port','Port the map browsing database software to run
5285 on the automobile model.
5286 ',4,'software');
5287 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('HWRII','Translator upgrade','Integrate the hand-writing recognition module into the
5288 universal language translator.
5289 ',NULL,'software');
5290 INSERT INTO PROJECT (PROJ_ID,PROJ_NAME,PROJ_DESC,TEAM_LEADER,PRODUCT) VALUES('MKTPR','Marketing project 3','Expand marketing and sales in the Pacific Rim.
5291 Set up a field office in Australia and Singapore.
5292 ',85,'N/A');
5293 COMMIT;
5294
5295 /* Inserting data into Table: PROJ_DEPT_BUDGET */
5296
5297 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'GUIDE','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5298 <elt ix="1">1</elt>
5299 <elt ix="2">1</elt>
5300 <elt ix="3">1</elt>
5301 <elt ix="4">0</elt>
5302 </array>
5303 ,200000);
5304 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'GUIDE','671',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5305 <elt ix="1">3</elt>
5306 <elt ix="2">2</elt>
5307 <elt ix="3">1</elt>
5308 <elt ix="4">0</elt>
5309 </array>
5310 ,450000);
5311 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1993,'MAPDB','621',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5312 <elt ix="1">0</elt>
5313 <elt ix="2">0</elt>
5314 <elt ix="3">0</elt>
5315 <elt ix="4">1</elt>
5316 </array>
5317 ,20000);
5318 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MAPDB','621',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5319 <elt ix="1">2</elt>
5320 <elt ix="2">1</elt>
5321 <elt ix="3">0</elt>
5322 <elt ix="4">0</elt>
5323 </array>
5324 ,40000);
5325 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MAPDB','622',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5326 <elt ix="1">1</elt>
5327 <elt ix="2">1</elt>
5328 <elt ix="3">0</elt>
5329 <elt ix="4">0</elt>
5330 </array>
5331 ,60000);
5332 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MAPDB','671',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5333 <elt ix="1">1</elt>
5334 <elt ix="2">1</elt>
5335 <elt ix="3">0</elt>
5336 <elt ix="4">0</elt>
5337 </array>
5338 ,11000);
5339 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'HWRII','670',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5340 <elt ix="1">1</elt>
5341 <elt ix="2">1</elt>
5342 <elt ix="3">1</elt>
5343 <elt ix="4">1</elt>
5344 </array>
5345 ,20000);
5346 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'HWRII','621',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5347 <elt ix="1">2</elt>
5348 <elt ix="2">3</elt>
5349 <elt ix="3">2</elt>
5350 <elt ix="4">1</elt>
5351 </array>
5352 ,400000);
5353 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'HWRII','622',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5354 <elt ix="1">1</elt>
5355 <elt ix="2">1</elt>
5356 <elt ix="3">2</elt>
5357 <elt ix="4">2</elt>
5358 </array>
5359 ,100000);
5360 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MKTPR','623',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5361 <elt ix="1">1</elt>
5362 <elt ix="2">1</elt>
5363 <elt ix="3">1</elt>
5364 <elt ix="4">2</elt>
5365 </array>
5366 ,80000);
5367 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MKTPR','672',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5368 <elt ix="1">1</elt>
5369 <elt ix="2">1</elt>
5370 <elt ix="3">1</elt>
5371 <elt ix="4">2</elt>
5372 </array>
5373 ,100000);
5374 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MKTPR','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5375 <elt ix="1">4</elt>
5376 <elt ix="2">5</elt>
5377 <elt ix="3">6</elt>
5378 <elt ix="4">6</elt>
5379 </array>
5380 ,1000000);
5381 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MKTPR','110',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5382 <elt ix="1">2</elt>
5383 <elt ix="2">2</elt>
5384 <elt ix="3">0</elt>
5385 <elt ix="4">3</elt>
5386 </array>
5387 ,200000);
5388 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'MKTPR','000',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5389 <elt ix="1">1</elt>
5390 <elt ix="2">1</elt>
5391 <elt ix="3">2</elt>
5392 <elt ix="4">2</elt>
5393 </array>
5394 ,100000);
5395 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'MKTPR','623',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5396 <elt ix="1">7</elt>
5397 <elt ix="2">7</elt>
5398 <elt ix="3">4</elt>
5399 <elt ix="4">4</elt>
5400 </array>
5401 ,1200000);
5402 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'MKTPR','672',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5403 <elt ix="1">2</elt>
5404 <elt ix="2">3</elt>
5405 <elt ix="3">3</elt>
5406 <elt ix="4">3</elt>
5407 </array>
5408 ,800000);
5409 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'MKTPR','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5410 <elt ix="1">4</elt>
5411 <elt ix="2">5</elt>
5412 <elt ix="3">6</elt>
5413 <elt ix="4">6</elt>
5414 </array>
5415 ,2000000);
5416 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'MKTPR','110',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5417 <elt ix="1">1</elt>
5418 <elt ix="2">1</elt>
5419 <elt ix="3">1</elt>
5420 <elt ix="4">1</elt>
5421 </array>
5422 ,1200000);
5423 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'VBASE','621',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5424 <elt ix="1">4</elt>
5425 <elt ix="2">5</elt>
5426 <elt ix="3">5</elt>
5427 <elt ix="4">3</elt>
5428 </array>
5429 ,1900000);
5430 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'VBASE','621',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5431 <elt ix="1">4</elt>
5432 <elt ix="2">3</elt>
5433 <elt ix="3">2</elt>
5434 <elt ix="4">2</elt>
5435 </array>
5436 ,900000);
5437 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'VBASE','622',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5438 <elt ix="1">2</elt>
5439 <elt ix="2">2</elt>
5440 <elt ix="3">2</elt>
5441 <elt ix="4">1</elt>
5442 </array>
5443 ,400000);
5444 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1994,'VBASE','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5445 <elt ix="1">1</elt>
5446 <elt ix="2">1</elt>
5447 <elt ix="3">2</elt>
5448 <elt ix="4">3</elt>
5449 </array>
5450 ,300000);
5451 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1995,'VBASE','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5452 <elt ix="1">3</elt>
5453 <elt ix="2">3</elt>
5454 <elt ix="3">1</elt>
5455 <elt ix="4">1</elt>
5456 </array>
5457 ,1500000);
5458 INSERT INTO PROJ_DEPT_BUDGET (FISCAL_YEAR,PROJ_ID,DEPT_NO,QUART_HEAD_CNT,PROJECTED_BUDGET) VALUES(1996,'VBASE','100',<array dim = "1" sqltype = "496" length = "4" relation_name = "PROJ_DEPT_BUDGET" column_name = "QUART_HEAD_CNT" scale = "0" bounds="1:4">
5459 <elt ix="1">1</elt>
5460 <elt ix="2">1</elt>
5461 <elt ix="3">0</elt>
5462 <elt ix="4">0</elt>
5463 </array>
5464 ,150000);
5465 COMMIT;
5466
5467 /* Inserting data into Table: SALARY_HISTORY */
5468
5469 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(28,'1992.12.15 00:00:00.000','admin2',20000,10);
5470 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(2,'1992.12.15 00:00:00.000','admin2',98000,8.0612);
5471 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(4,'1992.12.15 00:00:00.000','admin2',90000,8.3333);
5472 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(5,'1992.12.15 00:00:00.000','admin2',95000,8.1578);
5473 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(11,'1992.12.15 00:00:00.000','admin2',70000,7.5);
5474 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(12,'1992.12.15 00:00:00.000','admin2',48000,7.5);
5475 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(14,'1992.12.15 00:00:00.000','admin2',62000,7.5);
5476 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(15,'1992.12.15 00:00:00.000','admin2',60000,7.5);
5477 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(20,'1992.12.15 00:00:00.000','admin2',80000,7.5);
5478 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(24,'1992.12.15 00:00:00.000','admin2',73000,7.5);
5479 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(29,'1992.12.15 00:00:00.000','admin2',62000,7.5);
5480 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(34,'1992.12.15 00:00:00.000','admin2',55000,7.5);
5481 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(36,'1992.12.15 00:00:00.000','admin2',30000,7.5);
5482 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(37,'1992.12.15 00:00:00.000','admin2',35000,7.5);
5483 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(44,'1992.12.15 00:00:00.000','admin2',50000,7.5);
5484 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(45,'1992.12.15 00:00:00.000','admin2',72000,7.5);
5485 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(8,'1993.09.08 00:00:00.000','elaine',62000,4.25);
5486 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(9,'1993.09.08 00:00:00.000','elaine',72000,4.25);
5487 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(11,'1993.09.08 00:00:00.000','elaine',75250,4.25);
5488 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(12,'1993.09.08 00:00:00.000','elaine',51600,4.25);
5489 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(14,'1993.09.08 00:00:00.000','elaine',66650,4.25);
5490 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(15,'1993.09.08 00:00:00.000','elaine',64500,4.25);
5491 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(20,'1993.09.08 00:00:00.000','elaine',86000,4.25);
5492 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(24,'1993.09.08 00:00:00.000','elaine',78475,4.25);
5493 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(28,'1993.09.08 00:00:00.000','elaine',22000,4.25);
5494 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(29,'1993.09.08 00:00:00.000','elaine',66650,4.25);
5495 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(34,'1993.09.08 00:00:00.000','elaine',59125,4.2499);
5496 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(36,'1993.09.08 00:00:00.000','elaine',32250,4.25);
5497 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(37,'1993.09.08 00:00:00.000','elaine',37625,4.2499);
5498 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(44,'1993.09.08 00:00:00.000','elaine',53750,4.25);
5499 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(45,'1993.09.08 00:00:00.000','elaine',77400,4.25);
5500 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(52,'1993.09.08 00:00:00.000','elaine',41000,4.25);
5501 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(61,'1993.09.08 00:00:00.000','elaine',60000,4.25);
5502 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(65,'1993.09.08 00:00:00.000','elaine',30000,4.25);
5503 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(71,'1993.09.08 00:00:00.000','elaine',51000,4.25);
5504 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(72,'1993.09.08 00:00:00.000','elaine',88000,4.25);
5505 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(83,'1993.09.08 00:00:00.000','elaine',60000,4.25);
5506 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(94,'1993.09.08 00:00:00.000','elaine',54000,4.25);
5507 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(46,'1993.12.20 00:00:00.000','tj',120000,-3.25);
5508 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(85,'1993.12.20 00:00:00.000','tj',115000,-3.25);
5509 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(105,'1993.12.20 00:00:00.000','tj',220000,-3.25);
5510 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(107,'1993.12.20 00:00:00.000','tj',115000,-3.25);
5511 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(11,'1993.12.20 00:00:00.000','elaine',78448.13,9.9999);
5512 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(61,'1993.12.20 00:00:00.000','elaine',62550,10);
5513 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(72,'1993.12.20 00:00:00.000','elaine',91740,10);
5514 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(118,'1993.12.20 00:00:00.000','elaine',6800000,10);
5515 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(121,'1993.12.20 00:00:00.000','elaine',30000,10);
5516 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(127,'1993.12.20 00:00:00.000','elaine',40000,10);
5517 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(134,'1993.12.20 00:00:00.000','elaine',35000,10);
5518 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(28,'2017.11.06 16:46:27.145','SYSDBA',22935,0);
5519 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(28,'2017.11.06 16:47:01.376','SYSDBA',22935.01,0);
5520 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(12,'2017.12.29 12:18:48.909','SYSDBA',53793,0);
5521 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(12,'2017.12.29 12:18:58.051','SYSDBA',53793.01,0);
5522 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(83,'2018.01.04 10:57:34.245','SYSDBA',62550,0);
5523 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(121,'2018.03.13 15:29:08.850','SYSDBA',33000,0);
5524 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(109,'2018.03.13 17:12:06.340','SYSDBA',27000,0);
5525 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(34,'2018.03.13 17:13:20.671','SYSDBA',61637.81,0);
5526 INSERT INTO SALARY_HISTORY (EMP_NO,CHANGE_DATE,UPDATER_ID,OLD_SALARY,PERCENT_CHANGE) VALUES(83,'2018.03.13 17:13:35.845','SYSDBA',62550.01,0);
5527 COMMIT;
5528
5529 /* Inserting data into Table: SALES */
5530
5531 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V91E0210',1004,11,'shipped','1991.03.04 00:00:00.000','1991.03.05 00:00:00.000',NULL,'y',10,5000,0.100000001490116,'hardware');
5532 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V92E0340',1004,11,'shipped','1992.10.15 00:00:00.000','1992.10.16 00:00:00.000','1992.10.17 00:00:00.000','y',7,70000,0,'hardware');
5533 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V92J1003',1010,61,'shipped','1992.07.26 00:00:00.000','1992.08.04 00:00:00.000','1992.09.15 00:00:00.000','y',15,2985,0,'software');
5534 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93J2004',1010,118,'shipped','1993.10.30 00:00:00.000','1993.12.02 00:00:00.000','1993.11.15 00:00:00.000','y',3,210,0,'software');
5535 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93J3100',1010,118,'shipped','1993.08.20 00:00:00.000','1993.08.20 00:00:00.000',NULL,'y',16,18000.4,0.100000001490116,'software');
5536 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V92F3004',1012,11,'shipped','1992.10.15 00:00:00.000','1993.01.16 00:00:00.000','1993.01.16 00:00:00.000','y',3,2000,0,'software');
5537 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93F3088',1012,134,'shipped','1993.08.27 00:00:00.000','1993.09.08 00:00:00.000',NULL,'n',10,10000,0,'software');
5538 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93F2030',1012,134,'open','1993.12.12 00:00:00.000',NULL,NULL,'y',15,450000.49,0,'hardware');
5539 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93F2051',1012,134,'waiting','1993.12.18 00:00:00.000',NULL,'1994.03.01 00:00:00.000','n',1,999.98,0,'software');
5540 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93H0030',1005,118,'open','1993.12.12 00:00:00.000',NULL,'1994.01.01 00:00:00.000','y',20,5980,0.200000002980232,'software');
5541 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V94H0079',1005,61,'open','1994.02.13 00:00:00.000',NULL,'1994.04.20 00:00:00.000','n',10,9000,0.0500000007450581,'software');
5542 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9324200',1001,72,'shipped','1993.08.09 00:00:00.000','1993.08.09 00:00:00.000','1993.08.17 00:00:00.000','y',1000,560000,0.200000002980232,'hardware');
5543 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9324320',1001,127,'shipped','1993.08.16 00:00:00.000','1993.08.16 00:00:00.000','1993.09.01 00:00:00.000','y',1,0,1,'software');
5544 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9320630',1001,127,'open','1993.12.12 00:00:00.000',NULL,'1993.12.15 00:00:00.000','n',3,60000,0.200000002980232,'hardware');
5545 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9420099',1001,127,'open','1994.01.17 00:00:00.000',NULL,'1994.06.01 00:00:00.000','n',100,3399.15,0.150000005960464,'software');
5546 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9427029',1001,127,'shipped','1994.02.07 00:00:00.000','1994.02.10 00:00:00.000','1994.02.10 00:00:00.000','n',17,422210.97,0,'hardware');
5547 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9333005',1002,11,'shipped','1993.02.03 00:00:00.000','1993.03.03 00:00:00.000',NULL,'y',2,600.5,0,'software');
5548 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9333006',1002,11,'shipped','1993.04.27 00:00:00.000','1993.05.02 00:00:00.000','1993.05.02 00:00:00.000','n',5,20000,0,'other');
5549 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9336100',1002,11,'waiting','1993.12.27 00:00:00.000','1994.01.01 00:00:00.000','1994.01.01 00:00:00.000','n',150,14850,0.0500000007450581,'software');
5550 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9346200',1003,11,'waiting','1993.12.31 00:00:00.000',NULL,'1994.01.24 00:00:00.000','n',3,0,1,'software');
5551 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9345200',1003,11,'shipped','1993.11.11 00:00:00.000','1993.12.02 00:00:00.000','1993.12.01 00:00:00.000','y',900,27000,0.300000011920929,'software');
5552 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9345139',1003,127,'shipped','1993.09.09 00:00:00.000','1993.09.20 00:00:00.000','1993.10.01 00:00:00.000','y',20,12582.12,0.100000001490116,'software');
5553 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93C0120',1006,72,'shipped','1993.03.22 00:00:00.000','1993.05.31 00:00:00.000','1993.04.17 00:00:00.000','y',1,47.5,0,'other');
5554 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93C0990',1006,72,'shipped','1993.08.09 00:00:00.000','1993.09.02 00:00:00.000',NULL,'y',40,399960.5,0.100000001490116,'hardware');
5555 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V9456220',1007,127,'open','1994.01.04 00:00:00.000',NULL,'1994.01.30 00:00:00.000','y',1,3999.99,0,'hardware');
5556 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93S4702',1011,121,'shipped','1993.10.27 00:00:00.000','1993.10.28 00:00:00.000','1993.12.15 00:00:00.000','y',4,120000,0,'hardware');
5557 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V94S6400',1011,141,'waiting','1994.01.06 00:00:00.000',NULL,'1994.02.15 00:00:00.000','y',20,1980.72,0.400000005960464,'software');
5558 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93H3009',1008,61,'shipped','1993.08.01 00:00:00.000','1993.12.02 00:00:00.000','1993.12.01 00:00:00.000','n',3,9000,0.0500000007450581,'software');
5559 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93H0500',1008,61,'open','1993.12.12 00:00:00.000',NULL,'1993.12.15 00:00:00.000','n',3,16000,0.200000002980232,'hardware');
5560 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93F0020',1009,61,'shipped','1993.10.10 00:00:00.000','1993.11.11 00:00:00.000','1993.11.11 00:00:00.000','n',1,490.69,0,'software');
5561 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93I4700',1013,121,'open','1993.10.27 00:00:00.000',NULL,'1993.12.15 00:00:00.000','n',5,2693,0,'hardware');
5562 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93B1002',1014,134,'shipped','1993.09.20 00:00:00.000','1993.09.21 00:00:00.000','1993.09.25 00:00:00.000','y',1,100.02,0,'software');
5563 INSERT INTO SALES (PO_NUMBER,CUST_NO,SALES_REP,ORDER_STATUS,ORDER_DATE,SHIP_DATE,DATE_NEEDED,PAID,QTY_ORDERED,TOTAL_VALUE,DISCOUNT,ITEM_TYPE) VALUES('V93N5822',1015,134,'shipped','1993.12.18 00:00:00.000','1994.01.14 00:00:00.000',NULL,'n',2,1500,0,'software');
5564 COMMIT;
5565 /* Data Ends */
5566
5567 /* Index definitions for all user tables */
5568
5569 CREATE INDEX CUSTNAMEX ON CUSTOMER(CUSTOMER);
5570 CREATE INDEX CUSTREGION ON CUSTOMER(COUNTRY, CITY);
5571 CREATE DESCENDING INDEX BUDGETX ON DEPARTMENT(BUDGET);
5572 CREATE INDEX NAMEX ON EMPLOYEE(LAST_NAME, FIRST_NAME);
5573 CREATE DESCENDING INDEX MAXSALX ON JOB(JOB_COUNTRY, MAX_SALARY);
5574 CREATE INDEX MINSALX ON JOB(JOB_COUNTRY, MIN_SALARY);
5575 CREATE UNIQUE INDEX PRODTYPEX ON PROJECT(PRODUCT, PROJ_NAME);
5576 CREATE DESCENDING INDEX CHANGEX ON SALARY_HISTORY(CHANGE_DATE);
5577 CREATE INDEX UPDATERX ON SALARY_HISTORY(UPDATER_ID);
5578 CREATE INDEX NEEDX ON SALES(DATE_NEEDED);
5579 CREATE DESCENDING INDEX QTYX ON SALES(ITEM_TYPE, QTY_ORDERED);
5580 CREATE INDEX SALESTATX ON SALES(ORDER_STATUS, PAID);
5581 ALTER TABLE CUSTOMER ADD FOREIGN KEY (COUNTRY) REFERENCES COUNTRY (COUNTRY);
5582 ALTER TABLE DEPARTMENT ADD FOREIGN KEY (HEAD_DEPT) REFERENCES DEPARTMENT (DEPT_NO);
5583 ALTER TABLE DEPARTMENT ADD FOREIGN KEY (MNGR_NO) REFERENCES EMPLOYEE (EMP_NO);
5584 ALTER TABLE EMPLOYEE ADD FOREIGN KEY (DEPT_NO) REFERENCES DEPARTMENT (DEPT_NO);
5585 ALTER TABLE EMPLOYEE ADD FOREIGN KEY (JOB_CODE, JOB_GRADE, JOB_COUNTRY) REFERENCES JOB (JOB_CODE, JOB_GRADE, JOB_COUNTRY);
5586 ALTER TABLE EMPLOYEE_PROJECT ADD FOREIGN KEY (EMP_NO) REFERENCES EMPLOYEE (EMP_NO);
5587 ALTER TABLE EMPLOYEE_PROJECT ADD FOREIGN KEY (PROJ_ID) REFERENCES PROJECT (PROJ_ID);
5588 ALTER TABLE JOB ADD FOREIGN KEY (JOB_COUNTRY) REFERENCES COUNTRY (COUNTRY);
5589 ALTER TABLE PROJECT ADD FOREIGN KEY (TEAM_LEADER) REFERENCES EMPLOYEE (EMP_NO);
5590 ALTER TABLE PROJ_DEPT_BUDGET ADD FOREIGN KEY (DEPT_NO) REFERENCES DEPARTMENT (DEPT_NO);
5591 ALTER TABLE PROJ_DEPT_BUDGET ADD FOREIGN KEY (PROJ_ID) REFERENCES PROJECT (PROJ_ID);
5592 ALTER TABLE SALARY_HISTORY ADD FOREIGN KEY (EMP_NO) REFERENCES EMPLOYEE (EMP_NO);
5593 ALTER TABLE SALES ADD FOREIGN KEY (CUST_NO) REFERENCES CUSTOMER (CUST_NO);
5594 ALTER TABLE SALES ADD FOREIGN KEY (SALES_REP) REFERENCES EMPLOYEE (EMP_NO);
5595
5596 CREATE SEQUENCE CUST_NO_GEN;
5597 ALTER SEQUENCE CUST_NO_GEN RESTART WITH 1016;
5598 CREATE SEQUENCE EMP_NO_GEN;
5599 ALTER SEQUENCE EMP_NO_GEN RESTART WITH 158;
5600 CREATE SEQUENCE FB$OUT_SEQ;
5601 ALTER SEQUENCE FB$OUT_SEQ RESTART WITH 1;
5602
5603 /* View: DEPTLIST, Owner: SYSDBA */
5604
5605 CREATE VIEW DEPTLIST (
5606 EMP_NO,
5607 FIRST_NAME,
5608 LAST_NAME,
5609 PHONE_EXT,
5610 HIRE_DATE,
5611 DEPT_NO,
5612 JOB_CODE,
5613 JOB_GRADE,
5614 JOB_COUNTRY,
5615 SALARY,
5616 FULL_NAME,
5617 DEPT_PATH,
5618 DEPT_KEY_PATH
5619 ) AS
5620 with recursive Depts As (
5621 Select DEPT_NO, DEPARTMENT, HEAD_DEPT, cast(DEPARTMENT as VarChar(256)) as DEPT_PATH,
5622 cast(DEPT_NO as VarChar(64)) as DEPT_KEY_PATH
5623 From DEPARTMENT Where HEAD_DEPT is NULL
5624 UNION ALL
5625 Select D.DEPT_NO, D.DEPARTMENT, D.HEAD_DEPT, Depts.DEPT_PATH || ' / ' || D.DEPARTMENT as DEPT_PATH,
5626 Depts.DEPT_KEY_PATH || ';' || D.DEPT_NO as DEPT_KEY_PATH
5627 From DEPARTMENT D
5628 JOIN Depts On D.HEAD_DEPT = Depts.DEPT_NO
5629 )
5630
5631 Select distinct A.EMP_NO, A.FIRST_NAME, A.LAST_NAME, A.PHONE_EXT, A.HIRE_DATE, A.DEPT_NO, A.JOB_CODE,
5632 A.JOB_GRADE, A.JOB_COUNTRY, A.SALARY, A.FULL_NAME, D.DEPT_PATH, D.DEPT_KEY_PATH
5633 From EMPLOYEE A
5634 JOIN Depts D On D.DEPT_NO = A.DEPT_NO
5635 ;
5636
5637 /* View: PHONE_LIST, Owner: SYSDBA */
5638
5639 CREATE VIEW PHONE_LIST (
5640 EMP_NO,
5641 FIRST_NAME,
5642 LAST_NAME,
5643 PHONE_EXT,
5644 LOCATION,
5645 PHONE_NO
5646 ) AS
5647 SELECT
5648 emp_no, first_name, last_name, phone_ext, location, phone_no
5649 FROM employee, department
5650 WHERE employee.dept_no = department.dept_no
5651 ;
5652
5653 /* Add Domain Check Constraints */
5654
5655
5656 ALTER DOMAIN BUDGET ADD CONSTRAINT
5657 CHECK (VALUE > 10000 AND VALUE <= 2000000);
5658
5659 ALTER DOMAIN CUSTNO ADD CONSTRAINT
5660 CHECK (VALUE > 1000);
5661 ALTER DOMAIN DEPTNO ADD CONSTRAINT
5662 CHECK (VALUE = '000' OR (VALUE > '0' AND VALUE <= '999') OR VALUE IS NULL);
5663
5664
5665
5666 ALTER DOMAIN JOBCODE ADD CONSTRAINT
5667 CHECK (VALUE > '99999');
5668 ALTER DOMAIN JOBGRADE ADD CONSTRAINT
5669 CHECK (VALUE BETWEEN 0 AND 6);
5670
5671
5672 ALTER DOMAIN PONUMBER ADD CONSTRAINT
5673 CHECK (VALUE STARTING WITH 'V');
5674 ALTER DOMAIN PRODTYPE ADD CONSTRAINT
5675 CHECK (VALUE IN ('software', 'hardware', 'other', 'N/A'));
5676 ALTER DOMAIN PROJNO ADD CONSTRAINT
5677 CHECK (VALUE = UPPER (VALUE));
5678 ALTER DOMAIN SALARY ADD CONSTRAINT
5679 CHECK (VALUE > 0);
5680 ALTER TABLE JOB ADD
5681 CHECK (min_salary < max_salary);
5682
5683 ALTER TABLE JOB ADD
5684 CHECK (min_salary < max_salary);
5685
5686 ALTER TABLE EMPLOYEE ADD
5687 CHECK ( salary >= (SELECT min_salary FROM job WHERE
5688 job.job_code = employee.job_code AND
5689 job.job_grade = employee.job_grade AND
5690 job.job_country = employee.job_country) AND
5691 salary <= (SELECT max_salary FROM job WHERE
5692 job.job_code = employee.job_code AND
5693 job.job_grade = employee.job_grade AND
5694 job.job_country = employee.job_country));
5695
5696 ALTER TABLE PROJ_DEPT_BUDGET ADD
5697 CHECK (FISCAL_YEAR >= 1993);
5698
5699 ALTER TABLE SALARY_HISTORY ADD
5700 CHECK (percent_change between -50 and 50);
5701
5702 ALTER TABLE CUSTOMER ADD
5703 CHECK (on_hold IS NULL OR on_hold = '*');
5704
5705 ALTER TABLE SALES ADD
5706 CHECK (order_status in
5707 ('new', 'open', 'shipped', 'waiting'));
5708
5709 ALTER TABLE SALES ADD
5710 CHECK (ship_date >= order_date OR ship_date IS NULL);
5711
5712 ALTER TABLE SALES ADD
5713 CHECK (date_needed > order_date OR date_needed IS NULL);
5714
5715 ALTER TABLE SALES ADD
5716 CHECK (paid in ('y', 'n'));
5717
5718 ALTER TABLE SALES ADD
5719 CHECK (qty_ordered >= 1);
5720
5721 ALTER TABLE SALES ADD
5722 CHECK (total_value >= 0);
5723
5724 ALTER TABLE SALES ADD
5725 CHECK (discount >= 0 AND discount <= 1);
5726
5727 ALTER TABLE SALES ADD
5728 CHECK (NOT (order_status = 'shipped' AND ship_date IS NULL));
5729
5730 ALTER TABLE SALES ADD
5731 CHECK (NOT (order_status = 'shipped' AND
5732 EXISTS (SELECT on_hold FROM customer
5733 WHERE customer.cust_no = sales.cust_no
5734 AND customer.on_hold = '*')));
5735
5736
5737 /* Exceptions */
5738
5739 CREATE EXCEPTION CUSTOMER_CHECK 'Overdue balance -- can not ship.';
5740 CREATE EXCEPTION CUSTOMER_ON_HOLD 'This customer is on hold.';
5741 CREATE EXCEPTION ORDER_ALREADY_SHIPPED 'Order status is "shipped."';
5742 CREATE EXCEPTION REASSIGN_SALES 'Reassign the sales records before deleting this employee.';
5743 CREATE EXCEPTION UNKNOWN_EMP_ID 'Invalid employee number or project id.';
5744 COMMIT WORK;
5745 SET AUTODDL OFF;
5746 SET TERM ^;
5747
5748 /* Stored procedures Definitions*/
5749
5750 CREATE PROCEDURE SHOW_LANGS
5751 (
5752 CODE VARCHAR(5) CHARACTER SET NONE,
5753 GRADE SMALLINT,
5754 CTY VARCHAR(15) CHARACTER SET NONE
5755 )
5756 RETURNS
5757 (
5758 LANGUAGES VARCHAR(15) CHARACTER SET NONE
5759 )
5760 AS
5761 BEGIN SUSPEND; EXIT; END
5762 ^
5763
5764 CREATE PROCEDURE ADD_EMP_PROJ
5765 (
5766 EMP_NO SMALLINT,
5767 PROJ_ID CHAR(5) CHARACTER SET NONE
5768 )
5769 AS
5770 BEGIN EXIT; END
5771 ^
5772
5773 CREATE PROCEDURE ALL_LANGS
5774 RETURNS
5775 (
5776 CODE VARCHAR(5) CHARACTER SET NONE,
5777 GRADE VARCHAR(5) CHARACTER SET NONE,
5778 COUNTRY VARCHAR(15) CHARACTER SET NONE,
5779 LANG VARCHAR(15) CHARACTER SET NONE
5780 )
5781 AS
5782 BEGIN SUSPEND; EXIT; END
5783 ^
5784
5785 CREATE PROCEDURE DELETE_EMPLOYEE
5786 (
5787 EMP_NUM INTEGER
5788 )
5789 AS
5790 BEGIN EXIT; END
5791 ^
5792
5793 CREATE PROCEDURE DEPT_BUDGET
5794 (
5795 DNO CHAR(3) CHARACTER SET NONE
5796 )
5797 RETURNS
5798 (
5799 TOT DECIMAL(12,2)
5800 )
5801 AS
5802 BEGIN SUSPEND; EXIT; END
5803 ^
5804
5805 CREATE PROCEDURE GET_EMP_PROJ
5806 (
5807 EMP_NO SMALLINT
5808 )
5809 RETURNS
5810 (
5811 PROJ_ID CHAR(5) CHARACTER SET NONE
5812 )
5813 AS
5814 BEGIN SUSPEND; EXIT; END
5815 ^
5816
5817 CREATE PROCEDURE "Has Space"
5818 (
5819 ARG1 INTEGER
5820 )
5821 AS
5822 BEGIN EXIT; END
5823 ^
5824
5825 CREATE PROCEDURE MAIL_LABEL
5826