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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Record Retrieval rate counter

Status
Not open for further replies.

Rossy

IS-IT--Management
Jun 21, 2000
6
ZA
I would like to be able to count how many times individual records from a database are retrieved. For example if I have a database of all the shops in a shopping mall website, I would like to count how many times each store was searched for and their details displayed. Can I add a field to the databse where I can write to it and increment the number as each record is retieved?
 
Yes your on hte right track. when a seach is onde on the db the counter field of the record that is selected could be could be br incremented with an sql

UPDATE Table1 SET Table1.countfield = [countfield]+"1";

Mark
 
Either set a trigger on the table, at the record level or do it in the Application Layer. Either way you will be using something similar to what mrichards said.
Wushutwist
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top