Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT Syntax help
Message
 
 
À
25/08/2010 08:36:30
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
Titre:
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01478231
Message ID:
01478334
Vues:
33
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform