cartesian join

Hi,

i have table A

A_ID  A_TEXT
1    employee
5    terminated
9     inactive

Table B

B_ID   B_TEXT
11      hOURLY
12      PARTTIME
15      >6 MONTH

I want target_a_b to look like below

A_ID  A_TEXT     B_ID   B_TEXT
1    employee       11      hOURLY
1    employee       12      PARTTIME
1    employee       15      >6 MONTH
5    terminated       11      hOURLY
5    terminated       12      PARTTIME
5    terminated       15      >6 MONTH
9     inactive           11      hOURLY
9     inactive       12      PARTTIME
9     inactive       15      >6 MONTH



I did try FULL Outer join but not giving desire results

Select  *  From Table_ A a
FULL OUTER Join Table_B b
ON TRIM(a.A_ID) = TRIM(b.B_ID)
sam2929Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

ArgentiCommented:
Just do

Select * from Table_A, Table_B
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
slightwv (䄆 Netminder) Commented:
To get a cartesian, remove the join all together:

select a_id, a_text, b_id, b_text from table_a, table_b;
0
PortletPaulfreelancerCommented:
:(

as proponent of ANSI join syntax: never leave it open for mis-interpretation

select *
from table1
cross join table2
;

now you know (and the folks that follow) that the Cartesian product is deliberate
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Oracle Database

From novice to tech pro — start learning today.