Get startedGet started for free

Calculating squares and square roots

It's time for you to practice calculating squares and square roots of columns.

This exercise is part of the course

Intermediate SQL Server

View Course

Exercise instructions

Write a query that calculates the square and square root of the WeightValue column.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

-- Return the square and square root of WeightValue
SELECT WeightValue, 
       ___ AS WeightSquare, 
       ___ AS WeightSqrt
FROM Shipments
Edit and Run Code