How to ROUND in SQL (includes up CEILING and down FLOOR)

preview_player
Показать описание
A quick tutorial on how to ROUND to the nearest integer or up (CEILING) to the next integer or down (FLOOR) to the base integer!

QUERIES:
1) Round to nearest integer: SELECT ROUND(num) FROM table
2) Round up: SELECT CEILING(num) FROM table
3) Round down: SELECT FLOOR(num) FROM table

Support the Channel:
Рекомендации по теме
Комментарии
Автор

Knowledge comes in every video of yours.. regardless the length of videos...keep the good work...

factorise
Автор

Im new to SQL and started learning it. This video helps alot.

tiktoristanggamer
Автор

I really joined watching your SQL videos thank you

RasolAlbayati
Автор

you can give ROUND the number of digits to round to. ROUND(freight, 1), for example.

pipertripp
Автор

Great content! Well explained. Thanks

jist
Автор

Great video. Can you do more postgreSQL videos on whatever you may not have covered?

BengalBanger
Автор

Hi, thanks for the upload. I found this to be very helpful for me. (:
Hope you have a great year in 2024 !

juanmoreno-qkzn
Автор

how to round to two digits after the decimal point

ahmadrahmatulloyev
Автор

Is it possible to remove rounding for more that 10 digit as the value automatically rounding off

mr.prince