How to find gaps in an int column (grouped by another column) in MySQL?
There are numerous SQL questions and answers about finding gaps in sequences, but I could not find any that have the wrinkle my situation has: I need to group the sequence by another column.