After I am adding UNION to 3 different phases on my SELF JOIN, I am getting this error. Kindly suggest a solution.
select distinct
ps1.ProductKey ,\