SELECT * FROM satispersoneli sp left join shift s on s.Suid=sp.Sid where sp.Smagaza = 2 and sp.Saktifmi = 1 WHERE s.Shafta = 12 AND s.Shafta = NULL Dener misiniz.