I have a table test with column Batch and ID. I would like to count how many IDs are missing in every batch compared with the earliest
test
Batch
ID