An educated guess (Timur Fanshteyn)

Technology, Software Development and other ways to make an educated guess about the world...

  Home  |   Contact  |   Syndication    |   Login
  17 Posts | 0 Stories | 4 Comments | 0 Trackbacks

News

Twitter












Tag Cloud


Archives

April 2008 Entries

I had to search through an audit table to find times when the value changes in a specific field. Considering an audit table DateModified DateTime ID varchar() Quantity decimal Price decimal I wanted to find the rows when Quantity changed for the same ID. I've been able to accomplish that using the ROW_NUMBER function of SQL 2005 Here's the query: select Row_Number() OVER (PARTITION BY ID Order BY ID, DateModified) as RowID, DateModified, Quantity, ID INTO #TempData from AuditTable select a.ID, b.DateModified,...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati

A friend of mine started a blog and started posting nice support entries. http://yunetasblog.blogspot... Technorati Tags: Blogs, Tips CrossPosted from http://blog.tfanshteyn.com...
  • Share This Post:
  • Share on Twitter
  • Share on Facebook
  • Share on Technorati