Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with sql
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
Help with sql
Divers
Thread ID:
01156945
Message ID:
01156945
Vues:
55
I can't figure this out...2 tables.
Table1.dbf
id
released_by
prepared_by
approved_by
reviewed_by
where all the *_by fields match a loginid in the users table. I need to get the name field from the user table.
users.dbf
loginid
name
so something like:
select a.released_by, b.name as released_name, ;
       a.prepared_by, b.name as prepared_name, ;
       a.approved_by, b.name as approved_name, ;
       a.reviewed_by, b.name as reviewed_name ;
From table1 a, users b
This is where I am stuck, can't get the join quite like it needs to be....
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform