Question 1 | MCQ
THIS IS QUESTION PAPER FOR THE SUBJECT"DIPLOMA LEVEL : DATABASE MANAGEMENT
SYSTEMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
SYSTEMS (COMPUTER BASED EXAM)"
ARE YOU SURE YOU HAVE TO WRITE EXAM FOR THIS SUBJECT?
CROSS CHECK YOUR HALL TICKET TO CONFIRM THE SUBJECTS TO BE WRITTEN.
(IF IT IS NOT THE CORRECT SUBJECT, PLS CHECK THE SECTION AT THE TOP FOR THE SUBJECTS REGISTERED BY YOU)
Solution
Which of the following components of the Database Management System (DBMS) is primarily responsible for generating and selecting the most cost-effective execution plan for a given SQL query?
Solution
Consider the relationDelivery_Fee:

Solution
Consider the following SQL statements are executed in sequence on a newly created table Shipment:

Solution
Create a tableAssignment(AssignID, PilotID, FlightNo, Date)with the following criteria that must be satisfied:
- Every assignment must have a unique AssignID.
- Each pilot can only be assigned to a specific flight once on any given date.
- Pilots may share the same flight number on different dates.
Which of the following SQL queries can be used to correctly create the tableAssignment?
- Every assignment must have a unique AssignID.
- Each pilot can only be assigned to a specific flight once on any given date.
- Pilots may share the same flight number on different dates.
Which of the following SQL queries can be used to correctly create the tableAssignment?
Solution
Solution
Consider the relational schemasPilot,Aircraft_TypeandCertified:

Solution
Consider the following relational schema for a movie database:

Solution
Consider two relationsR(A, B)andS(B, C). Which of the following SQL queries is/are logically equivalent to the Relational Algebra expression
?
Solution
Consider the Entity-Relationship (ER) diagram below representing an organization’s logical schema of their database:

Solution
Consider the following two relations
and 

Solution
Inscript
Suppose relationR(A,B,C,D)has candidate keys:{A,B}and{A,C}. How many distinct superkeys does relation R have?
Suppose relationR(A,B,C,D)has candidate keys:{A,B}and{A,C}. How many distinct superkeys does relation R have?
Solution
Let R(A,B) = {(1,2),(2,3),(3,4)} and S(B,C) = {(2,5),(3,6)}. Find the number of tuples in
.
Solution
Consider the following three tables:

Solution
Consider an EER model in whichPersonis a supertype entity type. Two subtype entity types, EmployeeandAccountHolder, are defined as specializations of Person.
- A person may be an Employee only.
- A person may be an AccountHolder only.
- A person may be both an Employee and an AccountHolder.
- A person may belong to neither subtype and exist only as a Person.
Which specialization constraints apply to this specialization?
Identify the constraints on specialization with respect to the above scenario.
- A person may be an Employee only.
- A person may be an AccountHolder only.
- A person may be both an Employee and an AccountHolder.
- A person may belong to neither subtype and exist only as a Person.
Which specialization constraints apply to this specialization?
Identify the constraints on specialization with respect to the above scenario.
Solution
Consider two relationsR(A,B)andS(B). RelationRcontains10tuples and relationScontains2 tuples. Both relations contain strictly non-null values.
Which of the following statements regarding the relational algebra division operationR÷Sare TRUE?
Which of the following statements regarding the relational algebra division operationR÷Sare TRUE?
Solution
Inscript
Consider the followingEmployeetable:

Consider the followingEmployeetable:
Solution
Shape
Thickness [ / ]
3
All colors