Click here to Skip to main content
15,890,690 members
Home / Discussions / Database
   

Database

 
AnswerRe: How to Sort this, Get Next Record ID when Many users inserting and different Districts Pin
Eddy Vluggen6-Jun-14 2:36
professionalEddy Vluggen6-Jun-14 2:36 
AnswerRe: How to Sort this, Get Next Record ID when Many users inserting and different Districts Pin
PIEBALDconsult6-Jun-14 14:38
mvePIEBALDconsult6-Jun-14 14:38 
QuestionSQLite query Pin
David Crow5-Jun-14 10:38
David Crow5-Jun-14 10:38 
AnswerRe: SQLite query Pin
Mycroft Holmes5-Jun-14 12:47
professionalMycroft Holmes5-Jun-14 12:47 
GeneralRe: SQLite query Pin
David Crow5-Jun-14 17:38
David Crow5-Jun-14 17:38 
QuestionQuestion on Canidate keys and functional dependecies Pin
Member 108651294-Jun-14 16:35
Member 108651294-Jun-14 16:35 
AnswerRe: Question on Canidate keys and functional dependecies Pin
Eddy Vluggen5-Jun-14 8:05
professionalEddy Vluggen5-Jun-14 8:05 
AnswerRe: Question on Canidate keys and functional dependecies Pin
Eddy Vluggen6-Jun-14 23:39
professionalEddy Vluggen6-Jun-14 23:39 
Member 10865129 wrote:
more importantly HOW you got
0 NF:

AttorneyClientNumberClientNameMeetingDataDuration
Boxer1000ABC, Inc11/5/132
Boxer2000XYZ Partners11/5/135.50
James1000ABC, Inc11/7/133
Boxer1000ABC, Inc11/9/134
Wu3000Malcomb Zoe11/11/137


1 NF:
* Remove all calculated facts
* Assign a key
* Move repeating groups to their own table
(key is underlined)

AttorneyClientNumberMeetingDataDuration
Boxer100011/5/132
Boxer200011/5/135.50
James100011/7/133
Boxer100011/9/134
Wu300011/11/137


ClientNumberClientName
1000ABC, Inc
2000XYZ Partners
3000Malcomb Zoe


2 NF:
* Find the attributes that are not "functionally dependent" on the entire key
That means that we look at each non-key field and ask ourselves whether or not it is depending on the entire key, or whether it can be identified with a part of that key.

The only non-key field in "Meetings" is called "Duration". The duration "2" belongs to the meeting that's identified with all three fields, so there's no functional dependency there. In the original table the duration could depend on a part of the key; my mistake.

3NF:
* Find non-key fields that depend on other non-key fields.
There's none.

One might argue that the Attorney is also a repeating group, and put it in it's own table with an artificial key.
Bastard Programmer from Hell Suspicious | :suss:
If you can't read my code, try converting it here[^]

QuestionIssue deploying SSIS Package in production web server Pin
Shuaib Kaniyar4-Jun-14 0:46
Shuaib Kaniyar4-Jun-14 0:46 
Question+ operaotor for outer joins in mysql. Pin
aghori3-Jun-14 19:55
aghori3-Jun-14 19:55 
AnswerRe: + operaotor for outer joins in mysql. Pin
Jörgen Andersson3-Jun-14 21:16
professionalJörgen Andersson3-Jun-14 21:16 
SuggestionData Mining Structure not Available in SSAS Tabular Model Pin
FLouis382-Jun-14 6:14
professionalFLouis382-Jun-14 6:14 
QuestionReady to give up on MySQL - is PostgreSQL better? Pin
Wombaticus1-Jun-14 22:09
Wombaticus1-Jun-14 22:09 
AnswerRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Jörgen Andersson1-Jun-14 22:37
professionalJörgen Andersson1-Jun-14 22:37 
GeneralRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Wombaticus1-Jun-14 22:43
Wombaticus1-Jun-14 22:43 
GeneralRe: Ready to give up on MySQL - is PostgreSQL better? Pin
Jörgen Andersson1-Jun-14 23:08
professionalJörgen Andersson1-Jun-14 23:08 
QuestionA query with lot of inner queries Pin
indian14329-May-14 12:41
indian14329-May-14 12:41 
AnswerRe: A query with lot of inner queries Pin
Mycroft Holmes29-May-14 13:02
professionalMycroft Holmes29-May-14 13:02 
GeneralRe: A query with lot of inner queries Pin
indian14329-May-14 13:09
indian14329-May-14 13:09 
GeneralRe: A query with lot of inner queries Pin
Mycroft Holmes29-May-14 14:08
professionalMycroft Holmes29-May-14 14:08 
AnswerRe: A query with lot of inner queries Pin
Jörgen Andersson29-May-14 22:20
professionalJörgen Andersson29-May-14 22:20 
GeneralRe: A query with lot of inner queries Pin
Mycroft Holmes30-May-14 1:50
professionalMycroft Holmes30-May-14 1:50 
GeneralRe: A query with lot of inner queries Pin
Jörgen Andersson30-May-14 3:15
professionalJörgen Andersson30-May-14 3:15 
GeneralRe: A query with lot of inner queries Pin
indian14330-May-14 9:08
indian14330-May-14 9:08 
GeneralRe: A query with lot of inner queries Pin
Jörgen Andersson30-May-14 9:24
professionalJörgen Andersson30-May-14 9:24 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.