Hi there,
I wish to write a query which will retrieve a number of fields plus one calculated field. The field data.narrative may contain an account_id as its first 7 digits, I want to retrieve these digits and use it to link elsewhere in my database but the account_id must be a number to be usable.
Problem: once I have used the LEFT function to retrieve the first 7 digits, how can I convert this string to an integer which I can then compare to the account_id field elsewhere in my database? How will non-numeric characters in this string affect such an operation?
Many thanks.
I wish to write a query which will retrieve a number of fields plus one calculated field. The field data.narrative may contain an account_id as its first 7 digits, I want to retrieve these digits and use it to link elsewhere in my database but the account_id must be a number to be usable.
Problem: once I have used the LEFT function to retrieve the first 7 digits, how can I convert this string to an integer which I can then compare to the account_id field elsewhere in my database? How will non-numeric characters in this string affect such an operation?
Many thanks.