Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
SPT Syntax help
Message
 
 
To
25/08/2010 08:36:30
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Title:
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01478231
Message ID:
01478334
Views:
32
This message has been marked as the solution to the initial question of the thread.
>This does not seem to work either. It appears that the inner join only pulls one record from table b.

One more variation:
select A.* from TableA A where RevisionLevel <> (select top 1 RevisionLevel from TableB B where B.PartNo = A.PartNo order by Date DESC)
And if you want B table info, then
select A.*, B.Fields from TableA A inner join tableB B on A.PartNo = B.PartNo 
where B.PK <> (select top 1 Pk from TableB B where B.PartNo = A.PartNo order by Date DESC)
and A.RevisionLevel <> B.RevisionLevel
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform