I have the following table in MySQL: cod, d1, d2, d3, d4, d5, d6, d7, d8, d9, d10, d11, d12, d13, d14, d15 the fields d1 ... d15 are filled with values between 1 and 25 in each record. There is no repetition of values within a record. How can I make queries to find more frequent groups that are repeated in the records? Example: identify how many times the group of values 1,5,10,15,20,25 appeared in the records. Would it be possible to create a generic query to identify which groups were most frequent?