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

Database

 
GeneralRe: cannot add or change a record Pin
Shameel27-Aug-12 23:44
professionalShameel27-Aug-12 23:44 
JokeRe: cannot add or change a record Pin
Eddy Vluggen28-Aug-12 0:17
professionalEddy Vluggen28-Aug-12 0:17 
GeneralRe: cannot add or change a record Pin
Shameel28-Aug-12 0:35
professionalShameel28-Aug-12 0:35 
GeneralRe: cannot add or change a record Pin
PIEBALDconsult28-Aug-12 3:16
mvePIEBALDconsult28-Aug-12 3:16 
GeneralRe: cannot add or change a record Pin
PIEBALDconsult28-Aug-12 3:14
mvePIEBALDconsult28-Aug-12 3:14 
QuestionMy SQl error while sending to database Pin
Inderjeet Kaur23-Aug-12 20:25
Inderjeet Kaur23-Aug-12 20:25 
AnswerRe: My SQl error while sending to database Pin
Shameel23-Aug-12 21:05
professionalShameel23-Aug-12 21:05 
GeneralRe: My SQl error while sending to database Pin
Inderjeet Kaur23-Aug-12 21:21
Inderjeet Kaur23-Aug-12 21:21 
GeneralRe: My SQl error while sending to database Pin
Shameel23-Aug-12 23:31
professionalShameel23-Aug-12 23:31 
AnswerRe: My SQl error while sending to database Pin
PIEBALDconsult24-Aug-12 3:41
mvePIEBALDconsult24-Aug-12 3:41 
GeneralRe: My SQl error while sending to database Pin
Eddy Vluggen24-Aug-12 5:22
professionalEddy Vluggen24-Aug-12 5:22 
Questionhow to start Schema design? Pin
HimanshuForever23-Aug-12 19:03
HimanshuForever23-Aug-12 19:03 
AnswerRe: how to start Schema design? Pin
Niladri_Biswas23-Aug-12 19:21
Niladri_Biswas23-Aug-12 19:21 
GeneralRe: how to start Schema design? Pin
HimanshuForever23-Aug-12 19:31
HimanshuForever23-Aug-12 19:31 
GeneralRe: how to start Schema design? Pin
Niladri_Biswas23-Aug-12 19:58
Niladri_Biswas23-Aug-12 19:58 
AnswerRe: how to start Schema design? Pin
Eddy Vluggen24-Aug-12 22:29
professionalEddy Vluggen24-Aug-12 22:29 
QuestionFind phonetic word in SQL Pin
chandra reinhart23-Aug-12 5:07
chandra reinhart23-Aug-12 5:07 
AnswerRe: Find phonetic word in SQL Pin
Pete O'Hanlon23-Aug-12 5:29
mvePete O'Hanlon23-Aug-12 5:29 
GeneralRe: Find phonetic word in SQL Pin
chandra reinhart11-Sep-12 19:56
chandra reinhart11-Sep-12 19:56 
AnswerRe: Find phonetic word in SQL Pin
Niladri_Biswas23-Aug-12 19:42
Niladri_Biswas23-Aug-12 19:42 
GeneralRe: Find phonetic word in SQL Pin
chandra reinhart11-Sep-12 19:53
chandra reinhart11-Sep-12 19:53 
QuestionSQL Table Grouping Pin
milo-xml20-Aug-12 3:56
professionalmilo-xml20-Aug-12 3:56 
Morning all. I need to select certain data from a table:
PI  JobID  FormID  ShiftID  StartEvent              SW   SG   End Event               EG   EW
3   9249    36208   6241    2010-08-14 10:00:15.610 0    0    2010-08-14 10:14:52.000 143   109
3   9249    36208   6241    2010-08-14 10:14:52.217 109  143  2010-08-14 10:15:04.000 150   109
3   9249    36208   6241    2010-08-14 10:15:04.763 109  150  2010-08-14 10:15:07.000 150   109
3   9249    36208   6241    2010-08-14 10:15:09.820 109  150  2010-08-14 10:29:15.000 150   221
3   9249    36208   6241    2010-08-14 10:29:15.570 221  150  2010-08-14 10:53:09.000 376   300
3   9249    36208   6241    2010-08-14 10:53:09.240 300  376  2010-08-14 11:01:18.000 4294  1824
3   9249    36208   6241    2010-08-14 11:01:18.553 1824 4294 2010-08-14 11:02:06.000 4294  1942
3   9249    36208   6241    2010-08-14 11:02:06.363 1942 4294 2010-08-14 11:02:14.000 4294  1920

Out of this I need to get the start values and the end values, ignoring everything in between, essentially reducing it to this:
PI  JobID  FormID  ShiftID  StartEvent              SW   SG   End Event               EG   EW
3   9249    36208   6241    2010-08-14 10:00:15.610 0    0    2010-08-14 11:02:14.000 4294  1920

Any help will be much appreciated.
-edited to show that min and max values on SW, SG, EG, and EW may not necessarily work

modified 20-Aug-12 12:32pm.

AnswerRe: SQL Table Grouping Pin
David Mujica20-Aug-12 4:54
David Mujica20-Aug-12 4:54 
GeneralRe: SQL Table Grouping Pin
milo-xml20-Aug-12 6:19
professionalmilo-xml20-Aug-12 6:19 
AnswerRe: SQL Table Grouping Pin
Paul Conrad20-Aug-12 6:26
professionalPaul Conrad20-Aug-12 6:26 

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.