Want to become a Vibe Coder? Join Vibe Coding Training here
x
C# Corner
Tech
News
Videos
Forums
Jobs
Books
Events
More
Interviews
Live
Learn
Training
Career
Members
Blogs
Challenges
Certification
Contribute
Article
Blog
Video
Ebook
Interview Question
Collapse
Feed
Dashboard
Wallet
Learn
Achievements
Network
Refer
Rewards
SharpGPT
Premium
Contribute
Article
Blog
Video
Ebook
Interview Question
Register
Login
Convert decimal values in SQL Server
WhatsApp
Venkatesan Jayakantham
15y
4.8
k
0
0
25
Blog
Convert a integer value with multiple decimals to fixed number of decimals(2 decimals):
Consider a scenario, am having a decimal data and I need to restrict the decimal values. In this case, we need to use convert operator.
create table aa(id decimal(10,5))
insert into aa values(1.90955)
select convert(decimal(10,2),id) from aa
Cheers,
Venkatesan Prabu .J
http://venkattechnicalblog.blogspot.com/
Convert decimal values in SQL Server
People also reading
Membership not found