Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> Re: SQL Problem
Stephen Morton wrote:
> Please could someone help me with this problem. I have a table 'tab1'
> that looks this:
>
> Col1 Col2
> ---- -----
> A Alpha
> A Bravo
> B Charlie
> B Delta
>
> and a table 'tab2' that looks like this
>
> Col1 Col3
> ---- ----
> A 1
> B 2
>
> I would like produce this report from the tables:
>
> Col1 Col3 Col2
> ---- ---- ----
> A 1 Alpha Bravo
> B 2 Charlie Delta
>
> I can easily solve this problem using PL/SQL but wonder if I am
> missing a simpler SQL solution.
>
> I am using Oracle 8i and 9i.
>
> Thanks in advance, Stephen.
No.
-- Daniel A. Morgan University of Washington damorgan_at_x.washington.edu (replace 'x' with 'u' to respond)Received on Thu Mar 17 2005 - 11:40:02 CST