How can I filter results in a SQL query?
Let’s say I have Products A-Z, and each product has a monthly observation for X Months, but for most products the value in the observation stays the same for that particular product, but I need to find the products that have observations with a new value, the moment the value in the observation changes. Also, you can have a double to quadruple entry per month if the value doesn’t only change, but coexists, and I need to find every instance that happens for a product.
Example in pic:

lagfunction will help you if you have a DBMS that supports window/analytical functions. – Colin 't Hart Jun 01 '15 at 13:57