Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Complex SQL Statement Help
Message
 
 
To
05/04/2005 13:16:48
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01001581
Message ID:
01001585
Views:
16
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--
Previous
Reply
Map
View

Click here to load this message in the networking platform