PGoCareerGoCareer prep tools
LoginSign up
  • Java
  • Python
  • AI
  • React
  • Angular
  • PHP
  • Node.js
  • SQL
  • DSA
  • HTML
  • CSS
  • JS
  • Spring
  • ML
  • MongoDB

SQL · Theory

DEGREES()()

← All stacks

Theory

194/439

DEGREES()()

DEGREES() is a MySQL math function: numeric function DEGREES() — pass numbers, get a number. Use it in SELECT, e.g. SELECT DEGREES(marks) FROM students;

These functions do not change stored marks unless you UPDATE. NULL in, NULL out for most of them.

Trap — mixing DEGREES with TRUNCATE TABLE (different word). Trap: maths on VARCHAR without CAST.

In a viva, one numeric example beats listing twenty functions.

On the example next to this theory: DEGREES()(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.

Exam tip

Explain DEGREES with one number. numeric function DEGREES() — pass numbers, get a number.

DEGREES()() — sample query

-- DEGREES()()
CREATE TABLE demo (
  id INTEGER PRIMARY KEY,
  label TEXT NOT NULL,
  qty INTEGER DEFAULT 0
);
INSERT INTO demo (id, label, qty) VALUES
  (1, 'alpha', 2),
  (2, 'beta', 5);
SELECT label, qty FROM demo WHERE qty >= 2 ORDER BY qty DESC;

DEGREES()(): create two demo rows, then SELECT qty >= 2 ordered. Say which labels come back.

Short notes

  • DefDEGREES() — numeric function DEGREES() — pass numbers, get a number.
  • RuleSELECT the function; UPDATE only if you mean to store it.
  • TrapNULL in → NULL out. Don’t confuse with table TRUNCATE.

Questions

1

What is DEGREES?

194 / 439

P

GoCareerGo

Utilities · Preparation Hub · Resume · CV · Tools — one workspace.

Workspace

DashboardProfilePreparation HubResume builderCV builderCareer planning

PDF Tools

Merge PDFSplit PDFCompress PDFImage to PDFAll toolsJobs

Image & QR

Compress ImageResize ImageQR ScannerQR GeneratorBlogIT interview prep

Company

FAQFeedbackContactPrivacyTermsSitemap

© 2026 GoCareerGo. Keep moving forward.