📜  MySQL 最高百分比 - SQL 代码示例

📅  最后修改于: 2022-03-11 15:05:16.552000             🧑  作者: Mango

代码示例2
SELECT * FROM prices WHERE price >= (SELECT price FROM prices p1 WHERE
(SELECT count(*) FROM prices p2 WHERE p2.price >= p1.price) <=
     (SELECT 0.1 * count(*) FROM prices)
);