Pergunta de entrevista da empresa Oracle

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