Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Left outer join and just one match
Message
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01251976
Message ID:
01252033
Views:
33
>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.

>>
>>I am using a left outer join between two tables basisverzekering and wiskunde:
>>
>>
>>
>>Select basisverzekering.* from basisverzekering;
>>left outer join wiskunde on basisverzekering.mijbrpls = wiskunde.mijbrpls
>>
>>
>>
>>Basisverzekering is unique on mijbrpls, but in wiskunde it is not. If I just want one record (the first match) from wiskunde instead of all the matches, how do I achieve this within one query
Zakaria al Azhar
My blog on Actuaris.net
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform