change data type in sql query