मराठी

What is the purpose of the ROUND(num, 0) in SQL, assuming num is a number with a fractional part? - Informatics Practices

Advertisements
Advertisements

प्रश्न

What is the purpose of the ROUND(num, 0) in SQL, assuming num is a number with a fractional part?

पर्याय

  • Rounds the number to the nearest integer.

  • Always rounds the number up.

  • Leaves the number unchanged.

  • Always rounds the number down.

MCQ
Advertisements

उत्तर

Rounds the number to the nearest integer.

Explanation:

In SQL, the ROUND(num, 0) function rounds a number to 0 decimal places, i.e., to the nearest whole number.

  • Example: ROUND(12.6, 0) → 13
  • Example: ROUND(12.3, 0) → 12
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2025-2026 (March) Board Sample Paper
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×