Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

join error

Afternoon, can anyone help with this error....

I'm trying to join a couple of tables

part of the script is below (this works ok as an SQL query), but I'm getting an error code

SQL##f - SqlState: 37000, ErrorCode: 4104, ErrorMsg: [Microsoft][ODBC SQL Server Driver][SQL Server]The multi-part identifier "dbo_search_Incident_Custom_Joined.IncidentID" could not be bound.

 

FROM
V_IncidentDB.dbo.search_Incident_Complaints_custom RIGHT JOIN (V_IncidentDB.dbo.search_Incident_IncidentTypes INNER JOIN
V_IncidentDB.dbo.search_Incident_Custom_Joined ON
search_Incident_IncidentTypes.IncidentID = dbo_search_Incident_Custom_Joined.IncidentID) ON
search_Incident_Complaints_custom.IncidentID = search_Incident_IncidentTypes.IncidentID

any ideas

Thanks

1 Solution

Accepted Solutions
MayilVahanan

Hi

Please use "dbo.search_Incident_Custom_Joined.IncidentID" instead of dbo_search_Incident_Custom_Joined.IncidentID 

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.

View solution in original post

2 Replies
MayilVahanan

Hi

Please use "dbo.search_Incident_Custom_Joined.IncidentID" instead of dbo_search_Incident_Custom_Joined.IncidentID 

Hope it helps

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
Gysbert_Wassenaar

dbo_search_Incident_Custom_Joined.IncidentID should probably be search_Incident_Custom_Joined.IncidentID


talk is cheap, supply exceeds demand