elasticsearch/docs/reference/sql
Marios Trivyzas 2f5ab81b9a
SQL: Implement TOP as an alternative to LIMIT (#57428)
Add basic support for `TOP X` as a synonym to LIMIT X which is used
by [MS-SQL server](https://docs.microsoft.com/en-us/sql/t-sql/queries/top-transact-sql?view=sql-server-ver15),
e.g.:

```
SELECT TOP 5 a, b, c FROM test
```

TOP in SQL server also supports the `PERCENTAGE` and `WITH TIES`
keywords which this implementation doesn't.

Don't allow usage of both TOP and LIMIT in the same query.

Refers to #41195
2020-06-02 09:56:20 +02:00
..
appendix SQL: Implement TOP as an alternative to LIMIT (#57428) 2020-06-02 09:56:20 +02:00
endpoints SQL: Fix JDBC url pattern in docs and error message (#56612) 2020-05-13 12:12:23 +02:00
functions SQL: Implement TIME_PARSE function for parsing strings into TIME values (#55223) 2020-05-29 10:43:49 +02:00
language SQL: Implement TOP as an alternative to LIMIT (#57428) 2020-06-02 09:56:20 +02:00
concepts.asciidoc [DOCS] Replaces CCS terms with attributes (#40076) 2019-03-15 07:54:45 -07:00
getting-started.asciidoc Remove types from BulkRequest (#46983) 2019-10-07 13:29:12 +01:00
index.asciidoc SQL: [Tests] Move JDBC integration tests to new module (#56872) 2020-05-22 15:52:41 +02:00
limitations.asciidoc SQL: Implement scripting inside aggs (#55241) 2020-04-17 11:22:06 +02:00
overview.asciidoc SQL: remove beta marker from documentation (#38661) 2019-02-10 00:09:03 +02:00
security.asciidoc SQL: [Tests] Move JDBC integration tests to new module (#56872) 2020-05-22 15:52:41 +02:00