Java Techies Zone
j2ee bigdata hadoop performance architecture
Wednesday, 27 June 2012
Oracle : Number of fractional digit(s) for a number
Here is the way:
SELECT cashAmnt,
length(MOD(abs(
cashAmnt
),1))-1
FROM sales;
Works on negative numbers also
Newer Post
Older Post
Home