cartesian join


i have table A

1    employee
5    terminated
9     inactive

Table B

11      hOURLY
12      PARTTIME
15      >6 MONTH

I want target_a_b to look like below

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
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.

Just do

Select * from Table_A, Table_B

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;

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
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.