Please visit, subscribe and share 10 Minutes Lectures in Computer Science

## Determine whether the given table is in 1NF, 2NF, 3NF etc., how to determine the normal form of a table? Normalization YES/NO questions, Normalization questions answered

Normalization Exercises

Consider a relation Teacher with the attributes Teacher_Name, Gender, DOB, Subject_Handles, School_Name, and School_Location. Assume that Teacher is in 1NF. Answer the following questions;

a. Assume that there are set of functional dependencies in Teacher. If (Teacher_Name, DOB) is the key for Teacher, is Teacher in 2NF?

CANNOT DETERMINE.

A table is in 2NF, if there is no partial key dependency. Here, the key for Teacher is a composite primary key. So, there are possibilities for partial key dependencies.
We cannot determine whether this table is in 2NF or not as the given information is not enough.

b. If Teacher_Name is the key for Teacher, is Teacher in 2NF?

YES.

The key for Teacher is formed by a single column, ie., Teacher_Name. If all the attributes of Teacher can be determined uniquely by Teacher_Name, then only Teacher_Name attribute forms the key. And, there are no possibilities for partial key dependencies. Hence, Teacher is in 2NF.

c. (Teacher_Name, DOB) is the key for Teacher, all the other attributes depend on the whole key, and only other FD is "School_Name determines the School_Location uniquely". Is Teacher in 2NF?

YES.

As per the given information, there is no partial key dependency present. Hence, the table is in 2NF.

d. (Teacher_Name, DOB) combination is the key for Teacher, all the other attributes depend on the whole key, and only other FD is "School_Name determines the School_Location uniquely". Is Teacher in 3NF?

NO.

For a table in 3NF, it should be in 2NF and non-key attribute dependencies (transitive dependencies) must not present.
From the given information, it is clear that the table is in 2NF. Teacher is not in 3NF because of the non-key dependency School_Name School_Location.

e. Assume a set of FDs in Teacher, and it is found that Teacher_Name is the key. If Teacher_Name is the key for Teacher, is Teacher in 3NF?

CANNOT DETERMINE.

Only information given here is the key for Teacher. If we are given the set of functional dependencies, then only we can decide. In this case we cannot determine.

*********************
{"ft_lang_label":"__label__en","ft_lang_prob":0.86808306,"math_prob":0.875397,"size":2355,"snap":"2023-40-2023-50","text_gpt3_token_len":548,"char_repetition_ratio":0.1871544,"word_repetition_ratio":0.19473684,"special_character_ratio":0.22547771,"punctuation_ratio":0.16304348,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9566229,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-11-30T01:43:25Z\",\"WARC-Record-ID\":\"<urn:uuid:af962091-e7fe-4f11-a938-447bf37cb1bc>\",\"Content-Length\":\"105573\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:54b135ec-6482-4a2c-9548-8c09d6a05fb0>\",\"WARC-Concurrent-To\":\"<urn:uuid:5d45e463-e097-4afe-9a5d-32ea41c02bb9>\",\"WARC-IP-Address\":\"172.253.63.121\",\"WARC-Target-URI\":\"https://www.exploredatabase.com/2016/04/determination-of-normal-forms-of-a-database-table.html\",\"WARC-Payload-Digest\":\"sha1:IDLNCZNYP6NVFYGGTSIUVAKFKV2TPTL7\",\"WARC-Block-Digest\":\"sha1:TX3L3DSSFM6UKHJII7OARZEBAIFZSCZ7\",\"WARC-Identified-Payload-Type\":\"application/xhtml+xml\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-50/CC-MAIN-2023-50_segments_1700679100164.15_warc_CC-MAIN-20231130000127-20231130030127-00767.warc.gz\"}"}