我有一个看起来像这样的表:
table name: uno
str_id | title
----------
"a1" | "hi"
"b2" | "bye"
"c3" | "etc."
table name: dos
str_id | other_col_name
-------------------------
"b2" | 1
"b2" | 5
"a1" | 6
"b2" | 7
我希望我的查询查看中的值,uno.str_id
然后找出在中具有最多值的 str_id 的排序dos.str_id
。我想我需要在 str_id 上加入它们,然后按计数排序,但我不确定如何在 SQL 语法中执行此操作。感谢您的时间和帮助。