Advertisement

06.11.2007 at 02:12PM PDT, ID: 22627080
[x]
Attachment Details

SQL inner join with left outer join

Asked by hobeau in MS SQL DTS, MS SQL Server

Tags: join, sql, inner, outer, left

Hi,, I'm trying to use a left outer join along with an inner join,,,

Select CMRC_Categories.CategoryName,cmrc_products.productID,modelname,active,unitcost,listprice,thumbnail, longdesc, eventdate, eventlocation, eventaddress, eventcity, eventstate, eventzip, CMRC_EventProduct_Schedule.Agenda
            from cmrc_products,CMRC_Categories_Products,CMRC_Categories LEFT OUTER JOIN CMRC_EventProduct_Schedule ON CMRC_Products.ProductID = CMRC_EventProduct_Schedule.ProductID
      where
            CMRC_Categories_Products.productID = CMRC_Products.ProductID
      and
            CMRC_Categories_Products.CategoryID = 3
      and
            CMRC_Categories.CategoryId=3
      and
            CMRC_EventProduct_Schedule.ProductID=CMRC_Products.ProductID
      and
            CMRC_Products.catspecial = 0
      and
            CMRC_Products.active='y'
       and CMRC_Products.Hide='0'

I'm obviously doing something wrong because I'm getting the following error:

Msg 2809, Level 18, State 1, Line 1
The request for procedure 'CMRC_Products' failed because 'CMRC_Products' is a table object.

Can anyone help?Start Free Trial
[+][-]06.11.2007 at 02:15PM PDT, ID: 19261899

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 02:51PM PDT, ID: 19262158

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 02:52PM PDT, ID: 19262164

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 02:53PM PDT, ID: 19262169

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: MS SQL DTS, MS SQL Server
Tags: join, sql, inner, outer, left
Sign Up Now!
Solution Provided By: dqmq
Participating Experts: 2
Solution Grade: A
 
 
[+][-]06.11.2007 at 02:56PM PDT, ID: 19262198

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]06.11.2007 at 10:22PM PDT, ID: 19263799

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32