Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Complex SQL Statement Help
Message
 
 
À
05/04/2005 13:16:48
Steven Dyke
Safran Seats USA
Texas, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01001581
Message ID:
01001585
Vues:
17
This message has been marked as the solution to the initial question of the thread.
>I need help with an SQL statement. How do I get fields from both tables in the following statement:
>
>Select name, badgeno from usrtbl Where usrid In (Select usrid From usrtbl2)
>
>The usrtbl2 has a department field that I need in my query.
Select usrtbl.name, usrtbl.badgeno, usrtbl2.department  ;
	from usrtbl ;
		JOIN usrtbl2 ON usrtbl.usrid = usrtbl2.usrid 
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform