Click here to Skip to main content
15,886,075 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
select salary
from employees


The result is 300.3432432


I need To display 3 number and 3 other
like 300.343
Posted
Updated 22-Aug-15 10:09am
v2
Comments
Afzaal Ahmad Zeeshan 22-Aug-15 16:23pm    
You can either use the ROUND in SQL (or use, column as decimal(18, 3)). You may also round it up in the language you are using, C#/C++/Java they all support this!
Member 11280947 22-Aug-15 16:25pm    
I need By Select Statement
Afzaal Ahmad Zeeshan 22-Aug-15 16:25pm    
That will go right in the SELECT statement.
Member 11280947 22-Aug-15 16:30pm    
what Do You mean meaning

1 solution

He means try:
SQL
select ROUND(salary, 3)
from employees
 
Share this answer
 
Comments
Maciej Los 23-Aug-15 17:53pm    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900