2020 DBMS-MID Solution
2020 DBMS-MID Solution
Ans:
(c) The sum of all employees’ salaries
3.(a) What are advantages of DBMS over traditional file based systems? [3]
Ans
Controlling of Redundancy: Data redundancy refers to the duplication of
data (i.e. storing same data multiple times).In a database system, by having a
centralized database and centralized control of data by the DBA the
unnecessary duplication of data is avoided. It also eliminates the extra time
for processing the large volume of data. It results in saving the storage space.
Improved Data Sharing: DBMS allows a user to share the data in any
number of application programs.
Data Integrity: Integrity means that the data in the database is accurate.
Centralized control of the data helps in permitting the administrator to define
integrity constraints to the data in the database. For example: in customer
database, we can enforce integrity that it must accept the customer only from
Cuttack and Bhubaneswar city.
Security: Having complete authority over the operational data, enables the
DBA in ensuring that the only mean of access to the database is through
proper channels. The DBA can define authorization checks to be carried out
whenever access to sensitive data is attempted.
Efficient Data Access: In a database system, the data is managed by the
DBMS and all access to the data is through the DBMS providing a key to
effective data processing.
Data Consistency: By eliminating data redundancy, we greatly reduce the
opportunities for inconsistency. For example: a customer address is stored
only once, we cannot have disagreement to the stored values. Also updating
data values is greatly simplified when each value is stored in one place only.
Finally, we avoid the wasted storage that results from redundant data storage.
Data Independence: In a database system, the database management system
provides the interface between the application programs and the data. When
changes are made to the data representation, the metadata obtained by the
DBMS is changed but the DBMS is continues to provide the data to
application program in the previously used way. The DBMS handles the task
of transformation of data wherever necessary.
Enforcing Integrity Constraints
Providing Backup &Recovery
Providing Storage Structures for efficient query processing
(b) Discuss the roles of Data Analyst and Application Programmer. [2]
Ans
Data Analyst: A database analyst deals with database technologies that
warehouse information in very specific ways. A database analyst is part of
conventional corporate IT teams that maintain data assets through very
specific research and activities. A Data Analysts deliver value to their
companies by taking information about specific topics and then interprets,
analyzes, and presents findings in comprehensive reports.
Ans
a. ∏bid (σsid=567 (Reserves))
III. A lecturer can teach only one subject, where the subject has a subject_id,
subject_name, and duration. However, a subject can be taught by many
lecturers.
Two of the three expressions are equivalent (i.e., produce the same answer on
all databases), while one of them can produce a different answer. Which
query can produce a different answer? Give the simplest database instance
you can think of where a different answer is produced.
Ans: a and b are same but c will produce different result, because,
suppose, R(A,B) = {(A1,1),(A2,2)} and S(B,C) = {(1,C1)}
a. R NJ
A ,C B 1 S
A1 1
A,C NJ 1 C1
A2 2
A,C A1 1 C1
Same
A1 C1
b.
A B 1 R C B 1 S
A1 C1
A1 C1
c.
A,C A
R B 1 S
A1
A,C 1 C1
A2
A1 1 C1
A,C
A 2 1 C1
A1 C1
A2 C1