Question 31
MediumHow is a one-to-many relationship between Department (one) and Employee (many) usually stored?
- A.
Popular companies
Prepare company by company
Hiring pattern, syllabus, past questions and mocks for each company.
All companiesPractice by subject
DBMS
How is a one-to-many relationship between Department (one) and Employee (many) usually stored?
Create a separate table only
Put the department's key as a foreign key in the Employee table
Merge both tables
Put the employee's key in the Department table
Sign up free to see the answer and a step-by-step explanation.
What is the degree of a relationship?
The number of entity sets taking part in it
The number of attributes it has
Its cardinality
The number of rows in it
Sign up free to see the answer and a step-by-step explanation.
What is specialisation in the extended ER model?
Removing attributes
Adding a key to an entity
Combining several entity sets into one
Defining sub-classes of an entity set, such as Student and Teacher under Person
Sign up free to see the answer and a step-by-step explanation.
What is aggregation in the extended ER model?
Adding up numeric attributes
Creating an index
Treating a relationship as an entity so it can take part in another relationship
Combining two tables
Sign up free to see the answer and a step-by-step explanation.
Each Order is placed by exactly one Customer, and a Customer can place many Orders. What is the cardinality of Customer–Order?
Many-to-many
Many-to-one from Customer to Order
One-to-one
One-to-many
Sign up free to see the answer and a step-by-step explanation.
Students enrol in many Courses and each Course has many Students. Enrolment also records a grade. Where should the grade attribute go?
On Course
On the Enrols relationship
It cannot be stored
On Student
Sign up free to see the answer and a step-by-step explanation.
An Employee has many Dependents, and a Dependent is identified only by name together with the employee. How is Dependent modelled?
As a strong entity with its own key
As a multivalued attribute of Employee only
As a weak entity with an identifying relationship to Employee
As a separate database
Sign up free to see the answer and a step-by-step explanation.
In an ER diagram, how is a weak entity's identifying relationship drawn?
A dashed rectangle
A single diamond
A double ellipse
A double diamond
Sign up free to see the answer and a step-by-step explanation.
Every Loan must belong to some Branch, but a Branch may have no Loans. What participation does Loan have in the relationship?
Partial participation
Recursive participation
Total participation
No participation
Sign up free to see the answer and a step-by-step explanation.
An Employee supervises other Employees. What kind of relationship is this?
An aggregation
A recursive (unary) relationship
A weak relationship
A ternary relationship
Sign up free to see the answer and a step-by-step explanation.