This topic contains a solution. Click here to go to the answer

Author Question: Explain the steps in the process of putting a relation straight into Boyce-Codd Normal Form (BCNF). ... (Read 63 times)

EAugust

  • Hero Member
  • *****
  • Posts: 550
Explain the steps in the process of putting a relation straight into Boyce-Codd Normal Form (BCNF).
 
  What will be an ideal response?

Question 2

What is an SQL script, and why are SQL scripts useful?
 
  What will be an ideal response?



Related Topics

Need homework help now?

Ask unlimited questions for free

Ask a Question
Marked as best answer by a Subject Expert

Jordin Calloway

  • Sr. Member
  • ****
  • Posts: 334
Answer to Question 1

The steps are:
(1 ) Identify all functional dependencies in the relation.
(2 ) Identify every candidate key in the relation.
(3 ) Check to see if all determinants are candidate keys.
a. If so, the relation is in BCNF-STOP.
b. If not, then:
i. Move the columns of the functional dependency of the determinant that is not a candidate key to a new relation.
ii. Make the determinant of that functional dependency the primary key of the new relation.
iii. Leave a copy of the determinant in the original relation as a foreign key.
iv. Create a referential integrity constraint between the relations.
NOTE: If there is more than one functional dependency that needs to be moved, move the functional dependency with the most columns first.
(4 ) Repeat step (3 ) until you reach STOP.

Answer to Question 2

An SQL Script is a group of SQL statements that are run consecutively. Each of the SQL statements in the script could be run separately, but running them as a group is more efficient, and this is what makes SQL scripts useful. A good example is grouping all the SQL CREATE TABLE statements necessary to build a database structure into a single SQL script.




EAugust

  • Member
  • Posts: 550
Reply 2 on: Jul 7, 2018
Great answer, keep it coming :)


blakcmamba

  • Member
  • Posts: 335
Reply 3 on: Yesterday
:D TYSM

 

Did you know?

Asthma occurs in one in 11 children and in one in 12 adults. African Americans and Latinos have a higher risk for developing asthma than other groups.

Did you know?

Human neurons are so small that they require a microscope in order to be seen. However, some neurons can be up to 3 feet long, such as those that extend from the spinal cord to the toes.

Did you know?

The horizontal fraction bar was introduced by the Arabs.

Did you know?

Stevens-Johnson syndrome and Toxic Epidermal Necrolysis syndrome are life-threatening reactions that can result in death. Complications include permanent blindness, dry-eye syndrome, lung damage, photophobia, asthma, chronic obstructive pulmonary disease, permanent loss of nail beds, scarring of mucous membranes, arthritis, and chronic fatigue syndrome. Many patients' pores scar shut, causing them to retain heat.

Did you know?

There are major differences in the metabolism of morphine and the illegal drug heroin. Morphine mostly produces its CNS effects through m-receptors, and at k- and d-receptors. Heroin has a slight affinity for opiate receptors. Most of its actions are due to metabolism to active metabolites (6-acetylmorphine, morphine, and morphine-6-glucuronide).

For a complete list of videos, visit our video library