Softeon Interview Question

Sql joins and Having clause