I have table called nums
.
CREATE TABLE nums (num numeric);
INSERT INTO nums SELECT * FROM (VALUES(10.11),(11.122),(12.22),(13.555)) t;
It have following rows
select * from nums
num
--------
10.11
11.122
12.22
13.555
So my question is how to get the values with only two digits after decimal point(.
)?
Expected Output :-
num
--------
10.11
12.22
You can try Pattern Matching
or Mathematical Functions and Operators - Floor