Dears I need your help
My data is as follow
[TABLE="class: outer_border, width: 400"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD="align: center"]Pro1[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro1[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro2[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro2[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro3[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro3[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro4[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
</tbody>[/TABLE]
And what I want is retrieve the names without duplication and this criteria for the status
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]If I have Successful and Failed return
[/TR]
[TR]
[TD]If I have Failed and Failed return
[/TR]
[TR]
[TD]If I have Successful and Successful return
[/TR]
[TR]
[TD]If there is no duplication return what ever the status is[/TD]
[/TR]
</tbody>[/TABLE]
Expected results
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD]Pro1[/TD]
[TD]Failed[/TD]
[/TR]
[TR]
[TD]Pro2[/TD]
[TD]Failed[/TD]
[/TR]
[TR]
[TD]Pro3[/TD]
[TD]Successful[/TD]
[/TR]
[TR]
[TD]Pro4[/TD]
[TD]Successful[/TD]
[/TR]
</tbody>[/TABLE]
My data is as follow
[TABLE="class: outer_border, width: 400"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD="align: center"]Pro1[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro1[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro2[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro2[/TD]
[TD="align: center"]Failed[/TD]
[/TR]
[TR]
[TD="align: center"]Pro3[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro3[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
[TR]
[TD="align: center"]Pro4[/TD]
[TD="align: center"]Successful[/TD]
[/TR]
</tbody>[/TABLE]
And what I want is retrieve the names without duplication and this criteria for the status
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD]If I have Successful and Failed return
Failed
[/TD][/TR]
[TR]
[TD]If I have Failed and Failed return
Failed
[/TD][/TR]
[TR]
[TD]If I have Successful and Successful return
Successful
[/TD][/TR]
[TR]
[TD]If there is no duplication return what ever the status is[/TD]
[/TR]
</tbody>[/TABLE]
[TABLE="class: outer_border, width: 500"]
<tbody>[TR]
[TD="align: center"]Name[/TD]
[TD="align: center"]Status[/TD]
[/TR]
[TR]
[TD]Pro1[/TD]
[TD]Failed[/TD]
[/TR]
[TR]
[TD]Pro2[/TD]
[TD]Failed[/TD]
[/TR]
[TR]
[TD]Pro3[/TD]
[TD]Successful[/TD]
[/TR]
[TR]
[TD]Pro4[/TD]
[TD]Successful[/TD]
[/TR]
</tbody>[/TABLE]
Last edited: