I have a table as follows
UserID CONSUMERID 1 2 1 3 1 4 5 1
this is a search column, the user can be here. I need to query the table and get one column output, so that, for example, if ID = 1, I could query userid and get all the data of the consumed resource, where userid = 1, and at the same time, the request to get all the user data, where customerid = 1 .. all results should be in one column. In other words, query both columns for 1 and return the opposite column value.
source share