Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Subquery
Message
De
29/11/1999 13:22:03
 
 
À
29/11/1999 11:57:57
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Divers
Thread ID:
00296400
Message ID:
00296469
Vues:
23
>I still can't get used to subqueries. This code is in a click for a print button: SELECT red,yellow,blue FROM MainTable WHERE orange = ... where orange matches records in a previously created sql from MainTable under the name MyCursor
>
>I tried SELECT red,yellow,blue FROM MainTable WHERE orange = (SELECT MyCursor.orange) ... but I only get one record.

Try:

SELECT red, yellow, blue FROM MainTable WHERE orange IN (SELECT orange from MyCursor)

(it helps to use the right syntax)
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform