If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > Nest LEFT JOIN in an INNER JOIN expression

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-27-04, 15:05
conny80 conny80 is offline
Registered User
 
Join Date: Feb 2004
Posts: 1
Red face Nest LEFT JOIN in an INNER JOIN expression

Hey,
I am trying to nest a RIGHT or LEFT JOIN in an INNER JOIN expression. Unfortunately I cannot figure it out.

My INNER JOIN expression:
SELECT DISTINCTROW [Service Contract Lead].[Hospital Name], [Service Contract Lead].Division, [Service Contract Lead].[System Type], [Service Contract Lead].[System FL], [Service Contract Lead].[Total Value], [Service Contract Lead].[Annual Value], [Service Contract Lead].Commission, [Service Contract Lead].Date, [tblCSE's].EmployeeID, [tblCSE's].LastName, [tblCSE's].FirstName, [tblCSE's].[ASM Last Name]
FROM [tblCSE's] INNER JOIN [Service Contract Lead] ON [tblCSE's].EmployeeID = [Service Contract Lead].[Employee ID];

My LEFT JOIN expression:
SELECT [tblCSE's].[ASM Last Name], [tblCSE's].LastName
FROM [tblCSE's] LEFT JOIN [ASMs]
ON [tblCSE's].[ASM Last Name] = ASMs.LastName;

The query just show the ASMs, who has a Service Contract Lead but I want to see all ASMs in one query. I want to see, if they have generate a lead or not.
Thanks, Conny.
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On