I need to be able to select my entire table but where there are duplicate id's, only select 1 of them based on the data in a different field.
For example if my table looks like this
I want to select all rows, but if there are 2 of the same id, select only the row with Billing as the address type.

Billingwill be there only for ids which are duplicates?