Oracle Interview Question

1. merge two sorted arrays. 2.some SQL queries around group by and having