General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
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.
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only