Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Last transaction of each transaction type
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01508934
Message ID:
01508951
Vues:
46
>Hi Sergey
>
>So if I use:
>
>
SELECT * FROM TranLog tl
>  WHERE Jobno = "..." AND
>      TranDate  =  (SELECT MAX(TranDate)  FROM TranLog WHERE Jobno = tl.Jobno AND TranType = tl.TranType)
>
>as a final requirement I want to fill in the employees name, field is NEMPNO I(4), AND CNAME C(20) is stored in
>OPERATORS & indexed on IEMPNO
>
>is this possible within the same SQL statement?
>
>

Sure, it's possible. Could you please post exact structures of the tables involved and the exact output you'd like to get?

How exactly the Operators table is related to LogFile?
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