CPGDeveloper
Board Regular
- Joined
- Oct 8, 2008
- Messages
- 189
I have a table similar to this:
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>CUST_ID</TH><TH bgColor=#c0c0c0 borderColor=#000000>Acct</TH><TH bgColor=#c0c0c0 borderColor=#000000>Count</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045821651</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045625285</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045627142</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7049751496</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089368</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089293</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089429</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089469</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9108180602</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I want to create another column which would act as a sequence number...so for the first 4 records the field would be popoulated with 1,2,3,4 and the next 5 records 1,2,3,4,5.
Any ideas or suggestions on how to get started?
Many Thanks!
<TABLE border=1 cellSpacing=0 bgColor=#ffffff><CAPTION></CAPTION><THEAD><TR><TH bgColor=#c0c0c0 borderColor=#000000>CUST_ID</TH><TH bgColor=#c0c0c0 borderColor=#000000>Acct</TH><TH bgColor=#c0c0c0 borderColor=#000000>Count</TH></TR></THEAD><TBODY><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045821651</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045625285</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7045627142</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222176058</TD><TD borderColor=#d0d7e5>7049751496</TD><TD borderColor=#d0d7e5 align=right>4</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089368</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089293</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089429</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9103089469</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR><TR vAlign=top><TD borderColor=#d0d7e5>222186390</TD><TD borderColor=#d0d7e5>9108180602</TD><TD borderColor=#d0d7e5 align=right>5</TD></TR></TBODY><TFOOT></TFOOT></TABLE>
I want to create another column which would act as a sequence number...so for the first 4 records the field would be popoulated with 1,2,3,4 and the next 5 records 1,2,3,4,5.
Any ideas or suggestions on how to get started?
Many Thanks!