Introduction to Oracle
Assignment
This
assignment should be done using Oracle. I assume most of you will be doing the
work at home or at the office. If you are planning to use the BCC labs for your
work, please let me know. Passwords for the BCC labs will be available soon I
hope.
SQL>
DESCRIBE donor;
Name Null?
Type
-------------------------------
-------- ----
IDNO
VARCHAR2(5)
NAME
VARCHAR2(15)
STADR
VARCHAR2(15)
CITY
VARCHAR2(10)
STATE
VARCHAR2(2)
ZIP
VARCHAR2(5)
DATEFST DATE
YRGOAL
NUMBER(7,2)
CONTACT
VARCHAR2(12)
SQL>
SELECT *
2 FROM donor;
IDNO NAME
STADR CITY ST ZIP DATEFST YRGOAL CONTACT
-----
--------------- --------------- ---------- -- ----- --------- ---------
------------
11111 Stephen
Daniels 123 Elm St Seekonk MA 02345 03-JUL-98 500 John Smith
12121
Jennifer Ames 24 Benefit St Providence RI 02045 24-MAY-97 400 Susan Jones
22222 Carl
Hersey 24 Benefit St Providence RI 02045 03-JAN-98 Susan Jones
23456 Susan
Ash 21 Main St Fall River MA 02720 04-MAR-92 100 Amy Costa
33333 Nancy
Taylor 26 Oak St Fall River MA 02720 04-MAR-92 50 John Adams
34567 Robert
Brooks 36 Pine St Fall River MA 02720 04-APR-98 50 Amy Costa
6 rows
selected.
PART A of Assignment #1:
Create
a donor table of your own with the layout described above and the data shown
above. Note that you need to enter null for the YRGOAL of Carl Hersey. To do
this, use the word NULL instead of the data when you are inserting rows into
your table.
PART B of Assignment #1:
Do
the following queries. Show the query and show the result. To pass this in,
take the SQL and the results from Oracle and paste them into a Word document. You
should use the Courier New font. Send me the Word document via email. If you
use another word processor, please make sure I can open the document in Word.