Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select - Buscar última Compra.
Message
From
20/10/2002 20:32:15
 
 
To
20/10/2002 19:48:36
Fernando Borges
Owl Informática Ltda.
S. J. Rio Preto, Brazil
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00713363
Message ID:
00713369
Views:
16
>O danado do meu cliente está pedindo que na Inclusão do Pedido, mais especificamente no Item de Produto ele quer saber qual foi o último valor unitário que foi vendido para aquele cliente.
>Isso significa que pode não ser a última venda. Pois o item de produto pode não estar nesta venda.


Cria um indice (TAG) pelo cliente, pelo item, DESC por data (ou numero de pedido). Então faz um SEEK() pelo Cliente+Item é terá a ultima venda.


Alex Feldstein, MCP, Microsoft MVP
VFP Tips: English - Spanish
Website - Blog - Photo Gallery


"Once again, we come to the Holiday Season, a deeply religious time that each of us observes, in his own way, by going to the mall of his choice." -- Dave Barry
Previous
Reply
Map
View

Click here to load this message in the networking platform