Dbms Sem 3 IT
Dbms Sem 3 IT
Dbms Sem 3 IT
Q.1. Write answers for any two questions from below. (5 marks each – Word limit –
500)
A.Discuss the mechanism of attribute relationship inheritance. How is it useful?
B.Find the sids of suppliers who supply some red or green part
C.Find the names of the parts supplied by "RamRaj"
Q.2. Write short notes on all of the following topics (1 mark each - Word limit - 100)
A.Updatable view
B.What is a surrogate key? How can it be used for schema refinement?
C.What is Functional Dependency?
D.What is the need of data model in DBMS and give its classification?
E.Aggregation
ANSWER 1 A)
ANSWER 1 C)
ANSWER 2
A. Updatable View:
An updatable view is a database view that allows users to perform data modification
operations such as INSERT, UPDATE, and DELETE directly on the view. In other
words, changes made to the view are propagated to the underlying base tables, and
vice versa. Updatable views provide a convenient way to interact with data by
presenting a logical subset of data from one or more tables while maintaining
consistency and integrity.
B. Surrogate Key:
C. Functional Dependency:
Functional dependency is a concept in database management that describes the
relationship between attributes in a relation or table. It states that the value of one
attribute (dependent attribute) is determined by the value of another attribute or a
combination of attributes (independent attributes). In other words, if two or more
attributes have a functional dependency relationship, the value of one attribute
uniquely determines the value of another attribute.
The need for a data model in a Database Management System (DBMS) arises from the
requirement to organize, structure, and represent data in a logical and consistent
manner. Data models serve as blueprints for designing databases, defining data
relationships, and facilitating communication between stakeholders involved in
database development.
E. Aggregation:
Aggregation in the context of databases refers to the process of combining multiple
rows of data into a single result set based on a specified grouping criterion.
Aggregation functions such as SUM, AVG, COUNT, MAX, and MIN are used to
perform calculations on grouped data. Aggregation is commonly used in SQL queries
to generate summary reports, calculate totals, averages, or other aggregate statistics
from raw data stored in database tables
INTERNAL ASSESSMENT 2
Q.1. Write answers for any two questions from below. (5 marks each – Word
limit – 500)
A.Find the sname, bid, and day for each reservation.
B.Explain about various constraints used in ER-model.
C.Find the sids of suppliers who supply every red or green part
Q.2. Write short notes on all of the following topics (1 mark each - Word limit -
100)
A.What is its importance?
B.Different types of database users.
C.The properties of a relation
D.Wait/Die & Wound/Wait protocols
E.Weak entity set
ANSWER 1 A)
ANSWER 1 B)
Attribute Constraints:
● Constraints applied to individual attributes within an entity to enforce
specific rules or conditions.
● Types of attribute constraints include:
● Unique Constraint: Ensures that each value in an attribute is
unique across all instances of the entity.
● Check Constraint: Enforces specific conditions or rules on the
allowable values for an attribute.
● Default Constraint: Specifies a default value for an attribute if no
value is provided during insertion.
● Example: In an Employee entity, the Social Security Number (SSN)
attribute may have a unique constraint to ensure each employee has a
unique SSN.
Multiplicity Constraints:
● Specifies the minimum and maximum number of instances of an entity
that can participate in a relationship.
● Types of multiplicity constraints include:
● One-to-One (1:1): Each entity instance in one entity set is
associated with exactly one entity instance in another entity set.
● One-to-Many (1:N): Each entity instance in one entity set is
associated with zero or more entity instances in another entity set.
● Many-to-One (N:1): Multiple entity instances in one entity set are
associated with a single entity instance in another entity set.
● Many-to-Many (M:N): Multiple entity instances in one entity set
are associated with multiple entity instances in another entity set.
● Example: A one-to-many relationship between Employees and Projects,
where each employee can be assigned to multiple projects but each
project is assigned to only one employee.
ANSWER 2
1. End Users: End users are the individuals or entities who interact directly with
the database system to retrieve, enter, or manipulate data. They may include
employees, customers, or other stakeholders who use database applications or
interfaces to perform specific tasks.
2. Application Developers: Application developers are responsible for designing,
developing, and maintaining database applications. They create software
applications that interact with the database system to perform data processing,
transactions, and business logic.
3. Database Administrators (DBAs): Database administrators are responsible for
managing and maintaining the database system. They perform tasks such as
database installation, configuration, security management, backup and
recovery, performance tuning, and monitoring.
4. Database Designers: Database designers are involved in the conceptual and
logical design of the database schema. They analyze requirements, model data
structures, define tables, relationships, and constraints, and optimize the
database design for efficiency and scalability.
5. Data Analysts: Data analysts analyze and interpret data stored in the database
to extract insights, trends, and patterns. They use querying, reporting, and data
visualization tools to analyze data and generate reports for decision-making
purposes.
6. Executives and Managers: Executives and managers rely on database systems
to access business intelligence, monitor performance metrics, and make
strategic decisions based on data-driven insights. They may use dashboards,
analytics tools, and custom reports to track key performance indicators and
evaluate organizational performance.
C. Properties of a Relation:
A weak entity set is an entity set in a database schema that does not have sufficient
attributes to uniquely identify its entities on its own. Instead, it depends on the
existence of a related entity set, called the identifying or owner entity set, and a
relationship between them.
A weak entity set must be associated with a strong entity set via a one-to-many
identifying relationship. It typically has a partial key, which is a set of attributes that,
in combination with the primary key of the owner entity set, uniquely identifies each
entity in the weak entity set. Weak entity sets are represented by double rectangles in
ER diagrams and are connected to their identifying entity sets by a double diamond
relationship.