2MARKSS
2MARKSS
• Foreign key is a single attribute or collection of attributes in one table that refers to the
primary key of another table.
• For example – Consider a Student database as Student (RollNo, Name, Address) and
Course (CourseID, CourseName, RollNo). Here RollNo is a foreign key
4. What is the difference between logical data independence and physical data
Independence?
Logical data Independence Physical data Independence
• This is a kind of data independence • This is a kind of data independence
which allows the modification of which allows the modification of
conceptual schema without requiring physical schema without requiring
any change to the external schema. any change to the conceptual
schema.
• For example - Any change in the • For example - if there is any change
table structure such as addition or in memory size of database server
deletion of some column does not then it will not affect the logical
affect user views. structure of any data object.
5. List some relational algebra operations.
• Selection (σ)
• Projection (π)
• Cartesian Product (×)
• Rename (ρ)
2. Relationship
A relationship represents the association between two or more entities. It is shown as a diamond
in an ER diagram.
Types of Relationships:
One-to-One (1:1)
One-to-Many (1:M)
Many-to-One (M:1)
Many-to-Many (M:M)
3. Attributes
Attributes define the properties or characteristics of an entity. They are represented as ovals in
an ER diagram.
Types of Attributes:
• Simple Attribute
• Composite Attribute
• Derived Attribute
• Multivalued Attribute
• Key Attribute