WITH cte AS ( SELECT * FROM m_paciente mp WHERE apellido like 'P%' ) SELECT * FROM ( TABLE cte ORDER BY apellido, nombre LIMIT 10 OFFSET 190 ) sub RIGHT JOIN (SELECT count(*) FROM cte) c(full_count) ON true;
Preview:
downloadDownload PNG
downloadDownload JPEG
downloadDownload SVG
Tip: You can change the style, width & colours of the snippet with the inspect tool before clicking Download!
Click to optimize width for Twitter