SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 General SQL Server Forums
 New to SQL Server Programming
 BCNF and 4NF
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

Mohamed Faisal
Yak Posting Veteran

51 Posts

Posted - 08/18/2013 :  09:15:58  Show Profile  Reply with Quote
I am given the CounsellingCase table:
CounsellingCase(CaseNum, StartDate, EndDate, CaseDetail, StudentNumber, StudentName, StudentContact, CounsellorName, CounsellorContact, sessionDate, sessionStartTime, sessionDuration, sessionOutcome)

My functional and multi-valued dependencies are:

CaseNum-->StartDate,EndDate,CaseDetail,StudentNumber
StudentNumber-->StudentName,StudentContact
CounsellorName-->CounsellorContact
CaseNumr-->-->CounsellorName

My propose candidate key(s) for the table:
sessionDate,sessionStartTime and CounsellorName

how do I normalise the table to BCNF and 4NF by applying the BCNF approach?

Thanks

SwePeso
Patron Saint of Lost Yaks

Sweden
30276 Posts

Posted - 08/18/2013 :  09:24:37  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Something like this
Table dbo.Cases
CaseNum, StartDate, EndDate, CaseDetail, StudentNumber

Table dbo.Students
StudentNumber, StudentName, StudentContact

Table dbo.Counsellors
CounsellorName, CounsellorContact

Table dbo.Sessions
SessionStartTime,
SessionEndTime,
SessionDuration,
SessionOutcome,
CounsellorName,
CaseNum



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page

Mohamed Faisal
Yak Posting Veteran

51 Posts

Posted - 08/18/2013 :  09:37:29  Show Profile  Reply with Quote
Hi SwePeso,

Do i have to indicate the PK and FK. cause there is two tale depend on caseNum.

Thanks
Go to Top of Page

SwePeso
Patron Saint of Lost Yaks

Sweden
30276 Posts

Posted - 08/18/2013 :  13:48:15  Show Profile  Visit SwePeso's Homepage  Reply with Quote
Table dbo.Cases
CaseNum (pk), StartDate, EndDate, CaseDetail, StudentNumber (fk)

Table dbo.Students
StudentNumber (pk), StudentName, StudentContact

Table dbo.Counsellors
CounsellorName (pk), CounsellorContact

Table dbo.Sessions
SessionStartTime,
SessionEndTime,
SessionDuration,
SessionOutcome,
CounsellorName (fk),
CaseNum (fk)



Microsoft SQL Server MVP, MCT, MCSE, MCSA, MCP, MCITP, MCTS, MCDBA
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.05 seconds. Powered By: Snitz Forums 2000