Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Count a timestamp field

Status
Not open for further replies.

JDSmith14

Programmer
Nov 11, 2005
11
ZA
Hi Everybody

I have a Log table that logs all transactions for all users of a system.

I have the following fields:
User Name : String
Transaction Time : TimeStamp
Action : String

How do I get the total number of transactions PER TRANSACTON TYPE let say for a month? For exampe:

User1 : 15/08/2006: Edit Records : 30 events
User2 : 15/08/2006: Add Records : 20 events
User1 : 16/08/2006: Edit Records : 10 events
User2 : 16/08/2006: Add Records : 5 Events

Thanks

Johan Smith
 
Since timestamp is not in anyway shape or form a date datatype, I don't see where you have the data to do that. Please look it up in BOL to see what I mean.

Questions about posting. See faq183-874
Click here to help with Hurricane Relief
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top