Viewing 2 posts - 16 through 17 (of 17 total)
SELECT LTRIM(RTRIM(REPLACE(REPLACE(REPLACE(@String, '<', ' '), '>', ''), '|', ' ')))
September 16, 2013 at 3:29 pm
#1650628
This too,
WITH cte AS (
SELECT a.LabelCode,
b.NAME,
RANK() OVER(PARTITION BY a.ITEMID ORDER BY b.NAME DESC) AS Ranking
FROM ITEM a JOIN AltNames b ON b.RECID = a.RECID)
SELECT * FROM cte...
September 6, 2013 at 4:29 pm
#1648273