Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 913543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T17:34:43+00:00 2026-05-15T17:34:43+00:00

I need to do a data migration from a data base and I’m not

  • 0

I need to do a data migration from a data base and I’m not too familiar with databases so I would like some clarification. I have some documentation that could apply to either an Oracle or a SQL database and it has a column defined as NUMBER(10,5). I would like to know what this means. I think it means that the number has 10 digits with 5 after the decimal point, but I would like clarification. Also would this be different for either SQL or Oracle?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T17:34:43+00:00Added an answer on May 15, 2026 at 5:34 pm

    The first number is precision the second number is scale. The equivalent in SQL Server can be as Decimal / Numeric and you could define it like so:

    DECLARE @MyDec decimal(18,2)
    

    The 18 is the max total number of decimal digits that can be stored (that is the total number of digits, for instance 123.45 the precision here is 5, while the scale is 2). The 2 is the scale and it specifies the max number of digits stored to the right of the decimal point.

    See this article

    Just remember the more precision the more size in storage bytes. So keep it at a minimum if possible.

    p (precision)

    Specifies the maximum total number of
    decimal digits that can be stored,
    both to the left and to the right of
    the decimal point. The precision must
    be a value from 1 through the maximum
    precision. The maximum precision is
    38. The default precision is 18.

    s (scale)

    Specifies the maximum number of
    decimal digits that can be stored to
    the right of the decimal point. Scale
    must be a value from 0 through p.
    Scale can be specified only if
    precision is specified. The default
    scale is 0; therefore, 0 <= s <= p.
    Maximum storage sizes vary, based on
    the precision.

    Finally, it is worth mentioning that in oracle you can define a scale greater then a precision, for instance Number(3, 10) is valid in oracle. SQL Server on the other hand requires that the precision >= scale. So if you defined Number(3,10) in oracle, it would map into sql as Number(10,10).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Problem I have some pages that need dynamic data from website to generate output
I have a dataset fetched from a ODBC data source (MySQL), I need to
I need a data structure that holds unique values (like a set), but also
Hi need insert data in table if the record is not already exits Ex:
I need a data structure that acts like a SortedDictionary<int, double> but is sorted
I've exported a database (I need the data for a report) we have a
I have a table that holds data received from a thirdparty via an api
Currently, due to migration process, I need to use Python to read data, which
I have a test server that uses data from a test database. When I'm
I'm using a transmorgrifier recipe to import some data from drupal into a Plone

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.