Earing Hold-Type Name Address
$100 Address John Italy
$100 DOB John Italy
$50 Address Mike Canada
$30 DOB Rose Dallas
$30 Address Rose Dallas
$200 Address Jenny New York
My desired output:
Earing Name Address
$100 John "Hold"
$50 Mike Canada
$30 Rose "Hold"
$200 Jenney "Hold"
I just want one row for each person. And on that row if the person has a Hold-Type = Address, I want his/her address to be "Hold".
How can I do this?
I can do this with CASE statement but I cannot make it appear just one row for each person.
Any help would be greatly appreciated.
Thanks
$100 Address John Italy
$100 DOB John Italy
$50 Address Mike Canada
$30 DOB Rose Dallas
$30 Address Rose Dallas
$200 Address Jenny New York
My desired output:
Earing Name Address
$100 John "Hold"
$50 Mike Canada
$30 Rose "Hold"
$200 Jenney "Hold"
I just want one row for each person. And on that row if the person has a Hold-Type = Address, I want his/her address to be "Hold".
How can I do this?
I can do this with CASE statement but I cannot make it appear just one row for each person.
Any help would be greatly appreciated.
Thanks