I have a table which looks like this:
ID | SerialNumber | SomeData
---|--------------|---------
1 | 1 | abc
2 | 1 | def
3 | 1 | ghi
4 | 1 | jkl
5 | 2 | mno
6 | 2 | pqr
Now i want a query that returns 'SomeData' for every n'th ID of every serial number(if that n'th ID exists for that serial number). So if n=2
, the output i'd like is:
ID | SerialNumber | SomeData
---|--------------|---------
2 | 1 | def
6 | 2 | pqr
I think this is already half the solution, but i can't figure out how to make it do what i want it to: How to find 11th entry in SQL Access database table?