Click here to Skip to main content
15,898,374 members
Home / Discussions / Database
   

Database

 
QuestionSQL Server 2005 Express Pin
arkiboys9-Mar-11 21:18
arkiboys9-Mar-11 21:18 
AnswerRe: SQL Server 2005 Express Pin
Wendelius9-Mar-11 22:32
mentorWendelius9-Mar-11 22:32 
QuestionA Matter Of Design Pin
Roger Wright9-Mar-11 16:21
professionalRoger Wright9-Mar-11 16:21 
AnswerRe: A Matter Of Design Pin
Jörgen Andersson9-Mar-11 19:13
professionalJörgen Andersson9-Mar-11 19:13 
AnswerRe: A Matter Of Design Pin
Mycroft Holmes9-Mar-11 22:13
professionalMycroft Holmes9-Mar-11 22:13 
AnswerRe: A Matter Of Design Pin
David Skelly9-Mar-11 22:30
David Skelly9-Mar-11 22:30 
AnswerRe: A Matter Of Design Pin
Tim Carmichael10-Mar-11 3:02
Tim Carmichael10-Mar-11 3:02 
AnswerRe: A Matter Of Design Pin
Wendelius10-Mar-11 6:05
mentorWendelius10-Mar-11 6:05 
Basically nothing new to add but since you've asked for opinions...

Having two tables is absolutely, definitely and undeniably Smile | :) the correct way because of:
- maintainability
- (quite) easy to query regardless of the reporting needs
- flexibility when quering
- efficiency

Depending on the needs I would even concider having three separate (typed) rows, one for On peak value, second for off peak and third for the total (if it cannot be calculated from the data). If the total can be calculated from the data I wouldn't store it, at least not in these tables.

Best regards,

mika
The need to optimize rises from a bad design.My articles[^]

Questioncompare two tables in different environments. Pin
vanikanc9-Mar-11 11:01
vanikanc9-Mar-11 11:01 
AnswerRe: compare two tables in different environments. Pin
Wendelius9-Mar-11 11:20
mentorWendelius9-Mar-11 11:20 
AnswerRe: compare two tables in different environments. Pin
Mycroft Holmes9-Mar-11 11:43
professionalMycroft Holmes9-Mar-11 11:43 
GeneralRe: compare two tables in different environments. Pin
vanikanc10-Mar-11 2:16
vanikanc10-Mar-11 2:16 
GeneralRe: compare two tables in different environments. Pin
vanikanc10-Mar-11 10:40
vanikanc10-Mar-11 10:40 
GeneralRe: compare two tables in different environments. Pin
Wendelius11-Mar-11 11:54
mentorWendelius11-Mar-11 11:54 
AnswerRe: compare two tables in different environments. Pin
dingoishere13-Mar-11 21:09
dingoishere13-Mar-11 21:09 
AnswerRe: compare two tables in different environments. Pin
Om Prakash Pant14-Mar-11 2:04
Om Prakash Pant14-Mar-11 2:04 
QuestionMaintaing DB Pin
Hum Dum8-Mar-11 23:45
Hum Dum8-Mar-11 23:45 
AnswerRe: Maintaing DB Pin
Wendelius9-Mar-11 0:20
mentorWendelius9-Mar-11 0:20 
GeneralRe: Maintaing DB Pin
Hum Dum9-Mar-11 0:41
Hum Dum9-Mar-11 0:41 
GeneralRe: Maintaing DB Pin
Wendelius9-Mar-11 0:55
mentorWendelius9-Mar-11 0:55 
AnswerRe: Maintaing DB Pin
PIEBALDconsult9-Mar-11 1:58
mvePIEBALDconsult9-Mar-11 1:58 
QuestionAliasing Problem In SQL Query Pin
Anubhava Dimri8-Mar-11 22:24
Anubhava Dimri8-Mar-11 22:24 
AnswerRe: Aliasing Problem In SQL Query Pin
Luc Pattyn8-Mar-11 22:37
sitebuilderLuc Pattyn8-Mar-11 22:37 
AnswerRe: Aliasing Problem In SQL Query Pin
Simon_Whale8-Mar-11 22:55
Simon_Whale8-Mar-11 22:55 
GeneralRe: Aliasing Problem In SQL Query Pin
Anubhava Dimri8-Mar-11 22:58
Anubhava Dimri8-Mar-11 22:58 

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.