Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select and set to variable
Message
From
08/03/2015 06:45:17
Dragan Nedeljkovich
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2014
Application:
Web
Miscellaneous
Thread ID:
01616353
Message ID:
01616435
Views:
26
>>>If there's one thing I know about it's inventory. The software company I worked for constantly ran into companies who had tried to cut corners and ran into problems. There is no shortcut to keeping track of things down to the SKU and transaction level. Then you can query as needed. Besides, in database theory you don't store sums in any table. Dr. Codd changed all that.
>>
>>Which theory would that be? Normalisation? Eh... I don't know anyone that normalizes tables to the 5th NF or even 3rd Boyce -Codd. Storing redundant data is allowed as long as it is controlled.
>
>I disagree. IMO if the data is easily accessible by SQL Select (or similar) there is no reason to wander in harm's way. The milliseconds of query overhead easily outweigh the potential downside of data being out of sync, i.e. wrong. IMO, of course.

As a professor from local college here said, "once you make it possible to keep your totals in two places, it will happen that they're out of sync and nothing will wash you... so keep them in only one place, even untotalled, and they don't have a way to get them from two places. It doesn't matter whether it's correct.".

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform