Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complex sql statement
Message
From
25/10/2000 16:41:12
 
 
To
25/10/2000 14:03:11
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00434214
Message ID:
00434323
Views:
14
>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=)
Previous
Reply
Map
View

Click here to load this message in the networking platform