Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SELECT problem
Message
 
À
11/05/1998 17:02:36
Tom Hammer
Pennwell Publishing
Tulsa, Oklahoma, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Divers
Thread ID:
00098580
Message ID:
00098588
Vues:
26
Tom,

Try this:

SELECT tenants.* ;
FROM tenants, buildings, agents ;
WHERE tenants.bldg_id=buildings.bldg_id AND ;
buildings.agent_id=agents.agent_id AND ;
agents.Name='Joe Agent'


>My data resides in the following 3 tables with these links:
>
>Agents Buildings Tenants
>
>name name name
>agent_id <----> agent_id
> bldg_id <------> bldg_id
>
>
>Agents and Tenants don't have a common field. How can I SELECT all the tenants of a particular agent? Will I have to add the agent_id to the tenant table?
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform