This is oversimplified for the purpose of this question, but suppose I have an INVENTORY table with the following columns: SKU, DATE, QUANTITY. I want to select all of the columns where the QUANTITY from the day previous is less than the QUANTITY for any day. How do you write a SELECT query with a sub SELECT on the same table?
Or, if anyone knows what to call this kind of query so I can do more research on my own that would be helpful. (ie., Is this a recursive query?)