Solved

Truncate Numeric Fld

Posted on 2010-11-12
2
299 Views
Last Modified: 2012-05-10
I have a SQL Tbl with the fld  LOBtotal which is Numeric 18,2. I want to truncate the decimal so that a number that currently displays as 178.55 looks like 178. I do not wish to round. I simply want to drop everything starting with the decimal.
0
Comment
Question by:mburk1968
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 11

Accepted Solution

by:
N R earned 500 total points
ID: 34123026
select cast(LOBtotal as int)
from table
0
 
LVL 32

Expert Comment

by:Erick37
ID: 34123035
select floor(LOBtotal)
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
How to order Highest and lowest value rows alternatively in SQL Server ? 4 66
Replace Dates in query 14 57
Format Date fields 11 62
Loops and updating in SQL Query 9 71
So every once in a while at work I am asked to export data from one table and insert it into another on a different server.  I hate doing this.  There's so many different tables and data types.  Some column data needs quoted and some doesn't.  What …
In this article I will describe the Copy Database Wizard method as one possible migration process and I will add the extra tasks needed for an upgrade when and where is applied so it will cover all.
This video shows how to use Hyena, from SystemTools Software, to update 100 user accounts from an external text file. View in 1080p for best video quality.

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question