Results 1 to 3 of 3

Thread: Shift a decimal

  1. #1
    Join Date
    Jan 2003
    Posts
    126

    Unanswered: Shift a decimal

    Hi all,

    I have a column of data that the decimal got shifted one to the right. How can I write a query to correct this?

    Example: 12.34 should actually be 1.234

    Update, or creating a new table is a possibility!

    Thanks,

    Ken

  2. #2
    Join Date
    Nov 2002
    Posts
    9

    Re: Shift a decimal

    UPDATE table1
    SET col1 = col1 / 10


    Originally posted by GA_KEN
    Hi all,

    I have a column of data that the decimal got shifted one to the right. How can I write a query to correct this?

    Example: 12.34 should actually be 1.234

    Update, or creating a new table is a possibility!

    Thanks,

    Ken

  3. #3
    Join Date
    Jan 2003
    Posts
    126
    Thank you for the reply! I figured it was something simple!

    Ken

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •