340CISProjectdatabase 507

You might also like

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 3

‫المملكة العربية السعودية‬

Kingdom of Saudi Arabia ‫وزارة التعليم العالي‬


Ministry of Higher Education ‫جامعة نجران‬

Najran University ‫كلية علوم الحاسب ونظم المعلومات‬

Najran University
College of Computer Science and Information Systems

Course code :340CSS-3


Main Project

15/10/1445

Title: university

In this project, you will use a Database Management System to create and manipulate
a very small database system for a university Your task is to improve it to some
extent and implement the design as well as some queries against it. In this project, you
will use (Oracle)

Project Description: You need to develop a management information system to help


users at the administration level of the university easily viewing/tracking various
information about student how many student in department well as information about
sections, subject, department and teachers .

Data Model: We need to store information about university management


system; The university is organize into colleges each colleges identified by
unique col_no and col_name and phone each colleges has many departments
each departments identified by unique dept_no,dept_name and locations.
Each departments offers many course ,each course identified by unique
cours_cod,cours_name. description and course offered by many departments
and credit hours also keeps track of student’s
name(first_name,last_name) .unique student _id, current address and phones,
birthdate, gender and age ,
Each course has many section .Each section identified by unique section_no and
semester
Each teacher identified by unique teacher i_d ,name
(first_name,last_name ) ,email and salary , each teachers teaches many
‫المملكة العربية السعودية‬
Kingdom of Saudi Arabia ‫وزارة التعليم العالي‬
Ministry of Higher Education ‫جامعة نجران‬

Najran University ‫كلية علوم الحاسب ونظم المعلومات‬

students each teachers has many dependents each dependents has name and
sex

Other requirements are as follows.


1- Each student can be enrolled in an arbitrary number of courses, and an
arbitrary number of students can be enrolled in a course.
2- Each teacher teaches many course.
3- Each teacher work for one department.
4- Each teacher manages one department.
requirement: prepare the first phase of database design.
conceptual design ER Model
2. prepare the second phase of database design logical design convert the ER to
relation model (chapter 7).
Implementation requirement
implement your relations. Next, populate your relations with appropriate data.
Make sure each table in the database has enough number of tuples so that each
query gets a meaningful and reasonable size output. For this, you should store at
least 3 colleges 5 department for each colleges, 5 section for each department, 5
course for each department 5 students for each department and 5 teachers.

Finally, implement the following queries in SQL.


The queries are as follows.
1- Display the first_name of tachears who the second letter is m"
2- For each colleges find col_no and number of department.
3- For each department find first_name and maximum salary for all teachers
when the maximum s salary greater than7 000
4- Find the cours_name and last_name of teachers of courses in the art
department that have credits 3
5- Write a query to display the last name, department number, and department
name for all teachers work in deprment_name NEWT WORK
6- displays the dept_no, last name ,salary and email for every teacher in the CS
department

What you should hand in? You should print and submit a report that includes
‫المملكة العربية السعودية‬
Kingdom of Saudi Arabia ‫وزارة التعليم العالي‬
Ministry of Higher Education ‫جامعة نجران‬

Najran University ‫كلية علوم الحاسب ونظم المعلومات‬

(1) the E/R model for your database design together with reasonable
assumption(s) made,
(2) list of all schemas, and their attributes with appropriate data type. Also identify
the primary key for each schema together with the relationship between different
schemas.
(3) The print out of tuples in each table, the SQL queries and the output of your
queries against your database.
(4) prepare presentation for project.
5) Submit the document before presentation

Note: Every document related to your project must be printed and properly
bounded together with the identification of your name and NU student ID printed
on the cover page.

You might also like