Not sure the best way to go about this. I have a table of data from a postgres query, with one column i'm running a mapped value on, since i have employee IDs assigned to their name:
When trying to run an insert query to another table, i get an error because employee_id is being entered as "Mikey" when it should just be 1.
(invalid input syntax for type integer: "Mikey")
So i guess i need to reverse the mapped value somehow, should i use a transformer or javascript query? Not really sure. I'll end up having about 10 employee IDs and Names and it's something I'd reuse quit a bit in my app.
How is the table constructed?
If employee name is in one column and employee ID is in another, what are you trying to accomplish? Can you post some screenshots?