SlideShare a Scribd company logo
1 of 1
Download to read offline
Create the following database using Oracle 10g.
Table: Students
Stud_ID(PK) Stud_Lname Stud_Fname Stud_MInitial Stud_Course Stud_Gender Stud_Age
1001 Bauer Jack T BSIT M 17
1002 Smith John M BSCS M 18
1003 Doe Jane S BSIS F 18
1004 Prince Harry K BSIS M 17
1005 Ella Cinder R BSIT F 17
1006 Benay Nancy B BSCS F 25
Table: Faculty
Emp_ID(PK) Emp_Lname Emp_Fname Emp_MInitial Emp_Gender
9001 Palermo Francis J M
9002 James Jesse J M
9003 De Guzman Janet K F
Table: Advisory
Stud_ID(PK) Emp_ID
1001 9001
1002 9002
1003 9002
1004 9003
1005 9007
1006 9001
Table: Subjects
Subject_Code(PK) Subject_Name Unit
CCS1000 Computer Fundamentals 3
CCS1100 Structured C Programming 3
CCS1200 Object Oriented Programming 3
CCS1300 Data Structures and Algorithm 4
CCS2000 Principles of Accounting 3
CCS2100 Fundamentals of Database Design 3
Then create the following queries:
1. Show all students
2. Show all male students
3. Show all 17 year-old students
4. Show all subject names and their corresponding units
5. Show subjects with 3 units
6. Show all Faculty’s full name
Create ONLY using SQL scripts. Copy and paste the script in a notepad and pass your work.
Filename: 03_StubCode_Lastname.txt
Ex. 03_1990_Eregia.txt

More Related Content

More from Jotham Gadot

C++ beginner's guide ch08
C++ beginner's guide ch08C++ beginner's guide ch08
C++ beginner's guide ch08Jotham Gadot
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Jotham Gadot
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Jotham Gadot
 
Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Jotham Gadot
 

More from Jotham Gadot (6)

Case study 2
Case study 2Case study 2
Case study 2
 
C++ beginner's guide ch08
C++ beginner's guide ch08C++ beginner's guide ch08
C++ beginner's guide ch08
 
Chap02
Chap02Chap02
Chap02
 
Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02Fundamentals of Database ppt ch02
Fundamentals of Database ppt ch02
 
Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01Fundamentals of Database ppt ch01
Fundamentals of Database ppt ch01
 
Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03Fundamentals of Database ppt ch03
Fundamentals of Database ppt ch03
 

Database using oracle 10g

  • 1. Create the following database using Oracle 10g. Table: Students Stud_ID(PK) Stud_Lname Stud_Fname Stud_MInitial Stud_Course Stud_Gender Stud_Age 1001 Bauer Jack T BSIT M 17 1002 Smith John M BSCS M 18 1003 Doe Jane S BSIS F 18 1004 Prince Harry K BSIS M 17 1005 Ella Cinder R BSIT F 17 1006 Benay Nancy B BSCS F 25 Table: Faculty Emp_ID(PK) Emp_Lname Emp_Fname Emp_MInitial Emp_Gender 9001 Palermo Francis J M 9002 James Jesse J M 9003 De Guzman Janet K F Table: Advisory Stud_ID(PK) Emp_ID 1001 9001 1002 9002 1003 9002 1004 9003 1005 9007 1006 9001 Table: Subjects Subject_Code(PK) Subject_Name Unit CCS1000 Computer Fundamentals 3 CCS1100 Structured C Programming 3 CCS1200 Object Oriented Programming 3 CCS1300 Data Structures and Algorithm 4 CCS2000 Principles of Accounting 3 CCS2100 Fundamentals of Database Design 3 Then create the following queries: 1. Show all students 2. Show all male students 3. Show all 17 year-old students 4. Show all subject names and their corresponding units 5. Show subjects with 3 units 6. Show all Faculty’s full name Create ONLY using SQL scripts. Copy and paste the script in a notepad and pass your work. Filename: 03_StubCode_Lastname.txt Ex. 03_1990_Eregia.txt