Join two tables and apply group by clause

Printable View