A
Alex Martinez
Thanks to Jerry Whittle help I was able to get rid of the prefix in the
policy number so I can the match the policy number of the claims table to
the policy number in the Actual table, but now I have encounter a new
problem I hope someone can help me. Below is the code to get rid of the
prefix in the policy Number. The policy number goes like this
AP012345678965 All I want to do is to capture only "012345678" not the
prefix "AP" or the numbers following "965" to do a one to one policy match.
I need to resolve this. Any tips will be appreciated. Thank you in
advance.
SELECT Claims.Policy_Number AS ClaimsPolicyNumber,
Claims.PolicyDate,
Actual.Policy_Number AS ActualPolicyNumber,
Actual.ClaimsAmount
FROM Actual, Claims
WHERE Mid([Claims].[Policy_Number],3)=Mid([Actual].[Policy_Number],3);
policy number so I can the match the policy number of the claims table to
the policy number in the Actual table, but now I have encounter a new
problem I hope someone can help me. Below is the code to get rid of the
prefix in the policy Number. The policy number goes like this
AP012345678965 All I want to do is to capture only "012345678" not the
prefix "AP" or the numbers following "965" to do a one to one policy match.
I need to resolve this. Any tips will be appreciated. Thank you in
advance.
SELECT Claims.Policy_Number AS ClaimsPolicyNumber,
Claims.PolicyDate,
Actual.Policy_Number AS ActualPolicyNumber,
Actual.ClaimsAmount
FROM Actual, Claims
WHERE Mid([Claims].[Policy_Number],3)=Mid([Actual].[Policy_Number],3);