Skip to main contentSkip to solution

What is output of the following SQL statement?

SELECT POWER(POWER(2,3),2);

Solution

✅ Correct Option: 2

POWER(x, y) returns xyx^y, and the inner call is evaluated first.

POWER(2,3)=23=8\text{POWER}(2,3) = 2^3 = 8

POWER(8,2)=82=64\text{POWER}(8,2) = 8^2 = \boxed{64}

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question