Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Duvidas sql
Message
From
10/01/2003 12:46:31
Erick Miranda
Formata Data Business - Grupo Linx
Contagem, Brazil
 
 
To
10/01/2003 11:18:21
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Miscellaneous
Thread ID:
00740324
Message ID:
00740382
Views:
12
Olá!

Você pode usar:
SELECT * from SuaTabela ;
  WHERE Codigo In (Select Codigo, Min(Vencimento) ;
  From SuaTabela Group By Codigo) ;
  ORDER BY Cliente, Vencimento

* DataAEscolha é uma data a sua escolha (geralmente solicitada em um filtro) 
* que servirá como base para identificar quais são as dívidas mais antigas
Até mais.
Erick
Força Sempre!
Strength Always!
Previous
Reply
Map
View

Click here to load this message in the networking platform