Beruflich Dokumente
Kultur Dokumente
HW
Create a *.sql script file using Notepad for the HandsOn Assignments (#3,5,7,9 and 1) on pp. 54-55 (why
#1 at the end?)
Name your file as Oracle_Ch2_Lname_Fname.sql
(not .txt). For example, Oracle_Ch2_chen_Jason.sql
Make sure the file extension should be *.sql not *.txt,
otherwise, you cant do other commands in the future.
How? See detailed instruction on the next slide.
Note that you need to copy and paste each sql file to
SQL> (SQL Plus) and make sure each one is working
properly.
Dr. Chen, Business Database Systems (Oracle)
HW (cont.)
Then spool it onto the file of
Oracle_ch2_Spool_Chen_Jason.txt
How?
See next slide
Please note that the SPOOLed file should include
both your source sql commands and the result from
the Oracle.
PUBDATE
ID
COST
RETAIL
DISCOUNT CATEGORY
--------- --- -------- -------- ---------- -----------21-JAN-05
4
$18.75
$30.95
FITNESS
14-DEC-05
$14.20
$22.00
FAMILY LIFE
18-MAR-06
$37.80
$59.95
3 CHILDREN
04-JUN-03
$31.40
$55.95
COMPUTER
28-FEB-04
$12.50
$19.95
COOKING
31-DEC-05
$47.25
$75.95
3.8 COMPUTER
21-JAN-05
$21.80
$25.00
COMPUTER
01-MAR-06
$37.90
$54.50
COMPUTER
17-JUL-04
$48.00
$89.95
11-SEP-04
$19.00
$28.75
COOKING
08-NOV-05
$5.32
$8.95
11-NOV-06
$17.85
$29.95
09-MAY-03
$15.40
$31.95
CHILDREN
1.5 SELF HELP
BUSINESS
PUBDATE
ID
COST
RETAIL
DISCOUNT CATEGORY
--------- --- -------- -------- ---------- -----------01-MAY-05
5
$21.85
$39.95
LITERATURE
14 rows selected.
Summary on Oracle_Ch2
- see spool instruction on the next slide
HW (Odd numbers only (pp.54-55), but do #1 at the end as it will affects the
rest of problems)
12