“Persentase teratas MySQL” Kode Jawaban

Persentase teratas MySQL

SELECT price FROM prices p1 WHERE
(SELECT count(*) FROM prices p2 WHERE p2.price >= p1.price) <=
     (SELECT 0.1 * count(*) FROM prices)
);
Tender Toucan

Persentase teratas MySQL

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)
);
Tender Toucan

Jawaban yang mirip dengan “Persentase teratas MySQL”

Pertanyaan yang mirip dengan “Persentase teratas MySQL”

Jelajahi jawaban kode populer menurut bahasa

Jelajahi bahasa kode lainnya