We performed an upgrade of a proprietary program that formerly used Access and now uses SQL. The table schema are exactly the same, but the problem is that the primary key restarted when we switched to SQL. I've imported the old access database into another sql table in the database. The current (SQL based) table is named Archive and the imported Access one is ArchivePreSQL. What I'm trying to do is to create a query that joins those two tables (so I have all records in one query) and adding an "S" to the primary key if it's from the SQL table and an "A" if it's from the imported Access table. Is it possible to do this?
I can get the first chunk of data like this, but I'm unsure how to JOIN it with the second table how I desire.
SELECT 'S' + CAST(id AS varchar(MAX)) AS id, Account, BillingNumber, TakenTimestamp FROM Archive
Any help with this is much appreciated!