開始使用免費開始

計算平方與平方根

現在來練習計算資料欄位的平方與平方根。

本練習屬於課程

SQL Server 中級

檢視課程

練習說明

撰寫一個查詢,計算 WeightValue 欄位的平方與平方根。

動手互動練習

試著完成這個範例程式碼,體驗一下這個練習。

-- Return the square and square root of WeightValue
SELECT WeightValue, 
       ___ AS WeightSquare, 
       ___ AS WeightSqrt
FROM Shipments
編輯並執行程式碼