Results 1 to 3 of 3

Thread: Shift a decimal

  1. #1
    Join Date
    Jan 2003
    Posts
    126

    Unhappy 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
    Sep 2002
    Location
    UK
    Posts
    5,171
    Provided Answers: 1

    Re: Shift a decimal

    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
    UPDATE mytable
    SET col = col / 10;

  3. #3
    Join Date
    Jan 2003
    Posts
    126
    worked like a charm!

    Thanks! 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
  •