Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

sql
mysql
communitycreator

What is DEGREES() in SQL?

Harris Amjad

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

The DEGREES() function converts the radian value to degrees.

Figure 1 shows a mathematical representation of the DEGREES() function.

Figure 1: Mathematical representation of DEGREES() function

Syntax

DEGREES(value)

Parameter

The DEGREES() function takes a numberradian value as a parameter.

Return value

The DEGREES() function then converts the radian value sent as parameter to degrees.

Example

-- pi to degrees
SELECT DEGREES(PI());
-- 0 to degrees
SELECT DEGREES(0);
-- -pi to degrees
SELECT DEGREES(-PI());

RELATED TAGS

sql
mysql
communitycreator

Grokking Modern System Design Interview for Engineers & Managers

Ace your System Design Interview and take your career to the next level. Learn to handle the design of applications like Netflix, Quora, Facebook, Uber, and many more in a 45-min interview. Learn the RESHADED framework for architecting web-scale applications by determining requirements, constraints, and assumptions before diving into a step-by-step design process.

Keep Exploring