473,414 Members | 1,615 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,414 software developers and data experts.

outer join - second post

Hello,
I want to do left outer join in access 2002.
1) Isn't any way to do without the words "left outer join", like :
table1.column1 = table2.column2 (+)
that was the simple Oracle syntax, and is there any access syntax.

2) I want to do nested outer join - how ?
Need an example, please.

I have tried something like :
---------------------------------

Select l.FORM_NAME,
f.FORM_DESCR
from table_form_link l
left join maa_form f on l.form_name = f.form_name
left join menu_prog p on f.form_name = p.entry_prog
where l.table_name = 'ACNTS'
order by l.FORM_NAME

but the above doesn't work.
Why ?
Thanks :)

May 25 '06 #1
1 1362
> but the above doesn't work.

Because Access/Jet requires braces () around the clauses.
and uses the keyword "as" for table aliases.

Select l.FORM_NAME,
f.FORM_DESCR
from (table_form_link AS l
left join maa_form AS f on l.form_name = f.form_name)
left join menu_prog AS p on f.form_name = p.entry_prog
where l.table_name = 'ACNTS'
order by l.FORM_NAME

The nesting of the joins is enforced by the brackets.
That is as close as I can get by eye. If you draw the
query in the Query By Example grid, Access will write
the SQL for you: you can switch to the SQL view to see
valid JET SQL.

(david)
PS: Oracle also supports ANSI join syntax.
"Eitan M" <no_spam_please@nospam_please.com> wrote in message
news:e5**********@news2.netvision.net.il...
Hello,
I want to do left outer join in access 2002.
1) Isn't any way to do without the words "left outer join", like :
table1.column1 = table2.column2 (+)
that was the simple Oracle syntax, and is there any access syntax.

2) I want to do nested outer join - how ?
Need an example, please.

I have tried something like :
---------------------------------

Select l.FORM_NAME,
f.FORM_DESCR
from table_form_link l
left join maa_form f on l.form_name = f.form_name
left join menu_prog p on f.form_name = p.entry_prog
where l.table_name = 'ACNTS'
order by l.FORM_NAME

but the above doesn't work.
Why ?
Thanks :)

May 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Martin | last post by:
I am now working on SQL Server 2000 having had previous experience on a different database. Both of the OUTER JOIN syntaxes is different from what I am used to and I am finding it slightly...
4
by: Omavlana | last post by:
Hi, I need your help to resolve this problem. I have written a right outer join query between 2 indipendent tables as follows. select b.Account_desc, b.Account, a.CSPL_CSPL from...
3
by: mheydman | last post by:
I apologize if this has been asked before- I searched google but could not find a concrete answer. I recently inherited a database whose t-sql code is written in a format that I find difficult...
4
by: thilbert | last post by:
All, I have a perplexing problem that I hope someone can help me with. I have the following table struct: Permission ----------------- PermissionId Permission
3
by: Dam | last post by:
Using SqlServer : Query 1 : SELECT def.lID as IdDefinition, TDC_AUneValeur.VALEURDERETOUR as ValeurDeRetour FROM serveur.Data_tblDEFINITIONTABLEDECODES def,...
3
by: Martin | last post by:
Hello everybody, I have the following question. As a join clause on Oracle we use " table1.field1 = table2.field1 (+) " On SQL Server we use " table1.field1 *= table2.field1 " Does DB2...
1
by: Nikolaus Rumm | last post by:
Hello, at first: I am a total SQL idiot. My problem is as follows: CREATE TABLE ta_master ( masterid integer not null, title varchar(20), constraint idx_master primary key(masterid))
4
by: Anthony Robinson | last post by:
I was actually just wondering if someone could possibly take a look and tell me what I may be doing wrong in this query? I keep getting ambiguous column errors and have no idea why...? Thanks in...
1
by: nico3334 | last post by:
I have a query that currently pulls data from a main table and a second table using LEFT OUTER JOIN. I know how to do make another LEFT OUTER JOIN with the main table, but I want to add another LEFT...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.