Database Concepts

Class 12 · Computer Science · 12 Questions

1beginner🧠 Remember6 marksVery Short

Give the terms for each of the following:

2intermediate💡 Understand3 marksShort Answer

Why foreign keys are allowed to have NULL values? Explain with an example.

4intermediate💡 Understand3 marksShort Answer

Compared to a file system, how does a database management system avoid redundancy in data through a database?

5intermediate💡 Understand3 marksShort Answer

What are the limitations of file system that can be overcome by a relational DBMS?

6advanced🔧 Apply6 marksCase Study

A school has a rule that each student must participate in a sports activity. So each one should give only one preference for sports activity. Suppose there are five students in a class, each having a unique roll number. The class representative has prepared a list of sports preferences as shown below. Answer the following:

Table: Sports Preferences

Roll_noPreference
9Cricket
13Football
17Badminton
17Football
21Hockey
24NULL
NULLKabaddi
7advanced🔍 Analyze3 marksCase Study

In another class having 2 sections, the two respective class representatives have prepared 2 separate Sports Preferences tables, as shown below:

Sports preference of section 1 (arranged on roll number column) Table: Sports Preferences

Roll_noSports
9Cricket
13Football
17Badminton
21Hockey
24Cricket

Sports preference of section 2 (arranged on Sports name column, and column order is also different) Table: Sports Preferences

SportsRoll_no
Badminton17
Cricket9
Cricket24
Football13
Hockey21

Are the states of both the relations equivalent? Justify.

8advanced✨ Create6 marksLong Answer

The school canteen wants to maintain records of items available in the school canteen and generate bills when students purchase any item from the canteen. The school wants to create a canteen database to keep track of items in the canteen and the items purchased by students. Design a database by answering the following questions:

9intermediate🔧 Apply6 marksCase Study

An organisation wants to create a database EMP-DEPENDENT to maintain following details about its employees and their dependent.

EMPLOYEE(AadharNumber, Name, Address, Department, EmployeeID) DEPENDENT(EmployeeID, DependentName, Relationship)

10advanced🔧 Apply6 marksCase Study

School uniform is available at M/s Sheetal Private Limited. They have maintained SCHOOL_UNIFORM Database with two relations viz. UNIFORM and COST. The following figure shows database schema and its state.

School Uniform Database Attributes and Constraints UNIFORM: UCode (Primary Key), UName (Not Null), UColor COST: UCode (Composite Primary Key), Size (Composite Primary Key), Price (>0)

Table: UNIFORM

UCodeUNameUColor
1ShirtWhite
2PantGrey
3SkirtGrey
4TieBlue
5SocksBlue
6BeltBlue
11intermediate🔧 Apply6 marksCase Study

In a multiplex, movies are screened in different auditoriums. One movie can be shown in more than one auditorium. In order to maintain the record of movies, the multiplex maintains a relational database consisting of two relations viz. MOVIE and AUDI respectively as shown below:

Movie(Movie_ID, MovieName, ReleaseDate) Audi(AudiNo, Movie_ID, Seats, ScreenType, TicketPrice)

12intermediate🔍 Analyze8 marksCase Study

For the above given database STUDENT-PROJECT, answer the following:

Student Project Database Table: STUDENT

Roll NoNameClassSectionRegistration_ID
11MohanXI1IP-101-15
12SohanXI2IP-104-15
21JohnXII1CS-103-14
22MeenaXII2CS-101-14
23JuhiXII2CS-101-10

Table: PROJECT

ProjectNoPNameSubmissionDate
101Airline Database12/01/2018
102Library Database12/01/2018
103Employee Database15/01/2018
104Student Database12/01/2018
105Inventory Database15/01/2018
106Railway Database15/01/2018
13intermediate🔧 Apply4 marksCase Study

For the above given database STUDENT-PROJECT, can we perform the following operations?