Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL Statement, How to?
Message
De
04/04/2001 12:37:38
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00491913
Message ID:
00491962
Vues:
13
Here's what I ended up with, the query will actually use 2 table to eventually put more criteria. Seems to work OK.

SELECT Invoice.amount, Invoice.invoice, Invoice.file_num, Invoice.date;
FROM openclose!nrcs INNER JOIN openclose!invoice ON Nrcs.file_num = Invoice.file_num;
WHERE invoice.file_num + dtos(invoice.date) in (SELECT invoice.file_num + dtos(max(invoice.date)) From INVOICE GROUP BY file_num);
GROUP BY invoice.file_num

Thanks for the help.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform