mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-10 01:25:21 +00:00
16 lines
303 B
SQL
16 lines
303 B
SQL
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;
|