How do I only bring back the top 3 from the join in this query?
There will be multiple records in the InvoiceNotes table and many different invoices.
select invoice_no, inv_date, totamnt, projman, invoicenotes.note, invoicenotes.notedate
from invoices
left join invoicenotes on invoicenotes.invno = invoices.invoice_no
The InvoiceNotes tbale has an ID column so I can order by MAX(ID) DESC and then get top if needed
There will be multiple records in the InvoiceNotes table and many different invoices.
select invoice_no, inv_date, totamnt, projman, invoicenotes.note, invoicenotes.notedate
from invoices
left join invoicenotes on invoicenotes.invno = invoices.invoice_no
The InvoiceNotes tbale has an ID column so I can order by MAX(ID) DESC and then get top if needed