Multiple Conditions In If Statement Sql