Skip to content

Commit a78fc87

Browse files
Update Product_Price_at_a_Given_Date.sql
1 parent b38ac0c commit a78fc87

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Advanced_Select_and_Joins/Product_Price_at_a_Given_Date.sql

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,8 @@ select product_id ,10 as price from products group by product_id having min(chan
22
union all
33
select product_id , new_price as price from products
44
where( product_id , change_date) in (select product_id , max(change_date) as price from products where change_date <= '2019-08-16' group by product_id)
5+
6+
7+
8+
9+
--Rakshit Gupta

0 commit comments

Comments
 (0)