Database (aggregate function)

Source: Internet
Author: User

Select ABS (-5)--absolute value is displayed in the result box
Print ABC (-5)--message box display
Select Code,xingming,abs (Yuwen) as Yuwen from Xhushengbiao
Select Code,xingming,yuwen from Xhushengbiao where ABS (Yuwen) >95

Select *from Xhushengbiao where ABS (Yuwen) >95
Select CEILING (1.3)
Select CEILING (shuxue) Form Xueshengbiao where (shuxhe-ceiling (Shuxue))!=0
--fractions minus the upper limit are not equal to zero
Select CEILING (shuxue) Form Xueshengbiao where CEILING (Shuxue) >=90
The upper limit of mathematics is greater than or equal to 90
Select Floor (shuxue) Form Xueshengbiao where code=8

Select ' This is ' +xingming+ ' age squared: ', POWER (aqe,2) from Xueshengbiao

Select POWER (3,2)--Indicates that 3 of the 2 times equals a few to return a few


Select ROUND (2.55,2)--the number after which the argument is the first to be rounded to the decimal point

Select Shuxue,power (shuxue,2) as Shehou from Xueshengbiao

Select SQRT (4)--square root
Select Square (4)--square

Database (aggregate function)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.