Relational Schema

Question 1
A primary key, if combined with a foreign key creates
A
parent child relationship between the tables that connect them
B
many-to-many relationship between the tables that connect them
C
network model between the tables connect them
D
none of these
Question 1 Explanation: 
Using the two relationships mother and father provides us a record of a child’s mother, even if we are not aware of the father’s identity; a null value would be required if the ternary relationship parent is used. Using binary relationship sets is preferable in this case.
Question 2
In a relational schema, each tuple is divided into fields called
A
relations
B
Domains
C
Queries
D
none of these
Question 2 Explanation: 
● A domain is defined as the set of all unique values permitted for an attribute. For example, a domain of date is the set of all possible valid dates, a domain of integer is all possible whole numbers, a domain of day-of-week is Monday, Tuesday ... Sunday.
● This in effect is defining rules for a particular attribute. If it is determined that an attribute is a date then it should be implemented in the database to prevent invalid dates being entered.
Question 3
Consider the relation Emp-Dept with SSn as key

Which of the following is (are) invalid operation(s)?
a) Inserting an employee without name and address
b) Inserting an employee with only SSn
c) Inserting a department with no employee
d) Inserting an employee without SSn
A
(a)
B
(d)
C
(c) and (d)
D
(b) and (c)
Question 3 Explanation: 
Inserting an employee without SSn because SSn is key to the table.
Question 4
Consider the relation Emp_Dept with SSn as key

Following operations are performed:
a.Insert a record of department with no employee
b.Delete the last employee of the department
c.Update the department name for department #5
Which of the following will lead to complete loss of information about a department?
A
Only b
B
Only c
C
a and b
D
b and c
Question 4 Explanation: 
→If we delete one employee details means the department details of particular employee is not available. So statement b is correct.
→With inserting and updating operations there is no loss of department information
There are 4 questions to complete.

Access quiz wise question and answers by becoming as a solutions adda PRO SUBSCRIBER with Ad-Free content

Register Now

If you have registered and made your payment please contact solutionsadda.in@gmail.com to get access