COMP 2605 LAB 1
COMP 2605 LAB 1
St. Augustine
Department of Computing and Information Technology
COMP 2605 – Enterprise Database Systems
ORACLE LAB # 1
1. Write an SQL create table statement to create a new table called Department with the following
specifications
2. Write SQL insert statements to insert the following data into the Department table
3. Write an SQL create table statement to create a new table called Employees with the following
specifications
Page 1 of 3
4. Write an SQL insert statements to insert the following data into the Employees table
5. Run the script InstEmp.sql to populate the remaining tuples in the Employees table.
8. Insert a row of data into the Vendor table with Vendor Id ‘DL’ and name ‘Dangers Ltd’.
9. Insert the following row of data into the Vendor table as it appears in the list
Page 2 of 3
NOT NULL; Must
be greater than or
UnitsInStock Number,Size:3 equal to zero
ReorderQuantity Number,Size:3
ReorderFlag Char,Size:1 Default: N
13. Create a sequence called testSequence, which starts with 1 and increments by 1.
15. Use the ‘testSequence’ sequence to insert the numbers 1 to 10 in the SequenceTest table.
Page 3 of 3