Convert Multiple Joins to SQL Syntax

CT Witter

MrExcel MVP
Joined
Jul 7, 2002
Messages
1,212
I'm trying to take an access query and convert over to syntax that oracle sql will work with. The problem is that I'm using multiple left joins.

Oracle always returns a "SQL command not properly ended" error when using the below. What is the proper syntax??

FROM (((DB.PROF_CLAIM_HEADER LEFT JOIN DB.MEMBER_MASTER ON DB.PROF_CLAIM_HEADER.SEQ_MEMB_ID = DB.MEMBER_MASTER.SEQ_MEMB_ID) LEFT JOIN DB.VENDOR_MASTER ON DB.PROF_CLAIM_HEADER.SEQ_VEND_ID = DB.VENDOR_MASTER.SEQ_VEND_ID) LEFT JOIN DB.PROV_MASTER ON DB.PROF_CLAIM_HEADER.SEQ_PROV_ID = DB.PROV_MASTER.SEQ_PROV_ID) LEFT JOIN DB.PROV_MASTER AS DB.PROV_MASTER_1 ON DB.PROF_CLAIM_HEADER.SEQ_REF_PROV_ID = DB.PROV_MASTER_1.SEQ_PROV_ID;

THANKS,
CT
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Are you sure it's to do with the joins?
 
Upvote 0
If I use the string as is from access it states that the select keyword is missing, however it is the very first word in the SQL statement
 
Upvote 0

Forum statistics

Threads
1,221,904
Messages
6,162,744
Members
451,785
Latest member
DanielCorn

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top