User defined variables in sql