A
A
abricos072019-07-03 19:32:04
SQL
abricos07, 2019-07-03 19:32:04

Is it possible to specify the percentage of query results?

Hello! Please help.
There is a table with a country column. Possible values ​​are "A, B, C, D...". The sample limit is 20. Is it possible to compose a query in such a way that the result is, for example, 20% with the value A, and 80% with the value G? Or specify limits on the number of rows with value A?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konstantin Tsvetkov, 2019-07-03
@tsklab

Выбрать 20 из (Выбрать 20% для А
UNION
Выбрать 80% для Г
Сортировка (никто не знает как))

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question