I have a customer that has two AOD companies that have a ID field with the same series of numbers in them. In order to not overwrite one set of records from the second set of records, I want to add a string to the data in the ID field.
This is what I have tried to do:
SELECT "'RW' + CONVERT(Profile_ID, SQL_CHAR (10))" AS Profile_ID
I have also tried:
SELECT "'RW' + CAST(Profile_ID AS nvarchar (10))" AS Profile_ID
Both of these cause an error with the ODBC driver for PSQL saying the there is an invalid column:
Detail: ERROR [HY000] [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Error in expression: 'RW' + CAST(Profile_ID AS nvarchar (10))
ERROR [42S22] [Pervasive][ODBC Client Interface][LNA][Pervasive][ODBC Engine Interface]Invalid column name: ''RW' + CAST(Profile_ID AS nvarchar (10))'.
This seems like it should be a simple thing. Any guidance?
Thanks!
Mike Kokinda