My program get weeks in weeks table. And I have challange table and challange_week column in challange table for 开发者_StackOverflowunite two table.
I want to if gotten week is empty, don't show this week. Can i do this with just one SQL query?
left outer join?
select * from weeks w left outer join challange c on w.week = c.challange_week where c.challange_week is not null
精彩评论