I have a table as: ID Nu 1 1,2,3,6,7,8,15,16 I need to show it as sequential group like: From To 13 , 67 , 99 , 1516
(comments are locked)

Edit: This problem was too interesting to forget about. It took me awhile, but I combined dportas's solution with my function. The result is at the bottom of this answer. Okay. I converted (a limited version of) the stored procedure to a function. If the values are delimited in a single column, use this to convert to a table and then use dportas's solution.
Here's the sample data I used:
Once you have the function, here's how you call it. You'll need to change @tbl and @Numbers to work for your database.
Here's the result:
(comments are locked)

Assuming you have these numbers as rows in you table then try:
(comments are locked)

This is like the question at Stack Overflow. Seems my answer is now used on their site, and presumably this one too!
(comments are locked)

Don't you mean 13,68,914,15,16?