ASSIGNMENT SEPTEMBER 2022 SEMESTER
SUBJECT CODE:CDS300SUBJECT TITLE:DATABASE SYSTEMSLEVEL:BACHELORSTUDENT’S NAME:Qonita QotrunnadaMATRIC NO.:PROGRAMME:BICT (HONS)ACADEMIC FACILITATOR:LEARNING CENTRE:INSTRUCTIONS TO STUDENTS
1)This assignment consists of
FIVE (5)
questions
.
Answer
ALL
questions.2)Plagiarism in all forms is forbidden. Students who submit plagiarised assignment will bepenalised.3)Your assignment will be examined based on the followings
a complete working solution.
ability of using methods available in the learning materials.4)This assignment carries a
60%
weightage toward final grade.
THERE ARE SIX [6] PAGES OF QUESTIONS, INCLUDING THIS PAGE.
INSTRUCTION. Answer ALL questions. [Total : 60 Marks]Question 1
Refer
Figure 1
. Figure 1: Database System Environmenta)Briefly explain the following functions of DBMS software as shown in
Figure 1
:i.Software to process queries/programs
Note: You may include the definition of “query” in your explanation
Answer:
Query is a command that has the ability to set a data that must bedisplayed or the data that is displayed as desired. In addition, the query isthe syntax or command that is used so that we can interact between thequery in the databaseii.Software to access stored data
Answer:
Database software is software that is used to create and manage databasestructures (databases) and to access data. Database software is alsocommonly referred to as a database management system.
[4 Marks]b)Define
Stored Database Definition (Meta-Data)
and provide
ONE (1)
example.
Answer:
Metadata is a collection of data that can be created manually or with the helpof tools. If the data is in the form of text, the metadata example will be thefield name, length, and the field type which is integer, character, date.
[6 Marks]
[Total : 10 Marks]Question 2
Given read/write conflict scenarios in
Figure 2:
Figure 2 : Read/Write Conflict Scenarios a)Briefly explain the scenario of
T1
and
T2
in
Figure 2
.[5 Marks]b)
Locking methods
can be applied in the scenario. Briefly explain what will happen to
T2
if the method is applied.[5 Marks]
[Total : 10 Marks]Question 3
Consider the following relations for a database that keeps track of student enrollment incourses and the books adopted for each course:
STUDENT(SSN, Name, Major, Bdate)COURSE(Course#, Cname, Dept)ENROLL(SSN, Course#, Quarter, Grade)BOOK_ADOPTION(Course#, Quarter, Book_ISBN)TEXT (Book_ISBN, Book_Title, Publisher, Author)
Specify the foreign keys for this schema and state any assumptions that you make.
Answer:
Foreign key list:1.‘SSN’ in the Enroll entity2. ‘Course#’ in the Enroll entity3.‘Quarter’ in the Book Adoption entity4.‘Book_ISBN’ in the Text entity
My asumptions is Student entity and Course entity is a Regular entity (Strong typeentity) because independent of any other entity in a schema, it does not haveforeign key, just primary key. The primary key in Student entity is ‘SSN’, TheStudent entity is a parent entity of Enroll entity. The primary key in Course entity is‘Course#’, the Course entity is a parent entity of Enroll entity and Book Adoptionentity.Enroll entity is a entity that has 2 Foreign key and 1 primary key. The Foreign keyis ‘SSN’ from Student entity and ‘Course#’ from Course entity. The Primary key is‘Quarter’, it’s a parent entity of Book Adoption entity.Book Adoption entity is a entity that has 2 Foreign key and 1 primary key. TheForeign key is ‘Course# from Course entity and ‘Quarter’ from Enroll entity. ThePrimary key is ‘Book_ISBN’, it’s a parent entity of Text entity.