Database Management Exam  >  Database Management Videos  >  Microsoft SQL for Beginners  >  SQL Tutorial - 37: Useful Numeric Functions Part-2

SQL Tutorial - 37: Useful Numeric Functions Part-2 Video Lecture | Microsoft SQL for Beginners - Database Management

56 videos

FAQs on SQL Tutorial - 37: Useful Numeric Functions Part-2 Video Lecture - Microsoft SQL for Beginners - Database Management

1. What are some useful numeric functions in SQL?
Ans. Some useful numeric functions in SQL include: - ABS: returns the absolute value of a number. - ROUND: rounds a number to a specified number of decimal places. - CEILING: returns the smallest integer greater than or equal to a number. - FLOOR: returns the largest integer less than or equal to a number. - POWER: raises a number to a specified power.
2. How does the ABS function work in SQL?
Ans. The ABS function in SQL returns the absolute value of a number. It removes the negative sign from negative numbers and leaves positive numbers unchanged. For example, ABS(-5) will return 5, and ABS(10) will return 10.
3. What is the purpose of the ROUND function in SQL?
Ans. The ROUND function in SQL is used to round a number to a specified number of decimal places. It takes two arguments: the number to be rounded and the number of decimal places to round to. For example, ROUND(3.14159, 2) will return 3.14, rounding the number to two decimal places.
4. How does the CEILING function work in SQL?
Ans. The CEILING function in SQL returns the smallest integer greater than or equal to a number. It rounds up the number to the next whole number. For example, CEILING(3.2) will return 4, as it rounds up 3.2 to the nearest whole number which is 4.
5. What is the difference between the FLOOR and CEILING functions in SQL?
Ans. The FLOOR function in SQL returns the largest integer less than or equal to a number, while the CEILING function returns the smallest integer greater than or equal to a number. In other words, FLOOR always rounds down to the nearest whole number, while CEILING always rounds up to the nearest whole number. For example, FLOOR(3.8) will return 3, and CEILING(3.8) will return 4.
56 videos
Explore Courses for Database Management exam
Signup for Free!
Signup to see your scores go up within 7 days! Learn & Practice with 1000+ FREE Notes, Videos & Tests.
10M+ students study on EduRev
Related Searches

ppt

,

SQL Tutorial - 37: Useful Numeric Functions Part-2 Video Lecture | Microsoft SQL for Beginners - Database Management

,

Sample Paper

,

Important questions

,

Semester Notes

,

SQL Tutorial - 37: Useful Numeric Functions Part-2 Video Lecture | Microsoft SQL for Beginners - Database Management

,

shortcuts and tricks

,

Previous Year Questions with Solutions

,

Exam

,

mock tests for examination

,

pdf

,

SQL Tutorial - 37: Useful Numeric Functions Part-2 Video Lecture | Microsoft SQL for Beginners - Database Management

,

MCQs

,

Viva Questions

,

past year papers

,

Extra Questions

,

Objective type Questions

,

video lectures

,

Summary

,

practice quizzes

,

study material

,

Free

;