Get products that is common in given category Ids

Is there any way to find the records that are common in given category ids.

It’s unclear to me what you’re trying to accomplish. Maybe examples of data that you might have in your database and the results you want to see from your query?