Select statement where I can add a row number to reset at a group. Group would be the term:
TERM table
term
1078
1084
1086
1088
PERSON table
term person_id
1078 1
1078 2
1084 1
1084 2
1086 1
1088 1
SELECT STATEMENT
select row_number, term.term, person.person_id
FROM
term,
person
WHERE
term.term=person.term
RESULTS WANTED
row_number term person_id
1 1078 1
1 1078 2
2 1084 1
2 1084 2
3 1086 1
4 1088 1
Help is appreciated.
THANKS
TERM table
term
1078
1084
1086
1088
PERSON table
term person_id
1078 1
1078 2
1084 1
1084 2
1086 1
1088 1
SELECT STATEMENT
select row_number, term.term, person.person_id
FROM
term,
person
WHERE
term.term=person.term
RESULTS WANTED
row_number term person_id
1 1078 1
1 1078 2
2 1084 1
2 1084 2
3 1086 1
4 1088 1
Help is appreciated.
THANKS