0% found this document useful (0 votes)
42 views3 pages

Database Management System Question Bank

This document is a question bank for the Database Management System course at Mysore University, focusing on Module 2. It includes a variety of questions related to relational models, constraints, operations, and algebra in databases. The questions aim to assess understanding of key concepts such as relations, keys, and operations in database management.

Uploaded by

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

Database Management System Question Bank

This document is a question bank for the Database Management System course at Mysore University, focusing on Module 2. It includes a variety of questions related to relational models, constraints, operations, and algebra in databases. The questions aim to assess understanding of key concepts such as relations, keys, and operations in database management.

Uploaded by

harshikagowda216
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, 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:

Question Bank – Module 2

Sl. Questions
No.
1. Define the following: (a) Relation (b) Relational model (c) Domain (d) Attribute (e) Tuple
(f) Relation Schema (g) Degree (h) Cardinality (i) Relational Database Schema (j)
Relation Instance.

2. Discuss characteristics of relations.

3. Explain the different relational model constraints.

4. Define the following: (a) Super key (b) Key (c) Candidate key (d) primary key
(e) Foreign key.

5. Explain the three basic operations that change the states of relation in database with examples.

6. Consider the following relations and discuss all constraints violations by each operation, if
any suggest the different ways of enforcing these constraints by apply following update
operations.

1. Operation:
Insert (1004,’smith’,’jones’, 2) into student relation.
2. Operation:
Insert (004,’smith’,’jones’, 55000, 5) into instructor relation.
3. Operation:
Insert (4,’ML’, B5) into Department relation.
7 Explain the unary relational algebra operations in detail with examples.

8. Explain the set theory relational algebra operations in detail with examples.

9. Explain the binary relational algebra operations in detail with examples.

10. Write short notes on aggregate functions and grouping.

11. Illustrate recursive closure operation with example.

12. Explain the OUTER JOIN operations.

13. Write short note on OUTER UNION Operation.


14. Describe the steps of an algorithm for ER to relational mapping with example.

15. What are the basic operations that can change the states of relations in the database? Explain
how the basic operations deal with constraints violations.
16. Consider the following relations and discuss all constraints violations by each operation, if
any suggest the different ways of enforcing these constraints by apply following update
operations.

Common questions

Powered by AI

Set theory operations such as UNION, INTERSECT, and DIFFERENCE in relational algebra allow databases to manage multiple datasets concurrently and perform set-based operations. This contributes to efficient data management, enabling powerful query capabilities that reflect real-world data manipulation tasks .

The recursive closure operation allows for evaluating paths of indefinite length, essential for hierarchical or network data structures, like organizational charts or transportation routes. For example, finding all employees under a manager regardless of the hierarchy level uses recursive closure to explore these relationships dynamically .

Outer join operations, including left, right, and full outer joins, include unmatched rows from one or both input tables, effectively filling in missing information. These operations are crucial when consolidating datasets with different levels of completeness, ensuring no data is inadvertently omitted from query results .

ER to relational mapping transforms high-level conceptual models into logical schema, guiding database design. It ensures entities and relationships are accurately represented as tables and foreign keys, preserving data consistency and integrity, and simplifying the translation from conceptual analysis to actual database application .

A relational database schema defines the logical structure and constraints of the database, ensuring data integrity, consistency, and efficiency. It helps organize data, imposes constraints like primary/foreign keys, and dictates permissible relationships between tables. Poorly designed schemas can lead to data redundancy, inconsistency, inefficient queries, and maintenance difficulties, compromising the system's reliability .

Aggregate functions, such as COUNT, SUM, AVG, MIN, and MAX, perform calculations on a set of values to return a single scalar result. Grouping, using GROUP BY clauses, organizes data into summary rows based on one or more columns. Together, they allow users to perform data summaries and analyses, essential for meaningful data insights and reports .

A super key is any set of attributes that uniquely identifies a tuple within a relation. A candidate key is a minimal super key; a relation can have multiple candidate keys. The primary key is a chosen candidate key deemed ideal for uniquely identifying records. Foreign keys, on the other hand, are attributes in one table that refer to candidate keys in another, maintaining referential integrity between tables .

Unary relational algebra operations, such as SELECT and PROJECT, operate on a single relation to filter or transform data. Binary operations, like JOIN and UNION, require two relations and involve combining or merging datasets. Both types are necessary as they provide a complete set of tools for data manipulation: unary operations are used to simplify data extraction, while binary operations are essential for merging and integrating data from multiple sources .

A relation in a database management system is essentially a table with columns and rows. The columns represent attributes, and the rows represent tuples. In contrast, a relational model is a theoretical framework for understanding and implementing databases that includes the definition of data structures, constraints, and manipulative operations. It dictates how data is logically structured and accessed .

Constraints violations during update operations can be addressed through various methods: enforcing referential integrity by ensuring foreign keys match primary keys; using cascade options to automatically update or delete dependent records; implementing triggers to handle complex checks; and utilizing validation rules to preemptively block illegal inserts or updates. These methods ensure the database maintains its integrity and prevents invalid data states .

You might also like