Relational Database

  Home  Databases Programming  Relational Database


“Relational Frequently Asked Questions in various Relational Database Interviews asked by the interviewer. So learn Relational with the help of this Relational Database Interview questions and answers guide and feel free to comment as your suggestions, questions and answers on any Relational Database Interview Question or answer by the comment feature available on the page.”



16 Relational Database Questions And Answers

1⟩ Explain 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

► X is a Super-key of R.

► A is a prime attribute of R.

In other words, if every non prime attribute is non-transitively dependent on primary key.

 149 views

2⟩ Explain 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.

 148 views

3⟩ Explain DML Compiler?

It translates DML statements in a query language into low-level instruction that the query evaluation engine can understand.

 160 views

4⟩ What you know in mapping of ERD to DFD?

a) entities in ERD should correspond to an existing entity/store in DFD

b) entity in DFD is converted to attributes of an entity in ERD

c) relations in ERD has 1 to 1 correspondence to processes in DFD

d) relationships in ERD has 1 to 1 correspondence to flows in DFD

(a) entities in ERD should correspond to an existing entity/store in DFD

 149 views

5⟩ Explain 4NF?

A relation schema R is said to be in 4NF if for every Multivalued dependency X --> Y that holds over R, one of following is true

► X is subset or equal to (or) XY = R.

► X is a super key.

 143 views

7⟩ Explain 5NF?

A Relation schema R is said to be 5NF if for every join dependency {R1, R2, ..., Rn} that holds R, one the following is true

► Ri = R for some i.

► The join dependency is implied by the set of FD, over R in which the left side is key of R.

 152 views

8⟩ Explain DDL Interpreter?

It interprets DDL statements and record them in tables containing metadata.

Its a language in database through which you can make the logical design of the schemas ....

 137 views

9⟩ Explain Armstrong rules? How they are complete and/or sound?

The well-known inference rules for FDs

►► Reflexive rule :

If Y is subset or equal to X then X Y.

►► Augmentation rule:

If X Y then XZ YZ.

►► Transitive rule:

If {X Y, Y Z} then X Z.

►► Decomposition rule :

If X YZ then X Y.

►► Union or Additive rule:

If {X Y, X Z} then X YZ.

►► Pseudo Transitive rule :

If {X Y, WY Z} then WX Z.

Of these the first three are known as Amstrong Rules. They are sound because it is enough if a set of FDs satisfy these three. They are called complete because using these three rules we can generate the rest all inference rules.

 169 views

10⟩ Explain DML (Data Manipulation Language)?

This language that enable user to access or manipulate data as organised by appropriate data model.

► Procedural DML or Low level: DML requires a user to specify what data are needed and how to get those data.

► Non-Procedural DML or High level: DML requires a user to specify what data are needed without specifying how to get those data.

 159 views

12⟩ Explain Relational Algebra?

It is procedural query language. It consists of a set of operations that take one or two relations as input and produce a new relation.

 148 views

15⟩ Explain Fully Functional dependency?

Fully Functional dependency 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.

 176 views

16⟩ Explain Data Independence?

Data independence means that ?the application is independent of the storage structure and access strategy of data?. In other words, The ability to modify the schema definition in one level should not affect the schema definition in the next higher level.

Two types of Data Independence are:

► Physical Data Independence: Modification in physical level should not affect the logical level.

► Logical Data Independence: Modification in logical level should affect the view level.

 147 views