开发者

if this week is empty, don't show this week

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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜