I have a Postgres(Version 11) table where i have two comma separated values as shown below. Can this be compared to identify which particular value is missing.
Category Comparison category
2219,2220,2991,2992,3577,3617,3624,3884 2992,3617,3884
2145,2150,3594,3597,3600,3626 2150,3594,3600,3626
2237 2237
2991,2992,3884 2991,2992,3884
2991,3884 2991,3884
2145,2993,3597,3631 2993,3631
1113,2882,3490,4,4034,922,985 2882,3490,4,4034,922,985
Expected output:
Category Comparison category Comments
2219,2220,2991,2992.. 2992,3617,3884 2219,2220,..not in category,But all Categories in comparison column is present in Category column. column
2145,2150,3594,3597,3600,3626 2150,3594,3600,3626. 2145,3597 not in category column,But all Categories in comparison column is present in Category column.
2237 2237 Matching
2991,2992,3884 2991,2992,3884 Matching
2991,3884 2991,3884 Matching
2145,2993,3597,3631 2993,3631 2145,3597 not in Category column,But all Categories in comparison column is present in Category column.