Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement
Message
De
11/05/2005 12:12:32
 
 
À
11/05/2005 11:29:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01012914
Message ID:
01012948
Vues:
24
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!
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform