Top 1 with a left join

前端 未结 4 960
时光说笑
时光说笑 2020-12-22 23:44

Given the query below there might be multiple rows in dps_markers with the same marker key but we only want to join against the first. If I take this query and remove the t

4条回答
  •  既然无缘
    2020-12-23 00:09

    Because the TOP 1 from the ordered sub-query does not have profile_id = 'u162231993' Remove where u.id = 'u162231993' and see results then.

    Run the sub-query separately to understand what's going on.

提交回复
热议问题