Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Left outer join and just one match
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01251976
Message ID:
01252047
Vues:
22
This message has been marked as the solution to the initial question of the thread.
>>How do you define the first match for wiskunde in terms of data? What VFP version are you using?
>>
>
>The Wiskunde records for one "mijbrpls" is ordered by a sequence number (vlgnr_mut) ascending:
>
>
>mijbrpls vlgnr_mut
>10000    1
>10000    2
>10000    3
>10000    4
>10001    1
>10001    2
>
>
>So I want the matches: "10000,1" and "10001,1"
>
>I am sorry for leaving out the vfp version, I am using VFP 5.
>
Try
Select * from basisverzekering ;
	left outer join wiskunde on basisverzekering.mijbrpls = wiskunde.mijbrpls ;
		AND wiskunde.vlgnr_mut = ( SELECT MIN(vlgnr_mut) FROM wiskunde w2 ;
						WHERE w2.mijbrpls = wiskunde.mijbrpls)
BTW, did you now that VFP9 has been release for quite a while?
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform