0% found this document useful (0 votes)
22 views2 pages

Database Management System Question Bank

This document is a question bank for the Database Management System course at Mysore University, focusing on various aspects of relational schema design and normalization. It includes questions on functional dependencies, candidate keys, normal forms, and inference rules, among other topics. The questions are designed to assess students' understanding of database concepts and their applications.

Uploaded by

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

Database Management System Question Bank

This document is a question bank for the Database Management System course at Mysore University, focusing on various aspects of relational schema design and normalization. It includes questions on functional dependencies, candidate keys, normal forms, and inference rules, among other topics. The questions are designed to assess students' understanding of database concepts and their applications.

Uploaded by

alffygayd
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

MYSORE UNIVERSITY SCHOOL OF ENGINEERING

Manasagangotri campus, Mysore


(Approved by AICTE, New Delhi)

DEPARTMENT OF ARTIFICIAL INTELLIGENCE & MACHINE LEARNING

Subject & Code: Database Management System (21AI53)


Semester: V Semester
Faculty Name: Mrs. Amreen Kouser

Question Bank – Module 2

1. Explain in detail the informal design guidelines for relational schema design.
2. Mention the need for normalization. Explain the update anomalies with suitable example.
3. Define Functional Dependency. Explain Full and Partial functional dependency with an example.
4. Explain the different types of Functional dependency with an example.
5. Given Relation R (ABCD) and FDs {A → B, B → C, C → D, D→ A}. Find out Candidate Key,
Prime Attribute & non-prime Attribute.
6. Given Relation R (ABCD) and FDs {A → B, B → C, C → D}. Find out Candidate Key, Prime
Attribute & non-prime Attribute.
7. Given Relation R (ABCDE) and FDs {A → B, BC → D, E → C, D→ A}. Find out Candidate Key,
Prime Attribute & non-prime Attribute.
8. Given Relation R (ABCD) and FDs {A B→ CD, D→ A}. Find out Candidate Key, Prime Attribute
& non-prime Attribute.
9. Define the following:
(i) Normalization (ii) Super key (iii) Candidate key (iv) Primary key (v) Secondary key (vi)
Non-prime attribute (vii) Prime attribute.
10. Explain the following with example:
(i) First Normal Form(1NF) (ii) Second Normal Form(2NF) (iii) Third Normal Form(3NF)
(iv) Boyce-Codd Normal Form (BCNF) (v) Fourth Normal Form(4NF) (vi) Fifth Normal
Form(5NF)
11. Explain the three main techniques to achieve the first normal form for a given relation.
12. Explain the inference rules or Armstrong inference rules for functional dependency.
13. Consider two set of functional dependencies F = {A→ C, AC→ D, E→ AD, E→ H} and G= {A→
CD, E→ AH}. Are they equivalent?
14. Given below are two set of FDs for a relation R(A, B, C, D, E). Are they equivalent? F: {A→ B,
AB→ C, D→ AC, D→ E} G: {A→ BC, D→ AE}.
15. Define minimal cover.. Find the minimal cover for given set of FDs be E :{B→A, D→A, AB→D}.
16. A relation R satisfies the following FDS : A→ C, AC→ D, E→ AD, E→ H Find the cover for this
set of FDS.
17. A relation R satisfies the following: FDS : B→ A, D→ A, AB→ D Find the cover for this set of
FDS.
18. What do you mean by Multivalued Dependency? Explain the 4NF with example.
19. Which normal form is based on transitive dependency and full functional dependency? Explain the
same with an example.
20. Explain Properties of Relational Decompositions.
21. Explain with suitable example the Dependency preservation property and Nonadditive (Lossless)
Join property.
22. Write short note on:
i) Domain key Normal form
ii) Null value and dangling tuples

Common questions

Powered by AI

Partial functional dependency occurs when a non-prime attribute is functionally dependent on a part of a candidate key. This can lead to redundancy and anomalies because changes to a part of the key may necessitate multiple updates. Full functional dependency occurs when a non-prime attribute is functionally dependent on the whole candidate key, not just a part of it. Full functional dependencies are required for higher normal forms, reducing redundancies and anomalies, and maintaining a database in at least Second Normal Form (2NF).

Armstrong's inference rules for functional dependencies consist of three axioms: (1) Reflexivity: If Y is a subset of X, then X → Y. (2) Augmentation: If X → Y, then XZ → YZ for any Z. (3) Transitivity: If X → Y and Y → Z, then X → Z. These rules help in deriving all possible functional dependencies within a set and are instrumental in analyzing the logical structure of databases. They provide a framework for inferring all dependencies from a given set, ensuring consistency and integrity of data .

Achieving First Normal Form (1NF) involves three primary steps: (1) Eliminate repeating groups of data by ensuring atomicity, i.e., each column contains indivisible values. (2) Create separate tables for each unnormalized group of related data. (3) Identify each set with a primary key. This process is significant as it ensures the data structure is free of repeating groups and nested relations, leading to a more organized database that facilitates consistent query results and data manipulation .

Informal design guidelines for relational schema design are crucial as they help ensure that the database structure is efficient, consistent, and free from anomalies. These guidelines include: (1) Avoiding redundant information in tuples which can lead to anomalies such as update anomalies where a change in data requires multiple updates. (2) Ensuring atomicity where each attribute represents a single unit of information. This avoids unnecessary complexity in the data. (3) Avoiding too much null values by organizing schema to minimize null values that complicate queries and storage. (4) Avoiding spurious tuples which are erroneous results from improper joins. These guidelines help in maintaining data integrity and performance efficiency .

Multivalued Dependency (MVD) occurs when a relationship between attributes exists where one attribute multidetermines another, independently of other attributes. This can lead to redundant data and anomalies. 4NF addresses MVD by requiring that for every non-trivial multivalued dependency X ->> Y, X must be a superkey. Ensuring a relation is in 4NF eliminates redundancies associated with MVDs, thus improving database integrity and reducing unnecessary data duplication. It supports a clean database schema essential for efficient query performance .

To determine the candidate key for the relation R(ABCD) with the given functional dependencies {A → B, B → C, C → D}, we start by finding the closure of A, which is {A+, A, B, C, D}. Since A+ includes all other attributes, A is a candidate key. Consequently, A is a prime attribute, and B, C, D are non-prime attributes. This determination ensures that A uniquely identifies other attribute values within R .

Relational decompositions refer to dividing a database into smaller, more manageable relations. Key properties include lossless join, which ensures that no data is lost during decomposition and rejoining; dependency preservation, meaning all functional dependencies are preserved across decomposed tables; and reduced redundancy, minimizing data duplication. These properties significantly impact database consistency and efficiency by enhancing data integrity, optimizing queries, and reducing storage requirements, facilitating easier maintenance and updates .

To evaluate whether two sets of functional dependencies are equivalent, we apply the closure of attributes method: Calculate the closure of attributes in both sets to ensure all attributes can be derived identically. If both sets produce identical closures for the attributes, they are equivalent. This involves using the union and decomposition properties to ensure each set can derive the others' dependencies, thus ensuring equivalence in terms of defining database constraints and maintaining integrity .

A superkey is a set of attributes within a table whose values can uniquely identify a tuple in the relational database. While every candidate key is a superkey, not all superkeys are candidate keys, as a candidate key is a minimal superkey; that is, it has no unnecessary attributes. The distinction is crucial as candidate keys are more efficient for uniquely identifying records without redundancy or extraneous data components .

Normalization is the process of organizing the fields and tables of a relational database to minimize redundancy and dependency. It involves dividing a database into two or more tables and defining relationships between them to ensure consistency and avoid data anomalies. Normalization is necessary to reduce redundant data, avoid anomalies during data operations such as insertions, updates, and deletions, and ensure data integrity. It facilitates more efficient data storage and retrieval by logically structuring the database .

You might also like