• I'm not sure if this is considered simpler. 😉

    SELECT duration, SUM(iduration)

    FROM (

    SELECT duration,

    Item * CASE ROW_NUMBER() OVER( PARTITION BY duration ORDER BY ItemNumber DESC)

    WHEN 3 THEN 3600

    WHEN 2 THEN 60

    ELSE 1 END iduration

    FROM #tmp x

    CROSS APPLY dbo.PatternSplitCM( duration, '%[0-9]%')

    WHERE Matched = 1) x

    GROUP BY duration

    ORDER BY duration

    You can read about dbo.PatternSplitCM in here: http://www.sqlservercentral.com/articles/String+Manipulation/94365/

    Luis C.
    General Disclaimer:
    Are you seriously taking the advice and code from someone from the internet without testing it? Do you at least understand it? Or can it easily kill your server?

    How to post data/code on a forum to get the best help: Option 1 / Option 2