K
Size: a a a
K
DC
EK
DT
DC
DT
K
DT
K
SELECT price as priceSelect,
countIf(price <= priceSelect) as x
FROM x
GROUP BY price
ORDER BY price DESC LIMIT 10
┌─priceSelect─┬───x─┐
│ 0.216 │ 12 │
│ 0.1975 │ 39 │
│ 0.1792 │ 372 │
│ 0.175 │ 94 │
│ 0.15984 │ 1 │
│ 0.158 │ 28 │
│ 0.155 │ 6 │
│ 0.154 │ 31 │
│ 0.153 │ 1 │
│ 0.152 │ 12 │
└─────────────┴─────┘
K
IR
DT
SELECT price as priceSelect,
countIf(price <= priceSelect) as x
FROM x
GROUP BY price
ORDER BY price DESC LIMIT 10
┌─priceSelect─┬───x─┐
│ 0.216 │ 12 │
│ 0.1975 │ 39 │
│ 0.1792 │ 372 │
│ 0.175 │ 94 │
│ 0.15984 │ 1 │
│ 0.158 │ 28 │
│ 0.155 │ 6 │
│ 0.154 │ 31 │
│ 0.153 │ 1 │
│ 0.152 │ 12 │
└─────────────┴─────┘
DT
DC
K
DT
DT
K
DT
K
SELECT count() FROM (
SELECT DISTINCT price FROM table WHERE stats_day= today()
)
┌─count()─┐
│ 22506 │
└─────────┘