I want to check if my data table column contains any value.
Let’s say I have two columns.
Name Status
ABC 0
ZYZ 0
BCD 1
DSE 0
XYZ 1
BCA 0
I want to check if the “Status” column contains value “1”.
Also, If any row contain value “1”, get the value from corresponding column “Name” where ever the Status is “1”