Using a SQLite SELECT statement, I'd like to be able to get the position of each results.
Is that even possible?
Table:
fk_id idx
0 0
0 1
0 2
1 0
1 1
1 3
1 4
2 0
Having [fk_id, idx] being unique.
Query:
SELECT `idx`, <??> from `mytable` WHERE `fk_id`=1
Results:
idx <??>
0 0
1 1
3 2
4 3
The <??>
being the "order"/"position"/"index" information I seek.