I have two tables, but they are installed as plugin in Grails.
Columns in T1 are: a1, b1, c1, d1
Columns in T2 are: a2, b2, c2, d2
I need to select columns a*, b*, c*, d* (=1,2) from both tables in a controller as union and sort all of them by the column d, how can I do that?
Furthermore, how can the pagination work as treating about result as a single table?
Pls help. Appreciate!!