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

Database Management System Question Bank

Uploaded by

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

Database Management System Question Bank

Uploaded by

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

MEENAKSHI SUNDARARAJAN ENGINEERING COLLEGE, CHENNAI-24

QUESTION BANK

Sub Name: Database Management System Sub Code: CS6302

Unit -1

Part – A

1. What is normalization?
2. What is the use of normal forms? List the following normal forms.
3. What are atomic domains?
4. When a relation can be said to be in first normal form.
5. What is a functional dependency?
6. Explain trivial functional dependencies.
7. Explain briefly the following:
a. Second normal form
b. Third normal form
c. BCNF
d. Fourth NF
8. Explain briefly the following with suitable example:
a. Closure of functional dependencies
b. Transitive functional dependencies
c. Dependency preservation
d. Canonical cover
e. Multivalued dependency
9. What is a axiom and explain the Am strong axiom.
10. What is lossless decomposition?
PART-B

1. Compare and contrast the merits and demerits of database system over file
system.
2. Explain three levels of data abstraction.
3. Explain three-tier & two-tier DBMS architecture.
4. With neat sketch explain the database system structure.
5. Explain in detail about the Entity-Relationship model.
6. Draw an E – R Diagram for Railway reservation system and Student mark analysis system
1. What is normalization? Explain the various normal forms.
2. Compare BCNF with 3 NF
3. consider the universal relation R(A,B,C,D,E,F,G,H,I,J) and set of FD’s
G=( {A,B}-> {C}->{B,D}->{E,F}, {A,D}-> {G,H},{A }-> {I},{H}-> {J}. what
is key of R? Decompose R into 2 NF then to 3NF.
4. Discuss how schema refinement through dependency analysis and normalization
can improve schemas obtained through ER design.
5. Explain fourth normal form in detail
6. Explain 5NF in detail
PART-C
CASE STUDY
1. Draw E-R diagram for the “Restaurant Menu Ordering System”, which will facilitate the food items
ordering and services within a restaurant. The entire restaurant scenario is detailed as follows.
The Customer is able to view the food item menu, call the waiter, place orders and obtain the final
bill through the computer kept in their [Link] waiters through their wireless tablet PC are able
to initialize a table for customers, control the table functions to assist customers, orders send,
orders to food preparation staff (chef) and finalize the customer’s bill. The food preparation staffs
(Chefs) with their touch display interfaces to the system, are able to view orders sent to the
kitchen by waiters. During preparation, they are able to let the waiter know the status of each item
and can send notifications when items are completed. The system should have full accountability
and logging facilities and should support Supervisor actions to account for exceptional
circumstances such as a meal being refunded or walked out on.
2. A Car rental company maintains a database for all vehicles in its current fleet. For all vehicles it
includes the vehicle identification number, license number, manufacturer, model, date of
purchase and color. Special data are included for certain types of vehicles. Trucks : Cargo
capacity Sports Cars : horsepower, renter age requirement Vans : number of passengers Off-
road vehicles : ground clearance,drivetrain(four or two wheel driven) Construct an ER model for
the car rental company database.
3. Notown Records has decided to store information about musicians who perform on its album(as
well as other company data) in a database. The company has wisely chosen to hire you as a
database designer. Each musician that records at Notown has an SSN,a name, an address, and
a phone number. Poorly paid musicians often share the same address and no address has more
than one phone. Each instrument used in songs recorded at Notown has a unique identification
number, a name(eg,guitar,synthesizer,flute and a musical key(e.g,C,B-flat,E-flat) Each album
recorded on the Notown label has a unique identification number, a title, a copyright date, a
format (gg,CD or MC) and an album identifier. Each song recorded at Notown has a title and an
author. Each musician may play several instruments and a given instrument may be played by
several musicians. Each album has a number of songs on it. but no song may appear on more
than one album. Each song is performed by one or more musicians and a musician may perform
a number of songs. Each album has exactly one musician who acts as its producer. A musician
may produce several albums, of course, Design a conceptual schema for Notown and draw an
ER diagram for your [Link] information describes the situation that the Notown
database must [Link] sure to indicate all keys and cardinality constraints and any
assumptions you [Link] any constraints you are unable to capture in the ER diagram and
briefly explain why you could not express them
4. (i)Draw an E-R diagram for the University Enterprise use necessary attributes and entity sets.
(ii) Summarize about Specialization and generalization in ER diagram.
5. Suppose we have the following requirements for a university database that is used to keep track of
students’ transcripts:
(a) The university keeps track of each student's name (SNAME), student number
(SNUM), social security number (SSSN), current address (SCADDR) and phone
(SCPHONE), permanent address (SPADDR) and phone (SPPHONE), birthdate
(BDATE), sex (SEX), class (CLASS) (freshman, sophomore, ..., graduate),
major department (MAJORDEPTCODE), minor department (MINORDEPTCODE)
(if any), and degree program (PROG) (B.A., B.S., ..., Ph.D.). Both ssn and
student number have unique values for each student.

(b) Each department is described by a name (DEPTNAME), department code


(DEPTCODE), office number (DEPTOFFICE), office phone (DEPTPHONE), and
college (DEPTCOLLEGE). Both name and code have unique values for each
department.
(c) Each course has a course name (CNAME), description (CDESC), code number
(CNUM), number of semester hours (CREDIT), level (LEVEL), and offering
department (CDEPT). The value of code number is unique for each course.
(d) Each section has an instructor (INSTUCTORNAME), semester (SEMESTER), year
(YEAR), course (SECCOURSE), and section number (SECNUM). Section numbers
distinguish different sections of the same course that are taught during the same
semester/year; its values are 1, 2, 3, ...; up to the number of sections taught
during each semester.
(e) A grade record refers to a student (Ssn), refers to a particular section, and
grade (GRADE).Design an relational database schema for this database application. First show all
the functional dependencies that should hold among the attributes. Then, design
relation schemas for the database that are each in 3NF or BCNF. Specify the key
attributes of each relation. Note any unspecified requirements, and make
appropriate assumptions to make the specification complete.

Common questions

Powered by AI

Translating real-world business operations into an ER diagram requires considering entities, relationships, and attributes that capture critical business functions. For a restaurant menu ordering system, it is essential to identify key entities like Customer, Order, MenuItem, Waiter, and Chef, along with their attributes. Careful attention must be paid to defining relationships such as 'places' between Customer and Order or 'serves' between Waiter and Table. Additionally, the system's transactional nature necessitates attributes for capturing states like order status, payment confirmations, and logs for accountability. Ensuring these elements are accurately modeled promotes a robust design that reflects the real-world application needs .

The ER model plays a foundational role in database design by providing a high-level representation of data requirements and relationships. With entities, attributes, and relationships, the ER model visually captures essential data and their associations in a way that's intuitive for stakeholders. This aids in effectively specifying database requirements by facilitating communication between technical and non-technical stakeholders, ensuring a clear understanding of the data landscape before physical design. Furthermore, the ER model helps in identifying primary keys and constraints, which are critical in structuring the database for consistency and efficiency .

Functional dependencies are crucial for normalization, which aims to eliminate anomalies in a database. A functional dependency describes a relationship between attributes, where one attribute uniquely determines another. In normalization, organizing a database usually involves decomposing these dependencies to match normal form requirements. For example, a relation in first normal form addresses duplicate rows, the second tackles partial dependencies, and the third resolves transitive dependencies, thus minimizing redundancy and potential for data anomalies. This systematic decomposition maintains data integrity and can efficiently support query processing .

Multivalued dependencies have significant implications for database schema design, as they generalize dependency relationships beyond functional dependencies to involve multiple values of one attribute associated with a single value of another. This can lead to data duplication and redundancy if not appropriately managed. Recognizing multivalued dependencies allows the schema to be decomposed into fourth normal form (4NF), which reduces redundancy inherent with these dependencies. This ensures that databases efficiently handle complex data situations without introducing redundancy-related anomalies, thus improving data integrity and query performance .

Designing relation schemas in BCNF or 3NF is necessary to eliminate redundancy and avoid anomalies in data operations like insertions, updates, and deletions. Schemas in these normal forms ensure that all functional dependencies in a relation are appropriately captured, thereby maintaining consistency and integrity of data. If these normal forms are not used, the database might suffer from anomalies such as update anomalies, where changes in data require multiple updates; deletion anomalies, where deleting data inadvertently removes important information; and insertion anomalies, where adding data involves unnecessary duplication. These issues can lead to inefficient database operations and inaccurate data management .

Schema refinement through normalization and dependency analysis improves database design by minimizing redundancy and anomalies. Normalization organizes data into tables with minimized redundant information, which reduces update anomalies. By analyzing functional dependencies, database designers can ensure that data dependencies are logical and efficient, leading to more stable and maintainable database structures. This process results in efficient query performance and ensures data integrity. Furthermore, dependencies help in identifying key attributes and informing decisions about table design, which enhances conceptual clarity and aligns with user requirements .

The use of a DBMS offers several advantages over traditional file systems. Firstly, data redundancy and inconsistency are significantly reduced as data is integrated and stored in a centralized database. Secondly, data access becomes more flexible and efficient with query languages like SQL, allowing complex queries across different tables. Thirdly, data integrity and security are improved as constraints and access controls can be enforced centrally. Furthermore, data sharing is enhanced, allowing multiple users to access and manipulate data concurrently while maintaining consistency through transaction management. Lastly, DBMSs offer data recovery and backup mechanisms ensuring data durability and reliability .

Using a case study, such as a restaurant menu ordering system, is highly effective for teaching database concepts because it grounds theoretical knowledge in practical application. By working through a real-world scenario, students can better understand abstract concepts like ER modeling, normalization, and functional dependencies within a context they can visualize. This approach encourages critical thinking and problem-solving as students consider the dynamic and transactional aspects of business operations while designing databases. Furthermore, it allows for hands-on experience in developing complex database systems, bridging the gap between learning and real-world application, and helping students internalize concepts more deeply .

Dependency preservation is a crucial principle in database normalization that ensures functional dependencies are maintained during schema decomposition. The role of dependency preservation is central to schema design because it allows the reconstructed database to support the same constraints and functional relationships as the original design, thereby avoiding informational loss. When dependencies are preserved, the integrity and business rules represented by the database are maintained, enhancing consistency and ensuring accurate query processing. If dependencies are lost, it could lead to an inability to enforce certain constraints and relationships, leading to possible data inconsistency .

In designing a car rental company's database using the ER model, entities such as Vehicle, RentalTransaction, and Customer can be identified. Each vehicle, based on its type (like Truck or Sports Car), can be modeled with specific attributes, as outlined (e.g., Cargo capacity for trucks). Key considerations include capturing relationships accurately, such as the association between Customers and RentalTransactions, and ensuring attributes are complete and include unique identifiers like VehicleID and LicenseNumber to maintain data integrity. It's also crucial to model relationships that reflect business operations, such as rentals and returns, ensuring the model supports the company's transactional and reporting needs .

You might also like