Is it possible to select the number of rows returned in a select? For example:
In this case it would have to be returned 12.
Yes, it is possible through the count function. The syntax is as follows:
select count(*) from tabela where condição;
The count can also be used in conjunction with other functions to perform a more flexible line count (e.g. count + group by).