I am using oracle 10g.
My (simplified) table definition is
CREATE TABLE Student
("Rno" INT PRIMARY KEY)
;
Which contains the following rows
| RNO |
|-----|
| 1 |
| 2 |
| 3 |
| 6 |
| 8 |
| 9 |
| 12 |
| 13 |
| 14 |
| 18 |
How can I produce the following result set?
| RESULT |
|------------------------|
| 1-3, 6, 8-9, 12-14, 18 |