|
|
|
Mr or Mrs. 500
      
Group: General Forum Members
Last Login: Friday, May 24, 2013 2:06 PM
Points: 576,
Visits: 27,681
|
|
The link in the explanation (http://msdn.microsoft.com/en-us/library/ff647793.aspx) says:
"This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies."
Boy that hurt! Am I a dinosaur? Sometimes talking to application developers, I feel I am.
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 9:03 AM
Points: 1,634,
Visits: 1,152
|
|
cengland0 (4/20/2011) I was wondering how you could have an "All of the above" option with a "Choose Two" directive. Let's say, for instance, that all of them were correct. You would select the "All of the above" option and which other one?
2% have selected that one though. It may not sound much but it means one in fifty businesses may be in trouble
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 10:39 AM
Points: 1,527,
Visits: 1,564
|
|
The inspiration for this question came from: http://www.sqlservercentral.com/TotalScores

The number of Points (won) - 599 - for me near the top of the Question of the Day Breakdown table does not match my Score - 603 - at the bottom of the Question of the Day table. I have no idea why they differ. It may have nothing to do with the answers in this question. But it did get me thinking about designing for data consistency so I thought I'd submit the question.
I also learned something new from this question. For those who complain that the questions do not get reviewed by the editors, I can assure you that they indeed do get reviewed. This question had to be modified and resubmitted twice before getting published. I, for one, appreciate all the hard work that goes into making this site the valuable resource that it is to all of us.
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 6:30 AM
Points: 9,410,
Visits: 6,495
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Today @ 2:46 PM
Points: 372,
Visits: 419
|
|
I would argue that sometimes you may have redundant data in your database to make reporting easier and faster.
Tony ------------------------------------ Are you suggesting coconuts migrate?
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 10:39 AM
Points: 1,527,
Visits: 1,564
|
|
tabinsc (4/20/2011) I would argue that sometimes you may have redundant data in your database to make reporting easier and faster.
Right. There are all kinds of edge cases that can be sighted to buck just about any best practice. That's why I tried to word the question loosely so the answer would be obvious while still leaving room for the edge cases.
"...which of these practices are most likely..."
Still, having redundant data may make reporting "easier and faster", in some cases. But easier and faster does not necessarily equate to "consistent data presentation".
|
|
|
|
|
SSCrazy Eights
        
Group: General Forum Members
Last Login: Today @ 6:30 AM
Points: 9,410,
Visits: 6,495
|
|
|
|
|
|
Old Hand
      
Group: General Forum Members
Last Login: Today @ 2:46 PM
Points: 372,
Visits: 419
|
|
I haven't proven this correct yet, but I am thinking redundant data in two tables makes sense if you need that data to join the tables properly and avoid table/index scans in the execution plan. You could create indexes on the redundant columns to force index seeks on both tables.
Tony ------------------------------------ Are you suggesting coconuts migrate?
|
|
|
|
|
SSCommitted
      
Group: General Forum Members
Last Login: Today @ 10:39 AM
Points: 1,527,
Visits: 1,564
|
|
tabinsc (4/20/2011) I haven't proven this correct yet, but I am thinking redundant data in two tables makes sense if you need that data to join the tables properly and avoid table/index scans in the execution plan. You could create indexes on the redundant columns to force index seeks on both tables.
My initial reaction to this statement was going to be "well that explains the percentage of incorrect answers". 
But to answer more seriously, I'd say it sounds like another edge case scenario. In general, I would try to use a primary key foreign key relationship to join the tables, or a cross-reference table that uses a key from each table make the connection, or any other method that doesn't involve storing, indexing and joining on redundant data with no constraints that ensure data integrity.
|
|
|
|
|
SSCoach
         
Group: General Forum Members
Last Login: Today @ 5:03 PM
Points: 18,853,
Visits: 12,438
|
|
|
|
|