Re: Outer join in Access
- From: "Mikael Lenfors" <mikael@xxxxxxxxxx>
- Date: Wed, 30 Aug 2006 08:08:06 +0200
Hello!
I tried that but I get an error message "Connection expression not
supported" (or something like that, text in swedish). Thats why I moved the
"And Swe.TextLanguage = 46" to the bottom.
Regards, Mikael
"Brian Bushay TeamB" <BBushay@xxxxxxxxx> skrev i meddelandet
news:3jp9f29plhirauehjthks10a7dmnarmr43@xxxxxxxxxx
Where TextForm = 'MainForm'
And TextLanguage = 44
Now I would like to outer join and additionally get all Swedish text if
they
exist, otherwice just a blank text
Select Eng.TextComponent, Eng.Text, Swe.Text
From Texts EngLeft Join Texts Swe On Swe.TextForm = Eng.TextForm And Swe.TextComponent =
Eng.TextComponent
Where Eng.TextForm = 'MainForm'
And Swe.TextForm = 'MainForm'
And Eng.TextLanguage = 44
And Swe.TextLanguage = 46
The problem here is I don't get an Outer join! I only get the rows
returned
where I also have an Swedish text! (only one row).
Also tried "Left outer join" with same result.
Is there a problem in Access to join with the same table?
Outer joins don't work when you have selection criteria on the outer table
Try
Select Eng.TextComponent, Eng.Text, Swe.Text
From Texts Eng
Left Join Texts Swe On Swe.TextForm = Eng.TextForm
And Swe.TextComponent = Eng.TextComponent
And Swe.TextLanguage = 46
Where Eng.TextForm = 'MainForm'
And Eng.TextLanguage = 44
--
Brian Bushay (TeamB)
Bbushay@xxxxxxxxx
.
- Follow-Ups:
- Re: Outer join in Access
- From: Brian Bushay TeamB
- Re: Outer join in Access
- References:
- Outer join in Access
- From: Mikael Lenfors
- Re: Outer join in Access
- From: Brian Bushay TeamB
- Outer join in Access
- Prev by Date: Re: Recognize NOT NULL field in Access 2003
- Next by Date: Re: TClientDataset and Refresh
- Previous by thread: Re: Outer join in Access
- Next by thread: Re: Outer join in Access
- Index(es):