We help IT Professionals succeed at work.
Get Started

Outer join operators cannot be specified in a query containing joined tables.

Last Modified: 2008-01-09
I am changing some code to add in inner and outer joins.  But I am getting the following error on some of the code and I know what is causing it but not sure how I go about fixing it.

The error that I am getting is:
Outer join operators cannot be specified in a query containing joined tables.

And what is causing it is a join in the where clause that as this for the join  *=.  Here is the example of the code that I am trying to change.  I put *** by the line that I am trying to move up to the FROM so that I can add the join.

select distinct a.customer_no, a.reservation_no, a.type,
 c.[description] as new_sub_type,
from t_cust_subscription_summary a, t_lineitem b,
tr_cust_subscription_type c, t_pkg d
*** where a.reservation_no *= b.order_no
a.season = @season and a.type in (2,4,6,7)
b.primary_ind = 'Y' and b.perf_no = 0
and a.type = c.id
order by a.type

Watch Question
This problem has been solved!
Unlock 2 Answers and 3 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE