Save up to $499! Grab all Python courses for $49 or all online courses we’ve ever launched for only $169. Only Feb 11-16. Happy Valentine's!
Introduction
PARTITION BY
11. OVER(PARTITION BY) – practice 3
Summary

Instruction

One more to go!

Exercise

For each ticket, show its Id, Price, and a column named Ratio. The ratio is the ticket price divided by that sum of all tickets purchased on the same journey.

Stuck? Here's a hint!

To avoid integer division, use CAST(Price AS NUMERIC).