I\'m building a query to be used in pagination, so my query looks like this:
open ref_cursor for select * from TableA ta join TableB tb on ta.id = tb.ta_id wh