Re: HELP NEEDED: Problems with SELECT in combination with HAVING

2001-06-27 Thread Hannes Niedner
orm to the standard ? > > Regards > Thomas > > > -Original Message----- > From: Hannes Niedner [mailto:[EMAIL PROTECTED]] > Sent: 26. juni 2001 17:42 > To: [EMAIL PROTECTED] > Subject: Re: HELP NEEDED: Problems with SELECT in combination with > HAVING >

RE: HELP NEEDED: Problems with SELECT in combination with HAVING 2

2001-06-27 Thread Thomas Michael Koch
Niedner [mailto:[EMAIL PROTECTED]] Sent: 26. juni 2001 17:42 To: [EMAIL PROTECTED] Subject: Re: HELP NEEDED: Problems with SELECT in combination with HAVING Try SELECT robotId, max(startTime) as crit FROM RobotRun WHERE startTime >= '2001-06-26 00:00:00' AND endTime IS NOT NULL GROUP BY

RE: HELP NEEDED: Problems with SELECT in combination with HAVING

2001-06-27 Thread Thomas Michael Koch
[mailto:[EMAIL PROTECTED]] Sent: 26. juni 2001 17:42 To: [EMAIL PROTECTED] Subject: Re: HELP NEEDED: Problems with SELECT in combination with HAVING Try SELECT robotId, max(startTime) as crit FROM RobotRun WHERE startTime >= '2001-06-26 00:00:00' AND endTime IS NOT NULL GROUP BY rob

Re: HELP NEEDED: Problems with SELECT in combination with HAVING

2001-06-26 Thread Hannes Niedner
Try SELECT robotId, max(startTime) as crit FROM RobotRun WHERE startTime >= '2001-06-26 00:00:00' AND endTime IS NOT NULL GROUP BY robotId This should return the robotId and the most recent startTime labeled 'crit' for all records specified in the where clause. And have a look in the manual for