I need help in returning values in a query. Consider my example below where the values in Column A are linked to Column B:
Column A Column B
--------- ---------
45008 AQZ45008D
45008 ABC12345
45007 45007AX
45007 11652019
45007 JMD45007
All I need is to return rows where values in Column A are found somewhere in Column B. So in this example, rows 1, 3, and 5 would need to be returned.
I hope this was a clear example. Thanks for your help!
You can try:
I am assuming that these two columns are varchar. Otherwise you may need to CAST them.