Link to home
Start Free TrialLog in
Avatar of bdietz
bdietz

asked on

Simple query pareto question

I have two tables, 1 column each.  one has the values:

A
B
C

the other has the values:

1
2
3

they are unrelated.  i want the output to be 1 columns that looks like:

A 1
A 2
A 3
B 1
B 2
B 3
C 1
C 2
C 3

how can i do this? thanks
ASKER CERTIFIED SOLUTION
Avatar of Guy Hengel [angelIII / a3]
Guy Hengel [angelIII / a3]
Flag of Luxembourg image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Aristo
Aristo

select * from
table1, table2
select letters.col1||nums.col1
from letters, nums
order by letters.col1;
I think your acceptance was a little quick, since it returns two columns and not one as in your question.
p.s. It also doesn't sort them in your desired order.