Below is my SQL query to find out, do any of the columns (Req_ecCode1, Req_ecCode2, Req_ecCode3) have the word “YC”. Now my concern is there any way that I can know what is the column name does “YC” located at?
Hope anyone can help me on this.
select *
from SC_Main
where Req_ecCode1 + Req_ecCode2 + Req_ecCode3 like ‘%YC%’