Click here to Skip to main content
15,902,922 members
Home / Discussions / Database
   

Database

 
GeneralRe: Indexing Question Pin
Wendelius27-Sep-08 3:06
mentorWendelius27-Sep-08 3:06 
QuestionConvert datetime to just time (only hour) Pin
notes4we26-Sep-08 10:03
notes4we26-Sep-08 10:03 
AnswerRe: Convert datetime to just time (only hour) Pin
PIEBALDconsult26-Sep-08 10:38
mvePIEBALDconsult26-Sep-08 10:38 
AnswerRe: Convert datetime to just time (only hour) Pin
Blue_Boy26-Sep-08 23:47
Blue_Boy26-Sep-08 23:47 
QuestionSQL SP Pin
Care Career26-Sep-08 9:02
Care Career26-Sep-08 9:02 
AnswerRe: SQL SP Pin
Wendelius26-Sep-08 9:30
mentorWendelius26-Sep-08 9:30 
GeneralRe: SQL SP Pin
Care Career28-Sep-08 6:55
Care Career28-Sep-08 6:55 
GeneralRe: SQL SP Pin
Wendelius29-Sep-08 3:41
mentorWendelius29-Sep-08 3:41 
This simply isn't possible unless there is some kind of logic why the result set should look like you described.

If your result set in the start is:
Interval Avg1 Avg2 
NULL     NULL NULL
04/08    NULL NULL
05/08    2000 NULL
NULL     1000 NULL
NULL     NULL NULL
NULL     NULL 4000
NULL     NULL 3000
and you want:
Interval Avg1 Avg2
04/2008  2000 4000
05/2008  1000 3000

Please explain for example why the last row having 3000 in Avg2 should be combined with the row having 05/08 as interval. Also why the value 2000 on the same row is moved to the row 04/08 and so on...

One crucial thing is that you think this as result sets having rows with conditions since this is the way the DBMS does it.

The need to optimize rises from a bad design

GeneralRe: SQL SP Pin
Care Career28-Sep-08 6:59
Care Career28-Sep-08 6:59 
AnswerRe: SQL SP Pin
nelsonpaixao28-Sep-08 13:33
nelsonpaixao28-Sep-08 13:33 
QuestionUniqueIdentifier Pin
Mohammad Al Hoss26-Sep-08 4:44
Mohammad Al Hoss26-Sep-08 4:44 
AnswerRe: UniqueIdentifier Pin
J4amieC26-Sep-08 4:46
J4amieC26-Sep-08 4:46 
Questionbackup from a specific table Pin
reza assar26-Sep-08 2:59
reza assar26-Sep-08 2:59 
AnswerRe: backup from a specific table Pin
Tim Carmichael26-Sep-08 5:49
Tim Carmichael26-Sep-08 5:49 
AnswerRe: backup from a specific table Pin
Wendelius26-Sep-08 6:45
mentorWendelius26-Sep-08 6:45 
Questionconnect with application using ado Pin
reza assar26-Sep-08 2:55
reza assar26-Sep-08 2:55 
AnswerRe: connect with application using ado Pin
Ashfield26-Sep-08 3:21
Ashfield26-Sep-08 3:21 
QuestionAbout + operator for string Pin
TALHAKOSEN26-Sep-08 1:31
TALHAKOSEN26-Sep-08 1:31 
AnswerRe: About + operator for string Pin
Ashfield26-Sep-08 1:49
Ashfield26-Sep-08 1:49 
GeneralRe: About + operator for string Pin
TALHAKOSEN26-Sep-08 1:54
TALHAKOSEN26-Sep-08 1:54 
GeneralRe: About + operator for string Pin
Ashfield26-Sep-08 2:18
Ashfield26-Sep-08 2:18 
GeneralRe: About + operator for string Pin
TALHAKOSEN26-Sep-08 2:22
TALHAKOSEN26-Sep-08 2:22 
GeneralRe: About + operator for string Pin
Ashfield26-Sep-08 3:18
Ashfield26-Sep-08 3:18 
Generalone more )) pls variable doesnt increase ??? Pin
TALHAKOSEN26-Sep-08 3:56
TALHAKOSEN26-Sep-08 3:56 
GeneralRe: one more )) pls variable doesnt increase ??? Pin
Ashfield26-Sep-08 4:25
Ashfield26-Sep-08 4:25 

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.