INNER Join with multiple tables fails using openquery syntax with Salesforce ODBC
Information |
Title | INNER Join with multiple tables fails using openquery syntax with Salesforce ODBC |
---|
URL Name | INNER-Join-with-multiple-tables-fails-using-openquery-syntax-with-Salesforce-ODBC |
---|
Article Number | 000125710 |
---|
Environment | Product: Connect/Connect64XE for ODBC Salesforce driver
Version: 07.16 OS: All supported platforms Database: Salesforce Application: SQL Server Linked Server |
---|
Question/Problem Description |
|
---|
Steps to Reproduce | 1) Set up a Salesforce ODBC DSN.
2) Set up a SQL Server linked Server to connect to the Salesforce ODBC DSN from step 1 3) Execute below SQL select * from openquery(SFDC, 'SELECT top 5 patient.* FROM TABLE1 Observation INNER JOIN TABLE2 Patient ON Observation.TABLE2 = Patient.ID INNER JOIN TABLE3 SurveyResponse ON SurveyResponse.TABLE1 = Observation.ID INNER JOIN TABLE4 SurveyQuestion ON SurveyQuestion.TABLE5 = SurveyResponse.TABLE5 INNER JOIN TABLE5_ANSWER SurveyAnswer ON SurveyQuestion.ID = SurveyAnswer.TABLE4 INNER JOIN TABLE3_QUESTION SurveyResponseQuestion ON SurveyResponseQuestion.TABLE4 = SurveyQuestion.ID AND SurveyResponseQuestion.TABLE3 = SurveyResponse.ID WHERE Observation.TABLE5 =''XXXXXXXXX'' ') |
---|
Clarifying Information |
---|
Error Message | OLE DB provider "MSDASQL" for linked server "linkedserver" returned message "[DataDirect][ODBC Salesforce driver][Salesforce]Column not found: table1.COL1 in statement |
---|
Defect Number |
---|
Enhancement Number |
---|
Cause |
|
---|
Resolution |
|
---|
Workaround |
|
---|
Notes |
---|
Last Modified Date | 2/23/2022 7:21 PM |
---|
Files |
Disclaimer |
The origins of the information on this site may be internal or external to Progress Software Corporation (“Progress”). Progress Software Corporation makes all reasonable efforts to verify this information. However, the information provided is for your information only. Progress Software Corporation makes no explicit or implied claims to the validity of this information. Any sample code provided on this site is not supported under any Progress support program or service. The sample code is provided on an "AS IS" basis. Progress makes no warranties, express or implied, and disclaims all implied warranties including, without limitation, the implied warranties of merchantability or of fitness for a particular purpose. The entire risk arising out of the use or performance of the sample code is borne by the user. In no event shall Progress, its employees, or anyone else involved in the creation, production, or delivery of the code be liable for any damages whatsoever (including, without limitation, damages for loss of business profits, business interruption, loss of business information, or other pecuniary loss) arising out of the use of or inability to use the sample code, even if Progress has been advised of the possibility of such damages. |