Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can this be done in one SQL Select?
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00984864
Message ID:
00984927
Vues:
32
Hi Dmitry,

A little changed Peter's suggestion.
(not tested too, sorry)
select ot.KEYFIELD, ot.CUST_ID, ot.ORD_DATE, ot.ORD_TIME ;
from ORDERTABLE ot;
where KEYFIELD =
	(select top 1 KEYFIELD from ORDERTABLE sot
	where sot.CUST_ID == ot.CUST_ID
	order by sot.ORD_DATE, sot.ORD_TIME descending where sot.ORD_DATE=yourDate)
order by CUSTOMER
Regards,
Venelina Jordanova

Outsourcing IT Services Ltd.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform