When I try to run the following statement, an error message is returned: Server: Msg 208, Level 16, State 1, Line 1 Invalid object name ‘vendortofaultypeitemsmap’.
SQL Help indicates this message appears when ‘an object that does not exist is referenced’. This table does exist and returns values if I run *select * from vendortofaulttypeitemsmap*. Can someone help me pinpoint what is wrong with the statement below that is causing the error message? Thanks in advance.
select vendortofaulttypeitemsmap.vendorid, vendortofaulttypeitemsmap.faultypeitemguid, guid_faulttypeitems.faulttypeitemname, vendortoworkactionmap.workactionitemguid, guid_workactionitem.workactionitemname from vendortofaultypeitemsmap inner join guid_faulttypeitems on vendortofaulttypeitemsmap.faultypeitemguid= guid_faulttypeitems.faultypeitemguid inner join guid_workactionitem on vendortoworkactionmap.workactionitemguid= guid_workactionitem.workactionitemguid where vendortofaulttypeitemsmap.vendorid=45
You have a typo. It is either vendortofaultypeitemsmap or vendortofaulttypeitemsmap.