You need to sign in to do that
Don't have an account?
Cherrice Browne 10
My SOQL Query Not returning expected results
SOQL Query:
SELECT ClaimNumber__c, Program__c, ProgramDesc__C , ClaimStartDate__c, ClaimEndDate__c
FROM ClaimHeader__x WHERE (ClaimNumber__c = '13128E' AND ProgramDesc__c = 'STAR') OR (ClaimNumber__c = '13128E' AND ProgramDesc__c = 'CHIP') ORDER BY ClaimStartDate__c DESC LIMIT 11 OFFSET 0
We are expecting only one record for this query with claim number '13128E', but it is returning more records.
SELECT ClaimNumber__c, Program__c, ProgramDesc__C , ClaimStartDate__c, ClaimEndDate__c
FROM ClaimHeader__x WHERE (ClaimNumber__c = '13128E' AND ProgramDesc__c = 'STAR') OR (ClaimNumber__c = '13128E' AND ProgramDesc__c = 'CHIP') ORDER BY ClaimStartDate__c DESC LIMIT 11 OFFSET 0
We are expecting only one record for this query with claim number '13128E', but it is returning more records.
Check the records with claim number ='13128E' have ProgramDesc as 'Star' and 'Chip' values.
Thanks
Anil.B