刪除重複我做的幾個表,我有一些基本的SQL,利用工會(無論正確與否)從SQL UNION
,但我需要刪除重複。有任何想法嗎?
select * from calls
left join users a on calls.assigned_to= a.user_id
where a.dept = 4
union
select * from calls
left join users r on calls.requestor_id= r.user_id
where r.dept = 4
你是說你的查詢不刪除重複? – Yada 2010-11-08 20:33:15