Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Computer Information Systems Department

Spring Semester 2019/ 2020

Database Applications CIS421 – Internal Lab

Lab#1-Practice

1. Create the following two tables using oracle apex:

Teacher
Column Name Data Type Constraint
TID Number PK
TName Varchar2 Not Null
Address Varchar2

Student
Column Name Data Type Constraint
SID Number PK
SName Varchar2
GPA Number
TID Number FK

2. Insert the following rows into tables:

Teacher
TID TName Address
101 Noor Irbid
102 Alaa Amman

Student
SID SName GPA TID
10 Ahmad 82 101
20 Omar 79 101
30 Sarah 90 102
3. Retrieve all students whose GPA is greater than 80.

4. Move all teachers whom lived in irbid to Jarash.

5. Retrieve Number of Students for each teacher.

6. Retrieve all student names with their teacher names.

You might also like