Wrox Programmer Forums
|
SQL Language SQL Language discussions not specific to a particular RDBMS program or vendor.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the SQL Language section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 27th, 2005, 12:49 AM
Authorized User
 
Join Date: Dec 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Detect Change

How can I query to select the last change in a column?

tbl columns DateAndTime, Tag, Value

For many rows in tbl, value remains same. I want to select row where value changed.

----------------
jking
__________________
Thanks,
J K
 
Old May 27th, 2005, 12:49 PM
Friend of Wrox
 
Join Date: Jan 2004
Posts: 303
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Jim, One way to do this is set your DateandTime column to GETDATE() or NOW() (if you are using Access) everytime you do update to your value field. Then you can query your database for last 24 hours how many rows were updated.
 
Old May 27th, 2005, 05:57 PM
Authorized User
 
Join Date: Dec 2004
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I don't create the data, I query and report the data, so updates don't apply.

Quote:
quote:Originally posted by shahchi1
... set your DateandTime column to GETDATE() or NOW() (if you are using Access) everytime you do update to your value field. Then you can query your database for last 24 hours how many rows were updated.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Detect Variable change in C# tusharkale C# 1 July 8th, 2008 02:14 AM
Detect associated label ysiline Access VBA 1 April 26th, 2006 07:16 AM
Detect Username dparsons ASP.NET 1.0 and 1.1 Professional 2 April 12th, 2006 02:20 PM
Detect Number zaeem Classic ASP Databases 1 December 1st, 2003 03:02 AM
Flash detect Adam H-W Javascript 4 October 30th, 2003 08:00 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.