Files
doris/regression-test/suites/with_clause_p0/sql/withExprUsingOrderbyLimit.sql
2022-09-29 10:45:17 +08:00

4 lines
222 B
SQL

-- database: presto; groups: with_clause; tables: nation; queryType: SELECT
WITH ordered AS (select nationkey a, regionkey b, name c from tpch_tiny_nation order by 1,2 limit 10)
select * from ordered order by 1,2 limit 5