I need to select all columns from a view, but I need to restrict the rows to distinct records. However, not every column is unique for the records that I consider to be duplicates. But for the records that I consider to be distinct, if I look at only six of the columns (not all), those records are distinct.
Example:
These six columns are identical for two of my records:
customer number
document number
document type
document date
original document amount
current document amount
However, these two columns are different for the two records:
due date
post date
Because the main six columns are duplicated, I want to eliminate one of the records and only keep one.
I know this is probably simple, but it is escaping me. Thanks in advance for help.
Example:
These six columns are identical for two of my records:
customer number
document number
document type
document date
original document amount
current document amount
However, these two columns are different for the two records:
due date
post date
Because the main six columns are duplicated, I want to eliminate one of the records and only keep one.
I know this is probably simple, but it is escaping me. Thanks in advance for help.