@muriel.schmidt
In MySQL, there are several ways to check if two set datatype columns overlap. Here are two common approaches:
1 2 3 |
SELECT * FROM your_table WHERE FIND_IN_SET(value, set_column_1) > 0 AND FIND_IN_SET(value, set_column_2) > 0; |
Replace your_table
, value
, set_column_1
, and set_column_2
with your actual table name, value to search for, and set column names, respectively.
1 2 3 |
SELECT * FROM your_table WHERE (set_column_1 & set_column_2) > 0; |
Replace your_table
, set_column_1
, and set_column_2
with your actual table name and set column names.
Either of these methods can help you identify the overlapping elements between two set datatype columns in MySQL.