I'm using hsql db(v:2.3.6) and query is
select id, name, phone
from person p, address a
where a.id = p.id
order by id LIMIT 10
union
select id, name, phone
from old_person op, old_address oa
where op.id = oa.id
order by id LIMIT 10
But above query is throwing an error :
Caused by: org.hsqldb.HsqlException: unexpected token: UNION
I'm not sure why this is an issue.