mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
16 lines
303 B
MySQL
16 lines
303 B
MySQL
|
SELECT
|
||
|
toFloat32(number % 10) AS n,
|
||
|
'original' AS source
|
||
|
FROM numbers(10)
|
||
|
WHERE (number % 3) = 1
|
||
|
ORDER BY n ASC WITH FILL STEP 1
|
||
|
LIMIT 2;
|
||
|
|
||
|
SELECT
|
||
|
toFloat32(number % 10) AS n,
|
||
|
'original' AS source
|
||
|
FROM numbers(10)
|
||
|
WHERE (number % 3) = 1
|
||
|
ORDER BY n ASC WITH FILL STEP 1
|
||
|
LIMIT 2 WITH TIES;
|