jamesddelaney
New Member
- Joined
- Jun 24, 2012
- Messages
- 4
i have a pp table of usernames and a date time stamp of each login. so if a user logged into a site 5 times, he would have 5 entries in the table.
i'd like to add a column to this table call login number.
[TABLE="width: 500"]
<tbody>[TR]
[TD]username
[/TD]
[TD]login_datetime
[/TD]
[TD]login_number
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/1/12 5:00 AM
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/1/12 11:00 AM
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/2/12 6:00 AM
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]2/1/12 5:00 AM
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]3/10/12 5:00 AM
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 4:00 PM
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 8:00 PM
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 11:00 PM
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
what formula would you use to do the calculation for "login_number".
i'd like to add a column to this table call login number.
[TABLE="width: 500"]
<tbody>[TR]
[TD]username
[/TD]
[TD]login_datetime
[/TD]
[TD]login_number
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/1/12 5:00 AM
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/1/12 11:00 AM
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]1/2/12 6:00 AM
[/TD]
[TD]3
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]2/1/12 5:00 AM
[/TD]
[TD]4
[/TD]
[/TR]
[TR]
[TD]james
[/TD]
[TD]3/10/12 5:00 AM
[/TD]
[TD]5
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 4:00 PM
[/TD]
[TD]1
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 8:00 PM
[/TD]
[TD]2
[/TD]
[/TR]
[TR]
[TD]john
[/TD]
[TD]1/3/12 11:00 PM
[/TD]
[TD]3
[/TD]
[/TR]
</tbody>[/TABLE]
what formula would you use to do the calculation for "login_number".