add batch remove batch split batch comment selection show hidden batches hide batch highlight batch
db<>fiddle
donate feedback about
By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
A_NUMBER items
1 i1,i2,i3,i4,i5,i6
2 j1,j2,j3,j4,j5,i6,i7,i8
3 k1,k2,k3
A_NUMBER items Srllno1 Srllno2 Srllno3 Srllno4
1 i1,i2,i3,i4,i5,i6 null null null null
2 j1,j2,j3,j4,j5,i6,i7,i8 null null null null
3 k1,k2,k3 k3 k2 k1 null
A_NUMBER items Srllno1 Srllno2 Srllno3 Srllno4 SrllRest
1 i1,i2,i3,i4,i5,i6 i1 i2 i3 i4 5,i6
2 j1,j2,j3,j4,j5,i6,i7,i8 j1 j2 j3 j4 5,i6,i7,i8
3 k1,k2,k3 k1 k2 k3 null
Warning: Null value is eliminated by an aggregate or other SET operation.

Msg 195 Level 15 State 10 Line 6
'string_agg' is not a recognized built-in function name.
Msg 102 Level 15 State 1 Line 8
Incorrect syntax near 'i'.
Msg 195 Level 15 State 10 Line 6
'string_agg' is not a recognized built-in function name.
Msg 8144 Level 16 State 3 Line 8
Procedure or function string_split has too many arguments specified.
Msg 102 Level 15 State 1 Line 8
Incorrect syntax near 'i'.