Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Select rows having > 2 decimal places [duplicate]

How to select rows having value more than 2 decimal places?

For example we have these values:

3.14
5.999
9.555
8.55

And i want to select these values only:

5.999
9.555
like image 467
Manny Avatar asked Mar 29 '13 20:03

Manny


People also ask

How do I select 2 decimal places in Excel?

Select the cells that you want to format. On the Home tab, click Increase Decimal or Decrease Decimal to show more or fewer digits after the decimal point.

How do you double only show two decimal places?

Just use %. 2f as the format specifier. This will make the Java printf format a double to two decimal places.

How do I restrict decimal places in SQL query?

The ROUND() function rounds a number to a specified number of decimal places.


1 Answers

You can use _ as a single-character wildcard with LIKE

LIKE '%.___'
like image 102
Explosion Pills Avatar answered Oct 15 '22 08:10

Explosion Pills