adding solution 1 sql