Hi, I am desparate for some help on this please, I am getting dupicate [Student_id] and [Student], I have managed to remove some with the where clause but not all. The code I have is below, please can some one tell me what is wrong with it?
[SELECT DISTINCT FAMLSR16A.student_id, FAMLSR16A.Student, FAMLSR16A.learn_sup_1a AS learn_sup_1
FROM FAMLSR16A
WHERE FAMLSR16A.learn_sup_1a is not null
UNION SELECT DISTINCT FAMLSR16A.student_id, FAMLSR16A.Student, FAMLSR16A.Expr1 AS learn_sup_1
FROM FAMLSR16A
WHERE FAMLSR16A.Expr1 is not null;]
Thank you