Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Select
Message
From
15/04/2016 10:03:59
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
SQL Select
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 10
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01634840
Message ID:
01634840
Views:
81
Hello all,

I have a cursor generated by a bunch of SQL subqueries. The data in that cursor is primary keys.

I want to be able to select three records in another cursor for each primary keys that are a part of that cursor.

So Cursor with primary keys looks like this

12354
3456
23

Result that I would like to have

12354 Whatever1
12354 Whatever2
12354 Whatever3
3456 Something1
3456 Something2
3456 Something3
23 Other1
23 Other2
23 Other3

Can this be done with a SQL construct?
*******************************************************
Save a tree, eat a beaver.
Denis Chassé
Next
Reply
Map
View

Click here to load this message in the networking platform