I wanted to replace data in tableB with data in tableA. Table A:
| Source_Col | Target_Col |
|---|---|
| DB_DEV | DB_UAT |
| CDB_DEV | CDB_UAT |
I have another table which has one col with the value "Create or replace DB_DEV.SCH.VIEW AS SELECT * FROM CBD_DEV.SCH.TABLENAME".
I wanted to replace DB_DEV with DB_UAT and CBD_DEV with CBD_UAT querying from TableA. Is that possible?

--- Query with row_number partition to pick 1st row from Cartesian join
-- Results
-- Results: