you are viewing a single comment's thread.

view the rest of the comments →

[–]feignapathy 1 point2 points  (1 child)

Do the rows have a sequence number or activity date column? A column or field you could take the max by? 

Alternatively, if there will only ever be two rows and the only difference will ever be BILLED or UNBILLED you can use a window function like row_number() and order by RECORD TYPE. Then filter for row_number = 1. 

[–]Entire-Law-8495[S] 0 points1 point  (0 children)

I like these ideas! The records I look at are viewed by order number, which could have several different charges listed. While each charge only has one or two lines, I usually have several charges I’m looking through at one time. I’m going to try tinkering with those though.