Relative Content

Tag Archive for sql-servert-sqlwindow-functions

STRING_SPLIT and ROW_NUMBER() – maintaining order

I have a requirement to split a string based on a delimiter and to pull the values based on their ordinals. As I am on SQL Server 2019, I cannot use String_Split with ordinal enabled. Trying to replicate the same functionality using below STRING_SPLIT and Row_Number() query.