esm
11-06-2007, 05:51 PM
I am trying to come up with a sql statement to pull distinct checks from a table.
the table has the obvious fields. unique transaction number, transaction date, check number, check date, check amount, customer number, invoice paid, invoice amount, amount applied to invoice, etc.
A single check could pay more than one invoice for a paricular customer. So there could be multiple rows for any single check.
It is possible that check information could be same for any two checks except for the customer number (and the unique transaction number).
What sql statement could I use to "list the checks?" with out "duplicates" and still list "all" of the checks?
.
the table has the obvious fields. unique transaction number, transaction date, check number, check date, check amount, customer number, invoice paid, invoice amount, amount applied to invoice, etc.
A single check could pay more than one invoice for a paricular customer. So there could be multiple rows for any single check.
It is possible that check information could be same for any two checks except for the customer number (and the unique transaction number).
What sql statement could I use to "list the checks?" with out "duplicates" and still list "all" of the checks?
.