Showing posts with label DBMS Basics. Show all posts
Showing posts with label DBMS Basics. Show all posts

Friday, October 31, 2014

Normalization

1. What is Lossless join property?
It guarantees that the spurious tuple generation does not occur with respect to relation schemas after decomposition.
2. What is 1 NF (Normal Form)?
The domain of attribute must include only atomic (simple, indivisible) values.
3. What is Fully Functional dependency?
It is based on concept of full functional dependency. A functional dependency X Y is full functional dependency if removal of any attribute A from X means that the dependency does not hold any more.
4. What is 2NF?
A relation schema R is in 2NF if it is in 1NF and every non-prime attribute A in R is fully functionally dependent on primary key.
5. What is 3NF?
A relation schema R is in 3NF if it is in 2NF and for every FD X A either of the following is true
  1. X is a Super-key of R.
  2. A is a prime attribute of R.
In other words, if every non prime attribute is non-transitively dependent on primary key.
6. What is BCNF (Boyce-Codd Normal Form)?
A relation schema R is in BCNF if it is in 3NF and satisfies an additional constraint that for every FD X A, X must be a candidate key.

Wednesday, October 29, 2014

ER Model - DBMS

1. What is an Extension of entity type?
The collections of entities of a particular entity type are grouped together into an entity set.
2. What is Weak Entity set?
An entity set may not have sufficient attributes to form a primary key, and its primary key compromises of its partial key and primary key of its parent entity, then it is said to be Weak Entity set.
3. What is an attribute?
It is a particular property, which describes the entity.
4. What is a Relation Schema and a Relation?
A relation Schema denoted by R(A1, A2, ..., An) is made up of the relation name R and the list of attributes Ai that it contains. A relation is defined as a set of tuples. Let r be the relation which contains set tuples (t1, t2, t3, ..., tn). Each tuple is an ordered list of n-values t=(v1,v2, ..., vn).
5. What is degree of a Relation?
It is the number of attribute of its relation schema.
6. What is Relationship?
It is an association among two or more entities.

Monday, October 27, 2014

DBMS Basics

1. What is database?
A database is a logically coherent collection of data with some inherent meaning, representing some aspect of real world and which is designed, built and populated with data for a specific purpose.
2. What is DBMS?
It is a collection of programs that enables user to create and maintain a database. In other words it is general-purpose software that provides the users with the processes of defining, constructing and manipulating the database for various applications.
3. What is a Database system?
The database and DBMS software together is called as Database system.
4. What are the advantages of DBMS?
  1. Redundancy is controlled.
  2. Unauthorised access is restricted.
  3. Providing multiple user interfaces.
  4. Enforcing integrity constraints.
  5. Providing backup and recovery.
5. What are the disadvantage in File Processing System?
  1. Data redundancy and inconsistency.
  2. Difficult in accessing data.
  3. Data isolation.
  4. Data integrity.
  5. Concurrent access is not possible.
  6. Security Problems.
6. Describe the three levels of data abstraction?
The are three levels of abstraction:
  1. Physical level: The lowest level of abstraction describes how data are stored.
  2. Logical level: The next higher level of abstraction, describes what data are stored in database and what relationship among those data.
  3. View level: The highest level of abstraction describes only part of entire database.