Group by clause
  Home FAQ Contact Sign in
microsoft.public.fox.vfp.queriessql only
 
Advanced search
POPULAR GROUPS

more...

 Up
Group by clause         

Group: microsoft.public.fox.vfp.queriessql · Group Profile
Author: apa
Date: Mar 22, 2007 09:54

This thing works fine in VFP 7 when i try to execute it, but in version 9 it
gives me an error GROUP By clause missing or invalid. Anything im missing
here?

SELECT MIN(workdate) as DStart, MAX(workdate) as Dend, military1 as tStart,
military2 as tEnd,orno as Croom, ;
cweeks as cWeeks, cDays as Cdays, laway as laway, cawaydsc as
cdsc,CRANGGRPID as rangegroupid ;
FROM staffdtl ;
WHERE staffid = "XXX" ;
GROUP BY CRANGGRPID ;
ORDER BY dDateStart, dDateEnd, itimeStart, itimeEnd ;
INTO CURSOR cTest

TIA!
1 Comment
diggit! del.icio.us! reddit!