Relational Schema
Question 1 |
The relation schema describes:
Set of tuples (Records) | |
Set of fields (Column heads/Attributes) | |
Set of associated values | |
Domain of each field |
Question 1 Explanation:
The relation schema describes set of fields (Column heads/Attributes).
Question 2 |
Which of the following attributes can be considered as composite, single-valued and key attribute?
Age | |
Date of birth | |
Gender | |
Enrollment number |
Question 2 Explanation:
Types of Attributes
Simple attribute − Simple attributes are atomic values, which cannot be divided further. For example, a student's phone number is an atomic value of 10 digits.
Composite attribute − Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
Derived attribute − Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, average_salary in a department should not be saved directly in the database, instead it can be derived. For another example, age can be derived from data_of_birth.
Single-value attribute − Single-value attributes contain single value. For example − Social_Security_Number.
Multi-value attribute − Multi-value attributes may contain more than one values. For example, a person can have more than one phone number, email_address, etc.
Key is an attribute or collection of attributes that uniquely identifies an entity among entity set.
Simple attribute − Simple attributes are atomic values, which cannot be divided further. For example, a student's phone number is an atomic value of 10 digits.
Composite attribute − Composite attributes are made of more than one simple attribute. For example, a student's complete name may have first_name and last_name.
Derived attribute − Derived attributes are the attributes that do not exist in the physical database, but their values are derived from other attributes present in the database. For example, average_salary in a department should not be saved directly in the database, instead it can be derived. For another example, age can be derived from data_of_birth.
Single-value attribute − Single-value attributes contain single value. For example − Social_Security_Number.
Multi-value attribute − Multi-value attributes may contain more than one values. For example, a person can have more than one phone number, email_address, etc.
Key is an attribute or collection of attributes that uniquely identifies an entity among entity set.
Question 3 |
Logical data independence is the ability to change________schema without having to change_____ Schema
internal; external | |
conceptual; internal | |
conceptual; external | |
internal; conceptual |
Question 3 Explanation:
The three-schema approach provides for three types of schemas with schema techniques based on formal language descriptions:
→External schema for user views
→Conceptual schema integrates external schemata
→Internal schema that defines physical storage structures
→External schema for user views
→Conceptual schema integrates external schemata
→Internal schema that defines physical storage structures
Question 4 |
The order of schema?10?101? and ???0??1 are ___________ and ______________ respectively.
5.3 | |
5.2 | |
7.5 | |
8.7 |