DBMS Prev QP Rubrics
DBMS Prev QP Rubrics
1a Discuss any four disadvantages of CSC40 Remember 02 0.5 - for discussing each
File Management System. 3.1 disadvantages
Soluti Data redundancy and inconsistency. Since different programmers create the files and
on application programs over a long period, the various files are likely to have different formats
and the programs may be written in several programming languages. Moreover, the same
information may be duplicated in several places (files).
Data Isolation: Since the data files are created at different times and supposedly by different
people the structures of different files generally will not match. The data will be scattered in
different files for a particular entity. So it will be difficult to obtain appropriate data.
Integrity problems. The data values stored in the database must satisfy certain types of
consistency constraints. For example, the balance of a bank account may never fall below a
prescribed amount (say,$25). Developers enforce these constraints in the system by adding
appropriate code in the various application programs. However, when new constraints are
added, it is difficult to change the programs to enforce them. The problem is compounded
when constraints involve several data items from different files.
Security problems. Not every user of the database system should be able to access all the
data. For example, in a banking system, payroll personnel need to see only that part of the
database that has information about the various bank employees. They do not need access to
information about customer accounts. But, since application programs are added to the
system in an ad hoc manner, enforcing such security constraints is difficult.
1b Describe any two Unary relational CSC40 Remember 02 1 - Explain first Unary
operations in brief. 3.1 operator (definition +
Example + Syntax)
1 - Explain second Unary
operator (definition +
Example + Syntax)
0.5 - partially explained
Soluti Select : It is used to select a subset of the tuples from a relation based on a selection
on condition.
❑ The selection condition acts as a filter.
❑ Also known as horizontal partition.
❑ In general, the select operation is denoted by: σ <selection condition> ( R)
For example, to select the EMPLOYEE tuples whose department is 4, or those whose salary
is greater than $30,000, we can individually specify each of these two conditions with a
SELECT operation as follows:
σDno=4(EMPLOYEE) σSalary>30000(EMPLOYEE)
The PROJECT operation: It selects certain columns from the table and discards the other
columns. If we are interested in only certain attributes of a relation, we use the PROJECT
operation to project the relation over these attributes only. Therefore, the result of the
PROJECT operation can be visualized as a vertical partition of the relation into two relations:
one has the needed columns (attributes) and contains the result of the operation, and the other
contains the discarded columns.
The general form of the PROJECT operation is : π<attribute list>(R)
For example, to list each employee’s first and last name and salary, we can use the PROJECT
operation as follows:
πLname, Fname, Salary(EMPLOYEE)
1d Differentiate between Strong and CSC40 Remember 02 0.5 for each difference
Weak entity sets. 3.1
Soluti
on
1e Define Data Abstraction with a CSC40 Remember 02 1 - Define Abstraction
suitable diagram. 3.1 1 - Diagram
0.5 - partially explained
Soluti Data Abstraction is a process of hiding unwanted or irrelevant details from the end user. It
on provides a different view and helps in achieving data independence which is used to enhance
the security of data.The database systems consist of complicated data structures and relations.
For users to access the data easily, these complications are kept hidden, and only the relevant
part of the database is made accessible to the users through data abstraction.
Mainly there are three levels of abstraction for DBMS, which are as follows −
● Physical or Internal Level
● Logical or Conceptual Level
● View or External Level
1f Differentiate between Primary key CSC40 Remember 02 0.5 - for discussing each
and Unique key. 3.1 difference
Soluti
on
● The system keeps track of the staff with a single point authentication system comprising login Id
and password.
● Staff maintains the book catalog with its ISBN, Book title, price (in INR), category (novel, general,
story), edition, author Number and details.
● A publisher has publisher Id, Year when the book was published, and name of the book.
● Readers are registered with their user_id, email, name (first name, last name), Phone no (multiple
entries allowed), communication address. The staff keeps track of readers.
● Readers can return/reserve books that stamps with issue date and return date. If not returned within
the prescribed time period, it may have a due date too.
● Staff also generate reports that have readers id, registration no of report, book no and return/issue
info.
Soluti
on
2b Design an ER diagram for the CSC40 Create 05 1 - for cardinality
following requirements of National 3.6 assumptions
Hockey League (NHL) Management 4 - for Complete ER
System database: (Assume cardinality design
ratio for each relationship based on
1/2/3 - Partial design
real world scenario.)
(depend how much points
covered)
Soluti
on
3a Consider the following relational CSC40 Evaluate 05 1 - for each correct query
database schema: 3.5 0.5 - for partially correct
query
Sailor (sid, sname, rating, age)
Boat (bid, bname, color)
Reserves (sid, bid, date)