0% found this document useful (0 votes)
10 views1 page

Question Set 44

Uploaded by

viduthulo03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views1 page

Question Set 44

Uploaded by

viduthulo03
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Question Set 44

The principal of Ranabima School in Kandy intends to create a software to enter the information of
teachers and students in that school. You are entrusted with the task of creating this software. Your
team is tasked with developing the database of this software. Database development work is shared
between you and everyone on the team. You are tasked with storing student and teacher information,
creating the tables needed to store the subjects that teachers teach and the subjects that students
learn. Use the instructions below to create it.

01) Create a database using the name of this school database as "ranabima_sch_db". Use DDL Query to create
this database.

02) The Principal has decided to include the information of Grade 9 students in the first phase of this software.
Create a student table to store student information. Follow the instructions below to create this table. Use
DDL Query to create this table.

Table Name student


Coloumn Name DataType Length NN PK AI
student_id INT   
first_name VARCHAR 45 
last_name VARCHAR 45 
gender VARCHAR 10 
contact_no VARCHAR 11 
class VARCHAR 10 

03) Create a teacher table to store teacher details, follow the instructions below when creating the table. Use
the DDL Query to create this table.

Table Name teacher


Coloumn Name DataType Length NN PK AI
teacher_id INT   
first_name VARCHAR 45 
last_name VARCHAR 45 
gender VARCHAR 10 
contact_no VARCHAR 11 
email VARCHAR 45 

04) The Principal has decided to include the main subjects that Grade 9 students will learn in the first phase of
this software. Create a subject table that will be used to store data. Follow the instructions below to create
this table. Use DDL Query to create this table.

Table Name subject


Coloumn Name DataType Length NN PK AI
subject_id INT   
subject_name VARCHAR 45 

You might also like