R
rms
How do I create a query to check for a string value in one field in another
string field? For example, assume the following table...
ID String1 String2
1 abc ab
2 abc bc
3 xyz a
What I want to do... is create a query that would validate whether or not
the data in String2 exists in String1. Something like this:
ID String1 String2 Valid
1 abc ab True
2 abc bc True
3 xyz a False
I tried using the strcomp and instr functions but keep getting an error.
Any help would be greatly appreciated!
Sincerely,
Rob
string field? For example, assume the following table...
ID String1 String2
1 abc ab
2 abc bc
3 xyz a
What I want to do... is create a query that would validate whether or not
the data in String2 exists in String1. Something like this:
ID String1 String2 Valid
1 abc ab True
2 abc bc True
3 xyz a False
I tried using the strcomp and instr functions but keep getting an error.
Any help would be greatly appreciated!
Sincerely,
Rob