Given 3 values, such as
+--------+
| values |
+--------+
| 1 |
+--------+
| 2 |
+--------+
| 3 |
+--------+
Is it possible to insert every UNIQUE combination of each value into a table without using a WHILE loop?
For example, the end result would look like:
It's relatively simple to do this with with nested WHILE
loops, but I'd like to know if there are any other approaches that could be used.