Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
データベースの各レコードには複数の列があります。
列 Xと列Y の両方で上位 100 レコードに属するレコードを選択する方法は?
select * from table_name where column_x in ( select top 100 column_x from table_name order by column_x ) and column_y in ( select top 100 column_y from table_name order by column_y );