Fc-Database Concepts
Fc-Database Concepts
DATABASE CONCEPTS
One Mark Questions:
1. What is data?
Data is a collection of facts, numbers, letters or symbols that the computer process into
meaningful information.
2. What is Information?
Information is processed data, stored, or transmitted by a computer.
3. What is Database?
A Database is a collection of logically related data organized in a way that data can be
easily accessed, managed and updated.
4. What is a field?
Each column is identified by a distinct header called attribute or filed.
5. What is a record?
A single entry in a table is called a record or row. A record in a table represents set of
related data. Records are also called the tuple.
6. What is an entity?
An Entity can be any object, place, person or class. In E-R Diagram, an entity is represented
using rectangles.
7. What is an instance?
The collection of information stored in the database at a particular moment is called an
instance of the database.
8. What is an attribute?
It is defined as a named column of a relation. Ex: In STUDENT table, Regno, Name, Age,
Class, Combination and Marks.
9. What is domain?
It is defined as a set of allowed values for one or more attributes.
10. What is a relation?
A relation is defined as a table with columns and rows. Data can be stored in the form of a
two-dimensional table.
11. What is a table?
A table is a collection of data elements organized in terms of rows and columns. Table is
the simplest form of data storage.
Prof. K. Adisesha 1
DATABASE CONCEPTS
Prof. K. Adisesha 2
DATABASE CONCEPTS
definition and modification, new software installation and security enforcement and
administration.
The field is of the same data type as the ordering key field and
The second field is a pointer to a disk block (a block address).
7. Give the advantages and disadvantages of ISAM.
Advantages
Search time is less.
Prof. K. Adisesha 3
DATABASE CONCEPTS
There are fewer index entries than there are records in the data file.
Quick access to the records even when the volume of records is high.
Disadvantages
Additional file (index file) has to be created.
Wastage of storage space by creating and maintaining the index file.
Always indirect retrieval of data because first search begins in the index files then moves
to the data file (No direct retrieval).
8. Classify the various types of keys used in database.
The different types of keys are:
Primary key:
It is a field in a table which uniquely identifies each row/record in a database table. Primary
keys must contain unique values. A primary key column cannot have NULL values. Ex: In
Relation STUDENT, Regno serves as a primary key.
Candidate Key:
When more than one or group of attributes serve as a unique identifier, they are each called
as candidate key.
Alternate Key:
The alternate key of any table are those candidate keys, which are not currently selected as
the primary key. This is also known as secondary key.
Foreign key:
A key used to link two tables together is called a foreign key, also called as referencing
key. Foreign key is a field that matches the primary key column of another table.
Prof. K. Adisesha 4
DATABASE CONCEPTS
It reflects business rule that one entity is associated with many number of same entity.
For example, Student enrolls for only one Course but a Course can have many Students.
3. Many to Many:
It reflects business rule that many entity are associated with many number of same entity.
The above diagram represents that many students can enroll for more than one course.
Prof. K. Adisesha 5
DATABASE CONCEPTS
Prof. K. Adisesha 6
DATABASE CONCEPTS
Prof. K. Adisesha 7
DATABASE CONCEPTS
Supports Concurrent access: DBMS supports concurrent access to the same data stored
in the database by applying locking and time stamp mechanisms.
4. Explain the concept of data abstraction.
A major purpose of a database system is to provide users with an abstract view of the data. That
is the system hides certain details of how the data are stored and maintained.
There are three level of data abstraction.
Physical Level( Internal level)
Conceptual Level (Logical level)
View Level(External level)
Physical Level:
It is the lowest level of abstraction that describes how
the data are actually stored.
The physical level describes complex low-level data
structures in detail.
It contains the definition of stored record and method of
representing the data fields and access aid used.
Conceptual Level:
It is the next higher level of abstraction that describes what data are stored in the database
and what relationships exist among those data.
It also contains the method of deriving the objects in the conceptual view from the
objects in the internal view.
View Level:
It is the highest level of abstraction that describes only part of the entire database.
It also contains the method of deriving the objects in the external view from the objects in
the conceptual view.
5. Explain DBMS Architecture.
The design of Database Management System highly depends on its architecture.
It can be centralized or decentralized or hierarchical.
Database architecture is logically divided into three types.
o Logical one-tier in 1-tier Architecture
o Logical two-tier Client/Server Architecture.
o Logical three-tier Client/Server Architecture.
Prof. K. Adisesha 8
DATABASE CONCEPTS
Prof. K. Adisesha 9
DATABASE CONCEPTS
Disadvantages:
Implementation complexity
Database management problem
Lack of structural Independence.
Operational Anomalies
Prof. K. Adisesha 10
DATABASE CONCEPTS
RA SQL
1 Relation Algebra Structured Query Language
2 Is closed (the result of every Is a superset of relation algebra
expression is a relation)
3 Simple semantics Complicated Semantics
4 It is used for reasoning, query, It is an end-user language.
optimization etc
5 Relationally Complete Relationally Complete
Prof. K. Adisesha 11
DATABASE CONCEPTS
Prof. K. Adisesha 12