Spring Deals - hours only!Up to 70% off on all courses and bundles.-Close
Introduction
6. Invoking the new circumference function
Summary

Instruction

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.

Exercise

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.