Viewing 4 posts - 1 through 4 (of 4 total)
I;ve figured it out myself with the help of some online articles.
July 12, 2017 at 6:11 am
Hi Mike,
I have changed
WITH latest AS (SELECT ROW_NUMBER() over(PARTITION BY product_code, ORDER BY date_price DESC) AS RowNumber,product_key ,price
...
November 9, 2015 at 8:18 am
Hi Mike,
Thanks so far, but the query returns the message
Msg 207, Level 16, State 1, Line 19
Invalid column name 'product_code'.
November 9, 2015 at 8:01 am
Hi Mike,
Thanks for your reply. Yes, I want a new row for every sale since the price has changed.
Please allow me to give you an example.
The price for product A...
November 9, 2015 at 6:04 am
Viewing 4 posts - 1 through 4 (of 4 total)
This website stores cookies on your computer.
These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media.
To find out more about the cookies we use, see our Privacy Policy