Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SPT Syntax help
Message
 
 
À
24/08/2010 19:01:28
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:
01478248
Vues:
31
>Works great thanks.
>
>I have one more chalange though.
>
>Each part number in table a has a current engineering drawing revision letter.
>
>Each inspection record in table b also has the engineering drawing level it was checked to. This revision level may have changed since it was inspected. I need a query that will show where table a revisions and table b revisions(greatest date of group) that no longer match.
select A.*, B.RevisionLevel, B.Date from
TableA A inner join
TableB B on A.PartNo = B.PartNo
inner join
(select PartNo, max(date) as MaxDate from TableB group by PartNo) X
on B.PartNo = X.PartNo and B.Date = X.MaxDate
where A.RevisionLevel <> B.RevisionLevel
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform