main logo
Subject: I got it Re: SQL Select GROUP BY Error
Author: PLB
Posted: 2004/09/30 18:04:41
 
View Entire Thread
New Search


Never mind,
I found the problem. :)

Philip

PLB wrote:

> Can anyone suggest why I 'd be getting the following error in the
> following SQL Statement (VFP 8.0)
>
> Error: SQL: Group by clause is missing or invalid.
>
> SELECT INVDTE , ;
> INVNO, ;
> gLASST, ;
> ARSTAT,;
> IIF(ARSTAT = "V",(0* extweight),SUM(extweight)) AS ntotweight;
> FROM (gcarpath + "ARTRAN" + gcCompID) ;
> HAVING BETWEEN(INVDTE,dBeginDate,dEndDate) ;
> INTO DBF (gcdatpath + 'tmpdata') ;
> GROUP BY INVDTE, INVNO, gLASST ;
> ORDER BY INVDTE, INVNO, gLASST
>
>
> Thanks,
>
> Philip
>
>
[excessive quoting removed by server]


 
©2004 PLB
<-- Prior Message New Search Next Message -->