Good time. The question arose whether it is possible in the request to check whether the current (same) query contains a certain number of rows (that is, it is still in progress, but it is already known that it will return, for example, 1000+ rows), and if it contains, instead of a sample, return another result, for example select 'To much results'.
The task is not to select with the help of count, and then to check and output, but to find out dynamically