Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SQL syntax help with a subquery
Message
 
 
To
30/11/2006 19:35:27
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows NT
Database:
MS SQL Server
Miscellaneous
Thread ID:
01173944
Message ID:
01173962
Views:
11
>Thanks for the fast reply! Unfortunately, Foxpro returns with "Queries of this type are not supported" :-(

This should work
SELECT pt.*, ct.b_Name ;
	FROM ParentTable pt ;
	JOIN ChildTable ct ON pt.a_pk = ct.b_afk ;
		WHERE b_area = (SELECT MAX(b_area) FROM ChildTable WHERE b_afk = ct.b_afk)
--sb--
Previous
Reply
Map
View

Click here to load this message in the networking platform