Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex sql statement
Message
De
25/10/2000 16:41:12
 
 
À
25/10/2000 14:03:11
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00434214
Message ID:
00434323
Vues:
15
>I have a client table that has a field postalcode(field-postalcode)
>I have a town table that lists all towns and all possible postal codes for these towns(fields - pcode, town)
>I have a dropdown list that fills from a town.dbf
>
>If user selects Toronto from the list - I want all clients to be displayed where the postal codes match based on the town.
>
> what's the best way to handle this, I'm doing it on a web page / with web connect and visual foxpro database
>
>Any sql samples would be appreciated.
>
>MB


Try:

SELECT clients.* FROM clients
WHERE clients.postalcode IN (SELECT postalcode FROM town WHERE town=)
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform