I need to display the last 5 results of a query, but I do this query twice because I need to change the where clause to return the values I need.
I thought of something like:
SELECT id, project_id, name, subject FROM "issues" where project_id = 94
UNION ALL
SELECT id, project_id, name, subject FROM "issues" where project_id = 95
limit 5
But it did not work ... Is there any way to do a query only and change its clause to display all the records I need?