I have a generic class invoices with columns of dateTime, invoice, customer, amount. In a day there are 100\'s of invoices
I want to write a query to get the invoice,