0
基本上我想訂單記錄
Select * from x
JOIN y
on x.id = y.x_id
where y.tag_id in (1, 2, 3, 4) order by [the amount of hits of y.tag_id]
所以
說Y可以是:
id | x_id | tag_id
1 | 55 | 2
2 | 55 | 3
3 | 66 | 1
我要作記錄x.id = 55排序上述x.id = 66 55具有2次命中(2和3),而66只具有一個撞