Skip to content

Latest commit

 

History

History
13 lines (10 loc) · 276 Bytes

SQL-Basics-Raise-to-the-Power.md

File metadata and controls

13 lines (10 loc) · 276 Bytes

Given the following table 'decimals':

decimals table schema

  • id
  • number1
  • number2

Return a table with a single column result which is the output of number1 raised to the power of number2.

/*  SQL  */
SELECT POWER(number1,number2) as result FROM decimals