Trailing zeros

M

mccallen60

Hello,
I have a table that has a utilization qty field. The utilization qty has
three trailing zeros that are not needed. Below is what it currently looks
like and what I need it to look like:
Current: Need:
Utilization Qty Utilization Qty
60000 60
-15000 -15
120000 120
-240000 -240

Can you help me with a solution? Thanks, Kevin
 
F

fredg

Hello,
I have a table that has a utilization qty field. The utilization qty has
three trailing zeros that are not needed. Below is what it currently looks
like and what I need it to look like:
Current: Need:
Utilization Qty Utilization Qty
60000 60
-15000 -15
120000 120
-240000 -240

Can you help me with a solution? Thanks, Kevin

Do you wish to permanently change the data?
Back up your table first.
Then run an update query. Here is the SQL needed. Just change the
table and field names to your actual names:

Update YourTable Set YourTable.[UtilizationQty] =
[UtilizationQty]/1000;
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Production Scheduling Database 6
combining queries into 1 8
Crosstab query help please 1
Grouping monthly data 4
Subtract forecasted usage & return a date? 3
Leading Zeros 6
Leading zeros 3
Trailing zeros 5

Top