count, max and merge two tables(sql query?)

Printable View