Relational Database Interview Questions And Answers
Download Relational Database Interview Questions and Answers PDF
Elevate your Relational Database interview readiness with our detailed compilation of 16 questions. Each question is crafted to challenge your understanding and proficiency in Relational Database. Suitable for all skill levels, these questions are essential for effective preparation. Access the free PDF to get all 16 questions and give yourself the best chance of acing your Relational Database interview. This resource is perfect for thorough preparation and confidence building.
16 Relational Database Questions and Answers:
Relational Database Job Interview Questions Table of Contents:
1 :: 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.
Read More2 :: 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.
Read More► 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.
3 :: 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.
Read More► X is subset or equal to (or) XY = R.
► X is a super key.
4 :: Explain DML Compiler?
It translates DML statements in a query language into low-level instruction that the query evaluation engine can understand.
Read More5 :: 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.
Read More► 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.
6 :: 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 ....
Read MoreIts a language in database through which you can make the logical design of the schemas ....
7 :: Explain degree of a Relation?
Degree of a Relation is the number of attribute of its relation schema.
Read More8 :: 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.
Read More9 :: Explain the different types of JOIN operations?
Equi Join:
This is the most common type of join which involves only equality comparisons. The disadvantage in this type of join is that there
Read MoreThis is the most common type of join which involves only equality comparisons. The disadvantage in this type of join is that there
10 :: 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.
Read More11 :: Explain 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.
Read More12 :: 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.
Read More►► 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.
13 :: 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.
Read MoreTwo 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.
14 :: 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
Read Moreb) 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
15 :: Explain VDL (View Definition Language)?
It specifies user views and their mappings to the conceptual schema.
Read More16 :: 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.
Read More► 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.