DMS Question Bank Answer
DMS Question Bank Answer
2 Marks
2.A database schema contains schema objects that may include tables, fields,
packages, views, relationships, primary key, foreign key.
4 Marks
1. Define data abstraction. Explain the levels of data abstraction with neat
diagram.
1.Data abstraction is to hide complexity of data from users.
2.As many database-systems users are not computer trained, developers hide
the complexity from users through several levels of abstraction, to
simplify user interaction with the system
1) Physical Level:
2) Logical Level:
- It describes what data is stored in the database and what the relationships exist
among
these data.
3) View Level:
2. Network Model
extension of the Hierarchical model.
unique feature of the network model is its schema, which is viewed as a graph
where
as the data is more related, hence accessing the data is also easier and
fast.
4. Relational Model
- most popular data model in DBMS is the Relational Model.
- first proposed by E.F. Codd hence he is known as father of Relational
Model.
- an attempt to simplify database structure by making use of tables and
columns.
- Tables are known as “relations”, columns are known as “Attributes” and rows
(or records) are known as “Tuples”.
- A relational database is a collection of 2-dimensional tables which
consists of rows and columns.
- This type of model designs the data in the form of rows and columns within
a table.
- Tables are also called relations. This model was initially described by
Edgar F. Codd, in1969.
- The relational data model is the widely used model which is primarily used
by commercial data processing applications.
2 Marks
Domain
- A domain is the set of permitted values for one or more attributes.
- It defines the potential values that an attribute may hold.
- For e.g. If the age of the student in class is between 15 and 20, then we
candefine a set of values for the age attribute of student as the set of
integers between 15 and 20.
Attribute
- An attribute is a named column of a relation.
- For e.g. Student table has stud_id, Stud_name, Marks as attributes.
1.Entity
2.Relationship
3.Attribute
4.Weak Entity
6.Multivalued Attribute
7.Key Attribute
8.Composite Attribute
Example:
• Dept (Dept_No, DName, LOC)
• Emp(Emp_No,Ename,Job,Sal,Dept_No)
• In table Dept, Dept_No is a primary key containing unique values for
deptnos.
• To set the relationship between these two tables , we can define
Emp.Dept_No as a foreign key.