ขนาดวิดีโอ: 1280 X 720853 X 480640 X 360
แสดงแผงควบคุมโปรแกรมเล่น
เล่นอัตโนมัติ
เล่นใหม่
I have been looking for a way to do this for about 3 weeks for a work project and you saved me… thank you lol
Hi Random. I'm glad that I could help. Phillip
You absolutely saved my day my friend!! Thank you!
with cte3 as (select *,ROW_NUMBER() over(partition by Region order by Pricedate desc) as region_rnkfrom tblhouseprices)select * from cte3where region_rnk = 1
Absolutely brilliant. This is so useful. Thanks for sharing
Great! Helped me a lot 👏👏👏
Thanks! CTE seems the most elegant to me :)
Thanks - I do like CTEs, as they can simplify nested subqueries - which we'll be having a look at in the next video. Phillip
You could also put the query into a temp table as suppose to a CTE.
You rock!! Thanks!!
Thanks for this video!
I`m not sure why but my CTE with ROW_NUMBER is faster than other two , query plan showing me 22% , 39% , 39% for query cost
Hi Jacek. Very interesting - it's good a) to be able to have multiple ways to do the same thing, and b) to see which is faster! Phillip
This is 🤯
nice!
thanks a lot :)
I have been looking for a way to do this for about 3 weeks for a work project and you saved me… thank you lol
Hi Random. I'm glad that I could help. Phillip
You absolutely saved my day my friend!! Thank you!
with cte3 as
(select *,
ROW_NUMBER() over(partition by Region order by Pricedate desc) as region_rnk
from tblhouseprices)
select * from cte3
where region_rnk = 1
Absolutely brilliant. This is so useful. Thanks for sharing
Great! Helped me a lot 👏👏👏
Thanks! CTE seems the most elegant to me :)
Thanks - I do like CTEs, as they can simplify nested subqueries - which we'll be having a look at in the next video. Phillip
You could also put the query into a temp table as suppose to a CTE.
You rock!! Thanks!!
Thanks for this video!
I`m not sure why but my CTE with ROW_NUMBER is faster than other two , query plan showing me 22% , 39% , 39% for query cost
Hi Jacek. Very interesting - it's good a) to be able to have multiple ways to do the same thing, and b) to see which is faster! Phillip
This is 🤯
nice!
thanks a lot :)