I have a Postgres DB with some very bad schema design, I'm trying to join two tables with and ID and a field which has the ID but with a couple of characters at the beginning, how would I join these?
eg.
TABLE1
------
Field name: ID
Value: 1000
TABLE2
------
Field name: NUMBER
Value: WO-1000
so basically I need it to say something like:
JOIN TABLE2 ON (TABLE1.ID = 'WO-' + TABLE2.NUMBER)
Thanks