WITH dataforIDs AS
(
SELECT
value, ERSBusinessLogic_InputDataSeries
FROM
[AnimalProductsCoSD].[CoSD].[ERSBusinessLogic]
CROSS APPLY
STRING_SPLIT(ERSBusinessLogic_InputDataSeries, ',')
WHERE
ERSBusinessLogic_InputGeographyDimensionID = 7493
AND ERSBusinessLogic_InputTimeDimensionValue = 'all months'
AND ERSBusinessLogic_Type = 'HS10 aggregation'
)
Run Code Online (Sandbox Code Playgroud)
现在我使用这个查询来拆分以逗号分隔的列 ERSBusinessLogic_InputDataSeries,但我需要将 compatible_level 设置为 140。我需要一个替代方案,因为这将在服务器上运行,我无法在那里明确更改它。
sql-server ×1