Hi,
I have a table which has a initial record with a name, followed by a variable number of records without a name, then another record with a name etc. I would like to fill in the records without names with the preceding name eg:-
BEFORE
id,name
1,'dave'
2,''
3,''
4,''
5,'john'
6,''
7,''
8,'chris'
9,''
10,''
11,''
12,''
AFTER
id,name
1,'dave'
2,'dave'
3,'dave'
4,'dave'
5,'john'
6,'john'
7,'john'
8,'chris'
9,'chris'
10,'chris'
11,'chris'
12,'chris'
Can anyone please tell me how to get started? Thanks Mark.
I have a table which has a initial record with a name, followed by a variable number of records without a name, then another record with a name etc. I would like to fill in the records without names with the preceding name eg:-
BEFORE
id,name
1,'dave'
2,''
3,''
4,''
5,'john'
6,''
7,''
8,'chris'
9,''
10,''
11,''
12,''
AFTER
id,name
1,'dave'
2,'dave'
3,'dave'
4,'dave'
5,'john'
6,'john'
7,'john'
8,'chris'
9,'chris'
10,'chris'
11,'chris'
12,'chris'
Can anyone please tell me how to get started? Thanks Mark.