On January 21th at 14:15 UTC , progression through exercises will be unavailable for 10 minutes due to a planned maintenance break.
Deals Of The Week - hours only!Up to 80% off on all courses and bundles.-Close
6. Invoking the new circumference function


Good job! We've successfully created our first custom function, named get_circumference(diameter).

Before we use this function in our code, let's verify the result it returns.


Select the following columns from the circle table:

  • id
  • diameter
  • get_pi() * diameter as cal_circumference
  • get_circumference(diameter) as circumference

Double-check that the columns cal_circumference and circumference have the same (and correct) values.