Skip to content

Tag: sql-server

Insert Select into with same ID

Insert Split Delimited Strings in a Column with same ID. Lets say I have demo setup as follows: I declare some variables Note: the @addresses sting is dynamic and not fixed Now my aim is to insert into table EMPLOYEEID_Address multiple address with same the id using the STRING_SPLIT function. So I tried: But …

Query using from / to tables

I have one from / to table which has some data like this: FROM | TO ———————+—————- Apple iPhone SE 64GB | IPHONE SE 64GB And I have two other tables which are …