Hi,
In need to run a query to create 'newfield' below, basically there are a random number of people in each areacode - i'd like to insert a new field and mark with an x or whatever everytime the value changes to aid sorting.
id name areacode newfield
1 mark 1234 X
2 dave 1234
3 gary 1234
4 alan 5678 X
5 sue 5678
6 paul 9012 X
7 helen 4567 X
8 linda 4567
I was going to draw the first record out using DISTINCT on the areacode field but I don't think that's going to get me what I want.
Thanks, Mark.
In need to run a query to create 'newfield' below, basically there are a random number of people in each areacode - i'd like to insert a new field and mark with an x or whatever everytime the value changes to aid sorting.
id name areacode newfield
1 mark 1234 X
2 dave 1234
3 gary 1234
4 alan 5678 X
5 sue 5678
6 paul 9012 X
7 helen 4567 X
8 linda 4567
I was going to draw the first record out using DISTINCT on the areacode field but I don't think that's going to get me what I want.
Thanks, Mark.