The "accident" happens more often than what I'd like to. As part of my WHERE clause I have a general:
ORDER BY RAND() FETCH FIRST n ROWS ONLY -- Vary n to the number of customer IDs you want to test
or ORDER BY customerId LIMIT x OFFSET y
I also have above:
AND custimerId IN ('xxxxxx','yyyyyy','zzzzzz')
and I comment out one or the other to allow me to test multiple random, multiple sequential chunks or individual customerIds.
So, if I'm testing an individual case so
ORDER BY RAND() FETCH FIRST n ROWS ONLY
is commented out, and then I want to test random customerIds, I comment the
AND custimerId IN ('xxxxxx','yyyyyy','zzzzzz')
and before I know it, I hit execute so I'm selecting ALL customerIds since both clauses are now commented out! 😞