Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can I make sure to cover it all?
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
Miscellaneous
Thread ID:
01517745
Message ID:
01517774
Views:
50
>Hi again,
>
>>I wanted to get
>>1-2
>>1-3
>>1-4
>>2-3
>>3-4
>>
>>etc. - all variations of 2 numbers.
>
>Yes, I understood that, but the if you re-read the OP he wanted:
>
>123
>132
>213
>231
>312
>321

Try
select Comb.Comb + cast(C1.ID as C(1)) from (select CAST(A1.ID as C(1)) + CAST(B1.ID as C(1)) as Comb ;
from cur A1 INNER JOIN cur B1 ;
ON A1.ID < B1.ID) Comb INNER JOIN cur C1 ON Comb.Test NOT LIKE '%' + cast(C1.ID as (1)) + '%'
From the top of my head.
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform