0% found this document useful (0 votes)
227 views7 pages

DBMS Assignment 1

The document discusses database design for a university registration system. It describes different users of the database like registration office users, admissions office users, and professors. It also provides examples of constraints that can be placed on the schema like requiring certain fields to be unique identifiers. The document asks questions about choosing an appropriate database architecture for an airline reservation system and identifying unique fields in tables.

Uploaded by

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

DBMS Assignment 1

The document discusses database design for a university registration system. It describes different users of the database like registration office users, admissions office users, and professors. It also provides examples of constraints that can be placed on the schema like requiring certain fields to be unique identifiers. The document asks questions about choosing an appropriate database architecture for an airline reservation system and identifying unique fields in tables.

Uploaded by

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

DBMS ASSIGNMENT #1

TEBANDEKE JAMES FRANCIS


DCS/18/016M

QUESTION 1:Think of different users for the database shown in Figure 1.2. What
types of applications would each user need? To which user category would each
belong, and what type of interface would each need?

Registration Office User:


 Register a student in a section of a course
 Check whether a student who is registered in a course has the appropriate prerequisite
Courses.

 Application programmers can write a number of canned transactions for the registration

Admissions Office USER:


 New admissions each semester
 List of students who got accepted/denied

Registration Office User:


 Register a student in a section of a course
 Check whether a student who is registered in a course has the appropriate prerequisite
Courses.

 Application programmers can write a number of canned transactions for the registration

Professors/Faculty members USER:


 Keep the records of all students.
 Track performances based on their overall
performances.
 To schedule a meeting with the student.
 Track performances based on their overall
performances.
 Advising students on their courses.
They will use Form-based/ Parametric Interface
QUESTION2: Choose a database application with which you are familiar. Design a schema and
show a sample database for that application, using the notation of Figures 1.2 and 2.1. What types of
additional information and constraints would you like to represent in the schema? Think of several
users of your database, and design a view for each.

 Choose a database application with which you are


familiar. Design a schema and show a sample database for that application, using the notation of
Figures 1.2 and 2.1. What types of additional information and constraints would you like to represent
in the schema? Think of several users of your database, and design a view for each.

Library management system

 Schema:

BOOK
ISBN Title Publisher

BOOK_AUTHORS
ISBN Name

BOOK_COPIES
ISBN Branch_ID No_of_Copies

BOOK_LOANS
ISBN Branch_ID Card_No Date_Out Due_Date

LIBRARY_BRANCH
Branch_ID Branch_Name Address

BORROWER
Card_No Name Address Phone
 Sample Database:

BOOK
ISBN Title Publisher
123456 Paper Towns Pub1
334455 The Last Leaves Falling Pub4
997545 The Art of Being Normal Pub1

BOOK_AUTHORS
ISBN Name
334455 Lisa Wang
334455 John Bradley
997545 Ed Thomson
123456 Eric Raymond

BOOK_COPIES
ISBN Branch_ID No_of_Copies
123456 11 6
123456 12 10
997545 14 2
334455 11 1

BOOK_LOANS
ISBN Branch_ID Card_No Date_Out Due_Date
334455 11 903 11/9/2015 11/10/2015
123456 11 915 9/3/2015 9/4/2015
123456 12 920 1/1/2015 1/2/2015
997545 14 920 13/4/2015 13/5/2015

LIBRARY_BRANCH
Branch_ID Branch_Name Address
11 Main Branch Olaya St
12 Rabwa Branch Malaz
14 Rawdah Branch Makkah Rd
15 Dariyah Branch Prince Turki

BORROWER
Card_No Name Address Phone
903 John Smith 123 F St 555-4987
915 Susan Benson 490 Main St 555-2222
920 Richard Wily 111 Maple St 498-0000

 Constraints:
These are examples of constraints. Students may suggest different ones.

The following fields (columns) or combination of fields should have unique values within their tables:

 BOOK (ISBN)
 BOOK_AUTHORS (ISBN,Name)
 BOOK_COPIES (ISBN, Branch_ID)
 BOOK_LOANS (ISBN, Branch_ID, Card_No)
 LIBRARY_BRANCH (Branch_ID)
 BORROWER (Card_No)

The values in the following fields in their tables should have matching values in the corresponding
tables:

 BOOK_AUTHORS (ISBN) must have a matching value in BOOK (ISBN)


 BOOK_COPIES (ISBN) must have a matching value in BOOK (ISBN)
 BOOK_COPIES (Branch_ID) must have a matching value in LIBRARY_BRANCH (Branch_ID)
 BOOK_LOANS (ISBN) must have a matching value in BOOK (ISBN)
 BOOK_LOANS (Branch_ID) must have a matching value in LIBRARY_BRANCH (Branch_ID)
 BOOK_LOANS (Card_No) must have a matching value in BORROWER (Card_No)

The data type of some fields can be restricted as follows:

 The ISBN field in all tables is a 6 digit number


 Number_of_Copies is integer
 Title is string
 Date_Out and Due_Date are of Date data type with the format dd/mm/yyyy
 …
QUESTION 3: If you were designing a web -based system to make airline
reservation and sell airline tickets, which DBMS architecture would you choose
from section 2.5? why? Why would the other architectures not be a good choice?
Answer:

2.5.4 Three-Tier Client/Server Architecture for Web Application is the best choice. The Client
consists of Web User Interface. The Web Server contains the application logic which includes all the
rules and regulations related to the reservation process and the issue of tickets; the Database
Server contains the DBMS.

2.5.1 Centralized DBMS Architecture would not work since the user interface and database server
are on different machines for a web-based system.

2.5.2 Basic Client/Server Architecture and 2.5.3 Two-Tier Client/Server Architecture would work if
the Business Logic can reside on server other than the DBMS Server. In general, if the business
logic was on the DBMS Server, it will put an excessive burden on the server. If the business logic
were to reside on the web client, it will burden the communication network as well a possibly thin
client.

QUESTION 4: Consider Figure 2.1. In addition to constraints relating the values of columns in
one table to columns in another table, there are also constraints that impose restrictions on values in a
column or a combination of columns within a table. One such constraint dictates that a column or a
group of columns must be unique across all rows in the table. For example, in the STUDENT table, the
Student number column must be unique (to prevent two different students from having the same
Student number). Identify the column or the group of columns in the other tables that must be unique
across all rows in the table.

Sl.n Table Column/Columns Constrains


o
1. STUDENT Student_number -Student number should be unique
across all rows in the table to avoid
overlapping of the tables if any two
students have same names in a section.
2. COURSE Course_number -No two course number can be same,
course number determines the
department and course name itself.
-If any new course is added to the
catalog then it must be assigned a
unique number to differentiate from
the existing ones.
3. PREREQUISITE Prerequisite_number - Prerequisites are unique because they
depend on the course in the section
table.
-Few courses have prerequisites, few
don’t so it is really important to make
sure that Prerequisite_number is
unique.
4. SECTION Section_Identifier -Sections offered in a particular
semester must be different to avoid the
overlapping of the classes.
-This would affect the registration
process as also.
-It also depends on the year if the
course is newly added.
-It depends on the professor if he wants
to add an extra sction or not based on
the number students enrolled.
5. GRADE_REPORT Student_number -Student number should be unique as
mentioned above even though they
& have same names.

Section_Identifier -Section Identified is a unique number


as stated above as it depends on the
semester, year the course is offered.

You might also like