Database Management: Many-to-Many Relationships and Constraints
30 Questions
0 Views

Choose a study mode

Play Quiz
Study Flashcards
Spaced Repetition
Chat to lesson

Podcast

Play an AI-generated podcast conversation about this lesson

Questions and Answers

What is the characteristic of a many-to-many relationship between entities A and B?

An entity in A is associated with more than one entities in B and an entity in B is associated with more than one entities in A.

What is the primary purpose of constraints in a database?

To maintain the quality of information and ensure data integrity.

What is the function of a check constraint in a database?

To define a business rule on a column and limit data values to a specific set, range, or list of values.

What is an example of a many-to-many relationship?

<p>A customer is connected with more than one loan using borrower and a loan is connected with more than one customer using borrower.</p> Signup and view all the answers

What is the purpose of integrity constraints in a database?

<p>To guard against accidental damage to the database and ensure data integrity.</p> Signup and view all the answers

How many types of integrity constraints are mentioned in the text?

<p>6</p> Signup and view all the answers

What is a strong entity in an ER diagram?

<p>A strong entity is an entity type that has a key attribute and can be identified uniquely.</p> Signup and view all the answers

How are the relationships of two strong entities represented in an ER diagram?

<p>By a single diamond.</p> Signup and view all the answers

What is a weak entity in an ER diagram?

<p>A weak entity is an entity set that does not have sufficient attributes for unique identification of its records.</p> Signup and view all the answers

How are weak entities represented in an ER diagram?

<p>By a double rectangle.</p> Signup and view all the answers

What is an attribute in an ER diagram?

<p>An attribute is a property or detail about an entity.</p> Signup and view all the answers

What is the purpose of a primary key in a strong entity?

<p>To identify each entity uniquely.</p> Signup and view all the answers

What is the range of values for the SPI column?

<p>0 to 10</p> Signup and view all the answers

What is the purpose of the NOT NULL constraint in a database?

<p>It ensures that a column does not allow null values.</p> Signup and view all the answers

What is the main difference between a UNIQUE constraint and a PRIMARY KEY constraint?

<p>A PRIMARY KEY constraint is a combination of UNIQUE and NOT NULL constraints.</p> Signup and view all the answers

What is the purpose of a FOREIGN KEY constraint in a database?

<p>It establishes a referential integrity constraint between two tables.</p> Signup and view all the answers

What is the range of values for the Enrollment number column?

<p>12345001 to 12346999</p> Signup and view all the answers

What is the purpose of the UNIQUE constraint in a database?

<p>It ensures that a column or a group of columns have distinct values.</p> Signup and view all the answers

What is the issue that arises when we delete an employee with ID 'E2' from the database?

<p>The Civil department will also be deleted because there is only one record of Civil department.</p> Signup and view all the answers

What happens when we update the department name from 'Computer' to 'IT' in the database?

<p>One or more records will be updated, but not all.</p> Signup and view all the answers

How can data redundancy be removed from a database?

<p>With the help of normal forms.</p> Signup and view all the answers

What is the purpose of normalizing a database?

<p>To remove data redundancy.</p> Signup and view all the answers

What happens to the Civil department when an employee with ID 'E2' is deleted?

<p>The Civil department will also be deleted because there is only one record of Civil department.</p> Signup and view all the answers

What is the advantage of using normal forms in a database?

<p>It helps remove data redundancy.</p> Signup and view all the answers

What is the main advantage of using Normal forms in a database?

<p>Removing data redundancy</p> Signup and view all the answers

What is the condition for a relation to be in 1NF?

<p>Each cell of a table should contain a single value or all underlying domains contain atomic values.</p> Signup and view all the answers

What is a composite attribute in a relation?

<p>An attribute that can be further divided into sub-attributes.</p> Signup and view all the answers

Why is it difficult to retrieve the list of customers living in 'Jamnagar' from the given table?

<p>The address attribute is a composite attribute containing road name and city name in a single cell.</p> Signup and view all the answers

What happens to the number of tables and complexity as we move from 1NF to 3NF?

<p>The number of tables and complexity increases, but redundancy decreases.</p> Signup and view all the answers

What is the main problem with the given 'Customer' relation?

<p>It is not in 1NF because the address attribute is a composite attribute.</p> Signup and view all the answers

More Like This

Use Quizgecko on...
Browser
Browser