-2

Sequence Should looks like :-

A1
A2
A3
B1
B2
B3
C1
C2
C3
Lalit Kumar B
  • 47,486
  • 13
  • 97
  • 124
Ranjan Jena
  • 59
  • 1
  • 5

1 Answers1

2

You could do it using ROW GENERATOR technique.

SQL>  WITH data
  2       AS (SELECT Chr(65 + LEVEL - 1) str
  3           FROM   dual
  4           CONNECT BY LEVEL <= 3)
  5  SELECT str
  6         ||column_value AS alphanumeric_sequence
  7  FROM   data,
  8         TABLE(Cast(MULTISET (SELECT LEVEL
  9         FROM   dual
 10         CONNECT BY LEVEL < 3 + 1) AS sys.ODCINUMBERLIST));

ALPHANUMERIC_SEQUENCE
-----------------------------------------
A1
A2
A3
B1
B2
B3
C1
C2
C3

9 rows selected.

The LEVEL is hard-coded as 3 above, you could change it as per your requirement. The example is as per your posted output.

Lalit Kumar B
  • 47,486
  • 13
  • 97
  • 124