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

DBMS Assignment Questions Overview

This document is an assignment for a Database Management System course at Lumbini Engineering Management and Science College. It includes various questions covering topics such as early information processing systems, data independence, ER diagrams, database users, data abstraction, normalization, and SQL concepts. Students are instructed to provide detailed explanations and examples for each question and submit the assignment by the specified deadline.

Uploaded by

bashyalsamir57
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)
29 views3 pages

DBMS Assignment Questions Overview

This document is an assignment for a Database Management System course at Lumbini Engineering Management and Science College. It includes various questions covering topics such as early information processing systems, data independence, ER diagrams, database users, data abstraction, normalization, and SQL concepts. Students are instructed to provide detailed explanations and examples for each question and submit the assignment by the specified deadline.

Uploaded by

bashyalsamir57
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

LUMBINI ENGINEERING MANAGEMENT AND SCIENCE COLLEGE

(Pokhara University)
ASSIGNMENT
Subject: Database Management System (DBMS) Date: 2080/08/23
Instructions:
Answer all questions.
Provide detailed explanations and examples where necessary.
Submit the assignment by the specified deadline.

1. Discuss the problems in early information processing systems and highlight the role of
database management systems in your own word.
2. What is data independence? Explain the type of data independence.
3. What is schema? Explain the importance of view in database.
4. Draw an ER diagram for a database showing Hospital system. The Hospital maintains
data about Affiliated Hospitals, type of Treatments facilities given at each hospital,
and Patients.
5. What are different types of Database users and their roles?
6. What is data abstraction? Discuss three levels of this abstraction.
7. What are the components of ER diagram? Explain the function of various symbols use
in ER diagram. Construct an ER diagram to store data in a library of your college.
8. How does a view differ with relation? Define the role of view in security.
9. Explain the concept of DDL DML DCL with suitable example of each.
10. Consider the following supplier database, where primary keys are underlined:
11. Consider the following supplier database, where primary keys are underlined:
Supplier (supplier-id, supplier-name, city)
Supplies (supplier-id, part-id, quantity)
Parts (part-id, part-name, color, weight)
Construct the following relational algebra queries for this relational database
a) Find the name of all supplies located in city "Kathmandu".
b) Find the name of all parts supplied "ABC Company".
c) Find the name of all parts that are supplied in quantity greater than 300.
d) Find the number of parts supplied by "ABC Company'.
e) Find the name of all suppliers who supply more than 30 different parts.
12. Explain about database normalization and its importance. Explain 1NF, 2NF and 3NF
with suitable example.
13. Explain the use of primary and foreign key in DBMS with example. What is the role of
foreign key?
14. Define integrity constraint? Discuss domain constraint, referential integrity with
suitable example.
15. What is join operation? Differentiate between equijoin and natural join with suitable
example.
16. What is a view in SQL and how it is defined? Explain how views are typically
implemented.
17. How does “GROUP BY” clause work? What is the difference between “WHERE” and
“HAVING” clause? Explain with suitable examples.
18. Define Functional dependencies. Explain the types of functional dependencies?
19. Consider the following employee database:
20. Assume the database about company.

21. Define stored procedure. List the advantages and disadvantages of stored procedure.
Explain how stored procedure are created with example.
22. What do you mean by integrity constraints? Explain assertion and triggers in SQL with
their syntax.
23. What is database anomaly? Explain different types of database anomalies with
suitable examples.
24. Write short notes on:
a. Distributed Database
b. QBE (Query By Example)
c. Data Dictionary
d. Application of Database

Common questions

Powered by AI

A schema provides the structure or blueprint of a database, defining tables, fields, relationships, views, indexes, and other elements. It is crucial for maintaining data integrity and enforcing business rules. Views, on the other hand, are virtual tables representing a subset of the database, allowing for controlled access, encapsulation of complex queries, and separation between physical data storage and user interactions. Views enhance data security by restricting access to only pertinent data for specific users .

Normalization is a process of organizing data in a database to reduce redundancy and improve data integrity. 1NF ensures that each table cell contains atomic values and each record is unique. 2NF builds on 1NF by ensuring all non-key attributes are fully functionally dependent on the primary key. 3NF requires that no transitive dependencies exist, meaning non-key attributes must not depend on each other. These forms are applied to design databases that are efficient, reduce redundancy, and eliminate anomalies .

The equijoin operation combines columns from two tables based on a related column having the exact value, specified by a condition like ‘=’. For example, joining suppliers and supplies tables on supplier-id. The natural join implicitly uses all columns with the same name for criteria, assuming natural relationships without specifying conditions explicitly. For instance, joining employees and departments where departments without specifying columns if they share some with the same name. Both join operations are crucial for associating related data .

Primary keys uniquely identify each record in a table, whereas foreign keys link one table to another, referencing primary keys in the related table. They ensure referential integrity by enforcing rules that maintain consistent and valid data relationships. For instance, the employees’ table may reference a department id from the departments' table; the foreign key ensures that each employee's department id corresponds to a valid entry in the departments' table .

Data abstraction in DBMS is divided into three levels: physical, logical, and view level. The physical level describes how data is stored physically, the logical level defines what data is stored and the relationships, and the view level presents data only relevant to end-users. These levels of abstraction allow separation between the physical storage details and applications, providing simplicity to users while maintaining system efficiency and robustness .

Data independence allows changes to be made to the database schema without modifying the application programs. There are two types: logical and physical data independence. Logical data independence ensures that changes to the logical schema, such as alterations to tables or views, do not affect the application layer. Physical data independence allows changes at the storage level, such as altering devices or data structures, without impacting the logical schema. These features enhance database flexibility and scalability .

Different types of database users include database administrators (DBAs), who manage the overall operation; application programmers, who develop applications to interact with databases; end-users, who access databases for queries or reports; and system analysts, who define requirements for new projects. Each type of user has different privileges and responsibilities, ranging from having complete control over the database to accessing it through predefined interfaces only .

Early information processing systems struggled with data redundancy, inconsistency, lack of data sharing, and difficulty in data access and integration. Database management systems (DBMS) solve these problems by ensuring data integrity, reducing redundancy through normalization, allowing concurrent access by multiple users, and offering efficient data retrieval mechanisms. DBMS also provide a robust framework for data management through schemas, which allow separation of data from applications, reducing maintenance overhead .

A relation is a table in a database, while a view is a virtual table derived from one or more relations. Views encapsulate complex queries and present specific data in a more accessible form without storing it physically. They contribute to security by restricting access to sensitive data, as users can be permitted to interact only with views rather than entire relations, thereby implementing a layer of access control and data abstraction .

Integrity constraints are rules that help maintain the accuracy and consistency of the data in a database. Domain constraints specify that each attribute must contain valid data, such as a date or an integer. Referential integrity ensures that a foreign key value either matches a primary key value in another table or is null, maintaining valid links between tables. For example, in a supplier-product database, every product's supplier ID must match an existing supplier ID in the suppliers' table, ensuring valid references .

You might also like