Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery: SELE * FROM (SELE *....
Message
De
17/08/1999 15:39:52
 
 
À
17/08/1999 15:04:40
Kenneth Downs
Secure Data Software, Inc.
New York, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00254643
Message ID:
00254672
Vues:
21
Ken,

Fox does support this syntax. Let me see if I can find a recent example of this I've used...

Ahh.. Here's one..

DATE()-contacts.entered AS numdays;
FROM contacts, tasks;
WHERE contacts.custno = tasks.custno ;
AND contacts.inactive <> .T.;
AND EMPTY(contacts.company) <> .T. ;
AND contacts.custno NOT IN (SELECT DISTINCT custno FROM tasks WHERE "PROC F/U" $ tasks.tasktrak) ;
AND contacts.custno IN (SELECT DISTINCT custno FROM tasks WHERE "FILE2PREU" $ tasks.tasktrak);
ORDER BY contacts.entered, contacts.company

What you want is to think of this as kind of 'pre reducing' your pool of choices and then selecting from it.

Best,
Best,


DD

A man is no fool who gives up that which he cannot keep for that which he cannot lose.
Everything I don't understand must be easy!
The difficulty of any task is measured by the capacity of the agent performing the work.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform