Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL Statement
Message
 
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:
01013222
Views:
21
>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!

Russell,

A normalized table would completely remove this problem.

One good piece of advice I learned years ago was: "When you start creating fields with numbers to show their order, you're making a mistake."
George

Ubi caritas et amor, deus ibi est
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform