Hi All,
Hopefully this is a simple question. I have a table of 1 million records that is an audit table. Whenever a file is moved from one location to another, it creates 2 records in this audit table. 1 record is for the original location, the 2nd record is for the new location.
Table structure
itemname parentfolder time
For the move, itemname stays the same, but parentfolder changes. Time is within 1 second of each other.
How can i write a query to get all the occurrences of when a file is moved? I would like to get both rows, if possible, so if i divide by 2, i can get the total number of file moves in my system.
Thanks in advance.