Skip to content

Tag: sql

Swap value between rows

I want to swap dynamically values in column VAL2. The case is when in tech I have got X. I want to upload data from other rows where values in cells are the same ( the only difference is EN1 and EN2 ) because values there are reversed. ~~ SQL server I tried to update, case, but I do not

SQL Merge the row into new column

I have a table named Addresses. The columns are: There is no data in Property as of yet as I will update it manually later. The rest of the columns does hold data though. However I need to merge Road, Town, Borough, District and Postcode into a new column named Full Address. So for example If you can see the