26.02.2015 Views

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

DOT NET Interview Questions - DotNetSpider

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Figure :- 10.4 City is now shifted to a different master table.<br />

That takes our database to a second normal form.<br />

Third normal form<br />

A non-key field should not depend on other Non-key field.The field "Total" is dependent<br />

on "Unit price" and "qty".<br />

Figure :- 10.5 Fill third normal form<br />

So now the "Total" field is removed and is multiplication of Unit price * Qty.<br />

Note :- Fourth and Fifth normal form is left as a home work to users.<br />

(B)What is denormalization ?<br />

Denormalization is the process of putting one fact in numerous places (its vice-versa of<br />

normalization).Only one valid reason exists for denormalizing a relational design - to<br />

enhance performance.The sacrifice to performance is that you increase redundancy in<br />

database.<br />

(B)What is a candidate key ?<br />

A table may have more than one combination of columns that could uniquely identify the<br />

rows in a table; each combination is a candidate key. During database design you can pick<br />

up one of the candidate keys to be the primary key. For example, in the supplier table<br />

195

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!