OpenSearch/docs/reference/sql
Marios Trivyzas b8a13de20f
SQL: Implement TOP as an alternative to LIMIT (#57428) (#57507)
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

(cherry picked from commit 2f5ab81b9ad884434d1faa60f4391f966ede73e8)
2020-06-02 10:53:42 +02:00
..
appendix SQL: Implement TOP as an alternative to LIMIT (#57428) (#57507) 2020-06-02 10:53:42 +02:00
endpoints SQL: Fix JDBC url pattern in docs and error message (#56612) 2020-05-13 12:13:58 +02:00
functions SQL: Implement TIME_PARSE function for parsing strings into TIME values (#55223) (#57342) 2020-05-29 15:48:37 +02:00
language SQL: Implement TOP as an alternative to LIMIT (#57428) (#57507) 2020-06-02 10:53:42 +02:00
concepts.asciidoc [DOCS] Replaces CCS terms with attributes (#40076) 2019-03-15 07:57:51 -07:00
getting-started.asciidoc [DOCS] Replace "// CONSOLE" comments with [source,console] (#46159) (#46332) 2019-09-05 10:11:25 -04:00
index.asciidoc SQL: [Tests] Move JDBC integration tests to new module (#56872) (#57072) 2020-05-22 17:49:36 +02:00
limitations.asciidoc SQL: Implement scripting inside aggs (#55241) (#55371) 2020-04-17 12:41:22 +02:00
overview.asciidoc SQL: remove beta marker from documentation (#38661) 2019-02-10 00:09:58 +02:00
security.asciidoc SQL: [Tests] Move JDBC integration tests to new module (#56872) (#57072) 2020-05-22 17:49:36 +02:00