Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Query for Joining tables
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01400672
Message ID:
01400730
Vues:
36
Your query worked like a charm. I did make two changes, because my previous example was not quite correct. I only want rows in the result set that have data in fld2. Thanks!
select FldID, Fld2 from Tbl2 where Fld2<>SPACE(10) ;
UNION ;
select FldID, Fld2 from Tbl1 where exists (select 1 from Tbl2 where Fld2 = space(10) and FldID = Tbl1.FldID) and Fld2<>SPACE(10)
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform