0% found this document useful (0 votes)
28 views4 pages

DBMS Question Bank and Design Scenarios

The document is a question bank focusing on database management systems, covering topics such as data abstraction, differences between file processing systems and DBMS, data models, SQL operations, and entity-relationship models. It includes both theoretical questions and practical scenarios for designing databases for various applications like online learning platforms, library management systems, and hospital management systems. Additionally, it contains exercises related to SQL queries, DDL implementation, and E-R diagram notation.

Uploaded by

jayapriya kce
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)
28 views4 pages

DBMS Question Bank and Design Scenarios

The document is a question bank focusing on database management systems, covering topics such as data abstraction, differences between file processing systems and DBMS, data models, SQL operations, and entity-relationship models. It includes both theoretical questions and practical scenarios for designing databases for various applications like online learning platforms, library management systems, and hospital management systems. Additionally, it contains exercises related to SQL queries, DDL implementation, and E-R diagram notation.

Uploaded by

jayapriya kce
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

Question Bank

2 marks

[Link] the term Database Management System? Why do we need a DBMS?

[Link] the term data abstraction.

[Link] the differences between file processing system and a DBMS

[Link] out three major disadvantages of keeping organizational information in a file


processing system.

[Link] to define data model? List out different types of data models?

[Link] the difference between primary key and foreign key?

[Link] between Dynamic SQL and Static SQL.

[Link] a short note on entity relationship model.

[Link] derived attributes with suitable example.

10..How does redundancy create challenges in different situations?

[Link] the different types of Data models?

[Link] the usage of the rename operation with an example.

[Link] the sql for commit and rollback.

[Link] can a data model be applied to organize and structure information effectively?

[Link] between Primary Key and Foreign Key?

[Link] basic structure of PL/SQL.

[Link] database design, how can a weak entity be recognized and used?

[Link] the components of E-R Diagram

[Link] relational algebraic projection.

20. How does redundancy create challenges in different situations?

Part B
[Link] you are tasked with designing the database
architecture for a rapidly growing online learning platform.
The platform needs to handle a large number of users, course
materials, video streaming, and real-time interactions like
quizzes and discussions. How would you structure the database
to ensure scalability, data integrity, and optimal performance
while accommodating future growth?

[Link] you are designing a database for a library


management system. The system needs to track books,
members, and borrowing transactions while ensuring data
integrity and efficient retrieval of information. How would you
use keys (primary, foreign, and candidate keys) and
relational algebra operations to structure the database and
optimize queries for book availability and member borrowing
history?

[Link] you are developing a database for a hospital


management system. The system needs to store information
about patients, doctors, appointments, treatments, and
[Link] would you use the Entity-Relationship (ER) model
to design the database structure, ensuring proper relationships
between entities and efficient data retrieval?

[Link] are designing a database for a multinational company


that manages employees across multiple departments and
locations. The company has different types of employees,
including full-time, part-time, and contract workers, each with
unique attributes and [Link] would you use the Enhanced
Entity-Relationship (EER) model to represent specialization,
generalization, and inheritance in the database design to ensure
flexibility and efficiency?

[Link] the following relations for a company database


Application.

Employee (Eno, Name, Gender, DOB, Doj, Designation,


Basic_Pay, Dept_No)

Department (DeptNo,Name)

Project (ProjNo, Name, Dept_No)

Works for (Eno,ProjNo,Date, Hours)

i)Develop DDL to implement the above schema.

(ii) Develop an SQL query to list the department number and


the number of Employee in each department.

(iii) Develop a View that will keep track of the department


number, the number of employees in the department, and the
total basic pay expenditure for each department.

(iv) Develop an SQL query to list the details of employees who


have worked in more than three projects on a day.

6. Consider a student registration database comprising of the


given below table schema.

Student file:

Studen Studen Addres Teleph


t t name s one
numbe
r

Course file

Course Descri Hours Profess


Numbe ption or
r Numbe
r
Professor file

Profess Name office


or
Numbe
r

Registration file

Studen Course date


t numbe
numbe r
r

Consider a suitable example of tuples/records for the above


mentioned tables and write DML statements (SQL) to answer
for the queries.

7. How can E-R diagram notation be applied to represent an E-


R model structure? Explain with an example.

8. Develop an Entity Relationship model for a student attends


classes. Each class divided into one or more sections and the
given entities are student, class, section, subject

Common questions

Powered by AI

To ensure scalability, data integrity, and optimal performance, use of partitioning and sharding can distribute data across different servers, accommodating growth and balancing load . Implementing normalization reduces redundancy and inconsistencies, enhancing data integrity. Indexing critical fields can optimize query performance while ensuring that databases are flexible to adapt to changing user requirements and data volumes . Regular audits and updates to the database schema can preemptively address scalability issues .

Dynamic SQL allows for the construction and execution of SQL commands at runtime, offering flexibility to accommodate varying user inputs and conditions . Static SQL, on the other hand, involves predefined queries embedded in code, providing performance benefits due to its ability to precompile and optimize commands . Dynamic SQL's flexibility supports complex applications requiring adaptability, while static SQL's stability and predictability aid in scenarios demanding performance and security .

Primary and foreign keys are essential for linking tables in a relational database, ensuring referential integrity and efficient data retrieval. In systems like library management, primary keys uniquely identify records such as books, while foreign keys create associations between tables, such as linking books with borrowing transactions . In online learning platforms, these keys can connect users with courses and track interactions and progress .

The EER model expands upon the traditional ER model by incorporating features such as specialization, generalization, and inheritance, allowing the representation of hierarchical data and complex relationships . Specialization allows for defining subclasses with distinct attributes, while generalization enables the abstraction of common features into a superclass, promoting data reuse and organization . This is useful in complex databases like those for multinational companies, facilitating flexibility and efficient data management .

Data abstraction is critical because it separates the logical representation of data from the physical storage, allowing database systems to manage data complexity and maintain scalability and changeability without affecting application logic . It enables different views of the data for different users and enhances security by preventing unauthorized access to certain details .

The ER model helps design effective database structures by representing entities such as patients, doctors, appointments, treatments, and billing as distinct objects with clear relationships among them . This model allows for the specification of relationships like one-to-one, one-to-many, and many-to-many, ensuring clarity in data structure. It also supports the accurate modeling of complex data interactions, facilitating efficient data retrieval and management .

The major differences between a file processing system and a Database Management System (DBMS) include data redundancy and inconsistency, where DBMS reduces duplication and ensures consistency . DBMS also introduces data abstraction and independence, providing a systematic structure for data storage and retrieval compared to ad-hoc file systems . Unlike file systems, DBMS supports concurrent access and transaction management, ensuring data integrity and consistency during simultaneous accesses .

Redundancy creates challenges by leading to data inconsistency, where duplicated data may have different values across systems . It increases storage costs and complicates data management tasks, as changes in data need to be consistently reflected in multiple places . Furthermore, redundancy often leads to difficulties in ensuring data integrity and accuracy .

Data models provide the framework for defining the structure and organization of data within a database, allowing for the precise representation of data relationships and constraints. Different types of models, such as hierarchical, network, and relational, cater to varied organizational needs, enabling tailored solutions for effective data management and retrieval . These models help maintain consistency and enforce rules across the database, supporting scalability and adaptability .

The components of an E-R diagram include entities, represented as rectangles, attributes as ovals, and relationships as diamonds. Entities are objects such as people or concepts, attributes provide details about entities, and relationships define how entities interact. This visual representation allows for a clear and logical database structure, essential for understanding data interactions and designing efficient databases .

You might also like