alter sql call in select