Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can VFP7 do ...?
Message
De
13/12/2000 11:31:27
 
 
À
13/12/2000 11:10:16
Mike Yearwood
Toronto, Ontario, Canada
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00452865
Message ID:
00452895
Vues:
26
>Hi All
>
>Forgive my lack of formatting, every time I want to format code on the UT, I can never find any document listing the tags.
>
>SELECT Products.*,Prices.Price ;
>FROM Products
>inner join Prices on Products.ID = Prices.ID ;
>and Prices.ID in ;
>(SELECT Prices.ID,MAX(prices.effective_date) FROM Prices ;
>group by Prices.ID )
>
>And yes, I know I can do this in 2 queries...
>
>Thanks!

Works in VFP6 if you chage your code like this:
SELECT Products.*,Prices.Price ;
FROM Products
inner join Prices on Products.ID = Prices.ID ;
WHERE Prices.ID in ;
(SELECT Prices.ID,MAX(prices.effective_date) FROM Prices ;
group by Prices.ID )
Mark
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform