Skip to content
Advertisement

Tag: tsql

Value from 2nd Row of column copied to 1st row of next column

The table looks like below. I am trying to make 1 new column say SuprerFrez whose value is depends on column FREQHZ. For every UVRID group 2nd value FREQHZ will be 1st value of SuprerFrez and for last FREQHZ, SuprerFrez value will be zero. Expected output with 1 new column whose value depends upon FREQHZ column. Order by FREQHZ ASC

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 this didn’t work, while works with

Advertisement