Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Outer Join Error - Please help

Status
Not open for further replies.

0122333

Programmer
May 1, 2007
1
CA
Hi,

When I run the following sql statement, I got error message:

Cannot specify outer join operators in a query containing joined tables.
View or function 'v_Address' contains outer join operators.

SELECT Name_a.FullName,
v_Address.Line1,
v_Address.CityName ,
v_Address.ProvinceName,
Phone.PhoneNumber,

FROM PolicyItem
JOIN Client C
ON ( PolicyItem.ClientId = C.ClientID )
JOIN v_Address
ON ( PolicyItem.AddressId = v_Address.AddressId )
JOIN v_NameProper Name_a
ON ( C.ClientNameId = Name_a.NameId )
LEFT OUTER JOIN Phone
ON ( Name_a.NameId = Phone.NameId )
WHERE ( PolicyItem.PolicyItemId = @PolicyItemId )

v_Address does contain outer join. Anybody know why and how to change the
sql to make it work?

Your help will be very much appreciated.

Joan

 
perhaps ask this question in the appropriate forum for your particular database (which you neglected to mention)

this forum is for ANSI SQL



r937.com | rudy.ca
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top