Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
JOIN
Message
 
À
16/05/2000 04:45:37
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Re: JOIN
Divers
Thread ID:
00369874
Message ID:
00369882
Vues:
18
WHERE lk_types="AL" should do it.

>I have a main table and a lookup table and I want the lookup table to provide the desc to the codes in the main table using SQL.
>
>My lookup table fields are lk_type,lk_code,lk_desc, and in the SQL I only want it to join to the lookup tables where lk_type = "AL".
>
>My SQL so far:
>
>SELECT table.*,lookup.lk_desc;
>FROM table LEFT OUTER JOIN lookup ON;
>lookup.lk_code = table.lk_code
>
>What can I do next to ensure that only the lk_types of "AL" are matched?
>
>Thanks
>Kev
Nigel B Coates
NBC Software Services
Dublin, Ireland.
eMail: Nigel.Coates@NBCSoftware.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform