I have a table (tableA):
| Col1 | Col2 |
|---|---|
| abc | 123 |
| def | 456 |
| ghi | 789 |
to which I want to add Col3 with entries S, M, L such that (tableB)
| Col1 | Col2 | Col3 |
|---|---|---|
| abc | 123 | S |
| abc | 123 | M |
| abc | 123 | L |
| def | 456 | S |
| def | 456 | M |
| def | 456 | L |
| ghi | 789 | S |
| ghi | 789 | M |
| ghi | 789 | L |
I only know of a way to add a column with single values (i.e. by using the ALTER command with default) but not with a column multiple data points.
col1.