Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SLQ statement in VFP9 doesnt work
Message
De
30/08/2007 06:31:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01251317
Message ID:
01251319
Vues:
15
This message has been marked as the solution to the initial question of the thread.
See section on 'GROUP BY' under "SET ENGINEBEHAVIOUR" in help.
Regards,
Viv
>Hi
>
>I am trying to transfer an SQL statement from a FPD26 program into VFP9, but the command doesnt seem to work
>
>
>Select customer.name, customer.code, COUNT(*), SUM(ord_tot - vat) AS value,
>SUM(IIF(orders.o_type $ 'ABCDPS', 1, 0)) AS paid, SUM(IIF(orders.o_type
> $ 'ABCDPS', 0, 1)) AS unpaid, SUM(orders.adw) AS s_adw, SUM(carriage) AS s_carr, SUM(vat) AS s_vat FROM ORDERS,CUSTOMER WHERE orders.ent_date<
> (entdate) AND BETWEEN(orders.fun_date, (f_start), (f_end)) AND customer.code = orders.customer AND customer.custgroup = what INTO CURSOR T1
>
>Creates one record into FPD26, with all the totals I need, but in VFP9 I get group by clause is missing or invalid.
>
>Any help extremley appreciated
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform