Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can't GROUP BY in exe
Message
De
30/12/2004 07:19:56
 
 
À
30/12/2004 07:07:40
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8
Divers
Thread ID:
00973224
Message ID:
00973228
Vues:
14
Thank you, thank you, thank you. I thought I was going nuts.

Alex



>Do you have a different SET ENGINEBEHAVIOR setting in the exe?
>By the way, for compatibility reasons, I strongly advice you NOT to set it to 70, you better change your select statement to work with a setting of 80 in order to comly with ANSI SQL.
>
>>Hi,
>>
>>I am having a problem with the following statement when running form an exe, but not when runing the project in development. The message is "GROUP BY clause invalid or missing".
>>
>>
>>SELECT S.*, ;
>>       SUM(IIF(ExtAmt # 0 AND InvAmt # 0,ROUND(ShippedQty/IIF(SellFrac=0,1,SellFrac),2),000000.00)) AS CajasVenta, ;
>>       SUM(IIF(ExtAmt = 0 AND InvAmt # 0,ROUND(ShippedQty/IIF(SellFrac=0,1,SellFrac),2),000000.00)) AS CajasPromocion, ;
>>       SUM(IIF(ExtAmt = 0 AND InvAmt = 0,ROUND(ShippedQty/IIF(SellFrac=0,1,SellFrac),2),000000.00)) AS CajasMuestra ;
>>  FROM CustomerHistSummary_ConRenglonesCajas_TrandateRange S ;
>> WHERE &tcWhere ;
>> GROUP BY 2 ;
>> INTO CURSOR (tcAlias)
>>
>>
>>Any ideas? TIA,
>>
>>Alex
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform