Relational Schema
Question 1 |
A primary key, if combined with a foreign key creates
parent child relationship between the tables that connect them | |
many-to-many relationship between the tables that connect them | |
network model between the tables connect them | |
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
relations | |
Domains | |
Queries | |
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.
● 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
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) | |
(d) | |
(c) and (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?
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?
Only b | |
Only c | |
a and b | |
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
→With inserting and updating operations there is no loss of department information
There are 4 questions to complete.
