Quite a simple query. Happy to provide any other details.
the odd thing is that replacing the 'not equal to' with an equal to does work ok.
I feel it must be user error but I have a blind spot at the moment! Any help appreciated.
select count(*) from contact inner join new_ds_questionnaire ON contact.contactid = new_ds_questionnaire.new_contact where new_ds_questionnaire.new_student_number != contact.new_pse_personalid
new_student_number is of type string
new_pse_personalid is of type string
The error message is:
Msg 10337, Level 16, State 1, Line 45
'new_ds_questionnaire' entity doesn't contain attribute with Name = 'new_pse_personalid' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=2085650397, MinActiveRowVersion=2085650397, MetadataInstanceId=63035259, LastUpdated=2024-07-02 07:19:12.803, OrgId=80ce9259-31c0-ee11-9073-000d3ab73d54
See the Execution Plan tab for details of where this error occurred
Quite a simple query. Happy to provide any other details.
the odd thing is that replacing the 'not equal to' with an equal to does work ok.
I feel it must be user error but I have a blind spot at the moment! Any help appreciated.
select count(*) from contact inner join new_ds_questionnaire ON contact.contactid = new_ds_questionnaire.new_contact where new_ds_questionnaire.new_student_number != contact.new_pse_personalid
new_student_number is of type string new_pse_personalid is of type string
The error message is: Msg 10337, Level 16, State 1, Line 45 'new_ds_questionnaire' entity doesn't contain attribute with Name = 'new_pse_personalid' and NameMapping = 'Logical'. MetadataCacheDetails: ProviderType=Dynamic, StandardCache=True, IsLoadedInStagedContext = False, Timestamp=2085650397, MinActiveRowVersion=2085650397, MetadataInstanceId=63035259, LastUpdated=2024-07-02 07:19:12.803, OrgId=80ce9259-31c0-ee11-9073-000d3ab73d54
See the Execution Plan tab for details of where this error occurred
Completion time: 2024-07-03T22:52:56.5331506+01:00