This question has more to do with db designs than code.  What you need
to do is create a 'checkpoint' table for the x_world table.  Each entry
in the checkpoint will have a unique data 'signature' for the 7 days
worth of data. If you are using sql server, you can use a combination of
binary_checksum() and CHECKSUM_AGG() .  


In your example, autoID in the checkpoint is the foreign key to the
x_world table. 

Once you have this setup, the SQL part to determine if there was a
change in the 7-day data and which row(s) had changed is really easy.

 

-----Original Message-----
From: Andy Matthews [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 08, 2006 6:18 AM
To: CF-Talk
Subject: Find which records have changed over a 7 day period.

Anyone care to chime in on this? I've posted a thread which hasn't
gotten
many responses yet and I'm wondering if any of you SQL wizards have
input.

http://www.sitepoint.com/forums/showthread.php?t=389438

<!----------------//------
andy matthews
web developer
certified advanced coldfusion programmer
ICGLink, Inc.
[EMAIL PROTECTED]
615.370.1530 x737
--------------//--------->




~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Message: http://www.houseoffusion.com/lists.cfm/link=i:4:242988
Archives: http://www.houseoffusion.com/cf_lists/threads.cfm/4
Subscription: http://www.houseoffusion.com/lists.cfm/link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Donations & Support: http://www.houseoffusion.com/tiny.cfm/54

Reply via email to