Hey all,
Please provide suggestions for below scenario
1st row is having a columv value 'GE | SP |US'
2nd row is having column value 'USA | CA'
I need to query the row which is having US or SP in it . I tried the approach of looping(US,SP) the query filter using include parameter. But for US, we are getting both the rows.
Can you please suggest an approach to query the expected result which is 1st row ?
Thanks in advance!
Discussion posts and replies are publicly visible
Well, to be honest, this looks like a problematic data model design. Is there a specific reason to store a pipe-separated list of values in a single field?
Hi Stefan.
Yeah i agree. Actually its a already existing view and i dont see any specific reason to store this way. We need to change the design if we dont have option to get the expected result which i posted. Just curious if there is any option to query it.
Sorry, but the reason to change the design is NOT the query problem. The reason is, that it is against any best practices, and violating these creates the issue you are facing.