Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
From
11/05/2005 12:12:32
 
 
To
11/05/2005 11:29:54
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01012914
Message ID:
01012948
Views:
23
How about something like..........
SELECT DISTINCT cr.callrepid FROM callreport cr,actions ac;
 WHERE ac.actionid IN (cr.actionid1,cr.actionid2,....,cr.actionid10)
It seemed to work ok on a very small mock-up of what you described



>I have two tables as follows:
>
>callreport.dbf
>callrepid   actionid1  actionid2 ...  actionid10 ....
>
>
>actions.dbf
>actionid    action
>
>
>I need an sql statement that will produce a cursor containing only the callrepids from callreport.dbf that have an actionid (1-10) that is in the actions dbf.
>
>Hope this makes sense.
>
>Thanks in advance for your help!
Previous
Reply
Map
View

Click here to load this message in the networking platform