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 72 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
YES! Correct, THANKS for helping me on my review


coreycathey

  • Member
  • Posts: 333
Reply 3 on: Yesterday
Excellent

 

Did you know?

Multiple sclerosis is a condition wherein the body's nervous system is weakened by an autoimmune reaction that attacks the myelin sheaths of neurons.

Did you know?

The senior population grows every year. Seniors older than 65 years of age now comprise more than 13% of the total population. However, women outlive men. In the 85-and-over age group, there are only 45 men to every 100 women.

Did you know?

Aspirin is the most widely used drug in the world. It has even been recognized as such by the Guinness Book of World Records.

Did you know?

Over time, chronic hepatitis B virus and hepatitis C virus infections can progress to advanced liver disease, liver failure, and hepatocellular carcinoma. Unlike other forms, more than 80% of hepatitis C infections become chronic and lead to liver disease. When combined with hepatitis B, hepatitis C now accounts for 75% percent of all cases of liver disease around the world. Liver failure caused by hepatitis C is now leading cause of liver transplants in the United States.

Did you know?

It is widely believed that giving a daily oral dose of aspirin to heart attack patients improves their chances of survival because the aspirin blocks the formation of new blood clots.

For a complete list of videos, visit our video library