Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Group by vfp 8
Message
From
05/03/2004 07:36:26
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Group by vfp 8
Miscellaneous
Thread ID:
00883423
Message ID:
00883423
Views:
37
Hi all

I know about enginebehavior, and changes in vfp 8, but anyway I have this problem

With the next data

Table sales
Customer Purchase Amount
1 2004/01/01 150
1 2004/01/02 200
1 2004/01/15 100
2 2004/02/05 50
3 2004/02/01 180
3 2004/01/01 100

I need a select sql that returns ONE record per customer, with the max amount for each customer, and the dato of purchase of this max amount.

1 2004/01/02 200
2 2004/02/05 50
3 2004/02/01 180

In vfp 7 the next instruction works

select customer,purchase,max(amount) from sales group by customer

What can I do in VFP8?

Thanks in advance
Rodrigo Juarez
rodrigoj@azinformatica.com.ar

Para entender la recursividad, primero, hay que entender la recursividad.
Next
Reply
Map
View

Click here to load this message in the networking platform