Click here to Skip to main content
15,897,315 members
Home / Discussions / Database
   

Database

 
AnswerRe: When to NOT normalize? PinPopular
dasblinkenlight18-Jan-11 12:03
dasblinkenlight18-Jan-11 12:03 
AnswerRe: When to NOT normalize? PinPopular
Mycroft Holmes18-Jan-11 13:46
professionalMycroft Holmes18-Jan-11 13:46 
AnswerRe: When to NOT normalize? Pin
Yusuf18-Jan-11 14:15
Yusuf18-Jan-11 14:15 
AnswerRe: When to NOT normalize? Pin
PIEBALDconsult18-Jan-11 18:39
mvePIEBALDconsult18-Jan-11 18:39 
GeneralRe: When to NOT normalize? Pin
Sander Rossel19-Jan-11 4:28
professionalSander Rossel19-Jan-11 4:28 
GeneralRe: When to NOT normalize? Pin
PIEBALDconsult19-Jan-11 17:49
mvePIEBALDconsult19-Jan-11 17:49 
AnswerRe: When to NOT normalize? Pin
Eddy Vluggen19-Jan-11 7:33
professionalEddy Vluggen19-Jan-11 7:33 
GeneralRe: When to NOT normalize? Pin
Sander Rossel19-Jan-11 11:00
professionalSander Rossel19-Jan-11 11:00 
'The rest' of his arguments are: "it's easy that all settings are in one table", "you always know where to find a setting", "normalizing isn't always a good thing" and so on Poke tongue | ;-P

In practice this isn't even true, because the 'type of setting' is stored as a varchar which isn't really documented anywhere. So user settings can be found "where [category] = 'usersetting'" or "where [category] = 'setting'" and maybe "where [category] = options". And then there's a column called sub which specifies what setting it is.
Don't use a 'like' in this table, because 'setting' could also give settings on stock or sales. But if you do use '=' for 'sales' you won't find 'sales_statusses' etc... D'Oh! | :doh:
Then there's the employee column which does not hold a FK to the employee table because in most cases there is no employee for a particular setting. So I recently found lots of settings for non-existant employee's... It's really great Smile | :)
Actually there is no key or constraint at this table at all!

There is good news though. It's a very old table which was created with the best of intents at a time that my company did not know very much about SQL Server (migrated from DBF). We only keep it because redesigning this part of our DB (and software) would cost to much time at this moment. My boss does not think the table is good, it's just 'not that bad' Smile | :)
GeneralRe: When to NOT normalize? Pin
Eddy Vluggen21-Jan-11 4:56
professionalEddy Vluggen21-Jan-11 4:56 
GeneralRe: When to NOT normalize? Pin
Sander Rossel21-Jan-11 8:35
professionalSander Rossel21-Jan-11 8:35 
GeneralRe: When to NOT normalize? Pin
Eddy Vluggen22-Jan-11 0:23
professionalEddy Vluggen22-Jan-11 0:23 
QuestionBringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Brian C Hart18-Jan-11 5:19
professionalBrian C Hart18-Jan-11 5:19 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
David Skelly18-Jan-11 6:08
David Skelly18-Jan-11 6:08 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Chris Meech18-Jan-11 7:07
Chris Meech18-Jan-11 7:07 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Brian C Hart18-Jan-11 7:18
professionalBrian C Hart18-Jan-11 7:18 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Chris Meech18-Jan-11 7:35
Chris Meech18-Jan-11 7:35 
GeneralRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
David Skelly19-Jan-11 1:55
David Skelly19-Jan-11 1:55 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Mycroft Holmes18-Jan-11 13:53
professionalMycroft Holmes18-Jan-11 13:53 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
Yusuf18-Jan-11 15:15
Yusuf18-Jan-11 15:15 
AnswerRe: Bringing in a New Table to Refresh an Existing One; Record Counts are Different; How do I say "Gimme the discrepant records?" Pin
i.j.russell18-Jan-11 21:17
i.j.russell18-Jan-11 21:17 
QuestionExcluding weekends in stored procedure... Pin
ShivGanta17-Jan-11 20:50
ShivGanta17-Jan-11 20:50 
AnswerRe: Excluding weekends in stored procedure... Pin
Hiren solanki17-Jan-11 22:05
Hiren solanki17-Jan-11 22:05 
AnswerRe: Excluding weekends in stored procedure... Pin
Mycroft Holmes18-Jan-11 13:56
professionalMycroft Holmes18-Jan-11 13:56 
GeneralRe: Excluding weekends in stored procedure... Pin
ShivGanta18-Jan-11 15:52
ShivGanta18-Jan-11 15:52 
QuestionRe: Excluding weekends in stored procedure... Pin
ShivGanta31-Jan-11 19:24
ShivGanta31-Jan-11 19: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.