​this one was tricky ...had to calculate ratio price::numeric / over the sum

PHOTO EMBED

Tue Jun 06 2023 01:26:14 GMT+0000 (Coordinated Universal Time)

Saved by @vnmshenoy #undefined

​this one was tricky ...had to calculate ratio 

another egample

https://learnsql.com/track/advanced-sql/course/window-functions/over-partition-by/summary/question-2
content_copyCOPY

https://learnsql.com/track/advanced-sql/course/window-functions/over-partition-by/partition-by/over-partition-by-practice-4