Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Can View Designer do this ?
Message
 
À
19/04/2001 15:20:21
Bruce Covey
Home Depot Television
Atlanta, Georgie, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00497404
Message ID:
00497546
Vues:
8
If I understand your data correctly, I think the following will work (I essentially just added the sub-query stuff):
SELECT ;
  Equipinv.mfg, Equipinv.model, Equipinv.sernum, Stumaint.clsdate,;
  Stumaint.trhrs, Stumaint.drhrs, Stumaint.udrum, Stumaint.proller,;
  Stumaint.froller, Stumaint.slpring, Stumaint.brushes, Stumaint.ctlhd,;
  Stumaint.audhd;
FROM ;
  eng!equipinv ;
  INNER JOIN eng!stumaint ON Equipinv.cmaster_index = Stumaint.cmaster_index ;
WHERE ;
  stumaint.udrum = .T. AND ;
  stumaint.clsdate = ;
    (SELECT MAX(stutemp.clsdate) ;
      FROM stumaint stutemp ;
      WHERE stutemp.cmaster_index=stumaint.cmaster_index) ;
INTO ;
  CURSOR result
(If this message solved your problem, please click on the "Mark this message as the answer to the thread" hyperlink below... Thanks).

--Brad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform