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

  • Home
  • SEARCH
  • 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 3991572
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T06:37:56+00:00 2026-05-20T06:37:56+00:00

I want a sql table which has all universal units like kg,grams,tons etc.. and

  • 0

I want a sql table which has all universal units like kg,grams,tons etc.. and its relationship. Has anyone got this ?

—EDIT—-

I am designing a Point Of Sale system and I am doing stock management module now. So i have to calculate the units accordingly. For example if the administrator set tat for making Pizza they use product1 100 grams, product2 100ml etc.. then i have to reduce the amount of product1 and product2 in stock level when they sell each pizza.. So is there any way to do this without units ?? How do you solve this problem ?

  • 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-20T06:37:56+00:00Added an answer on May 20, 2026 at 6:37 am

    Do transactions of your consumables in some consistent set of units (kilograms and liters and “each” are good choices).

    When you buy something that is measured in pounds, convert it to kilograms before entering it into the database. If you buy something in gallons, convert it to liters. If you buy something by the 1000-count, convert it to each.

    If you catch it at the data entry point then you don’t need the table, really.

    Now, if for convenience, you want to let your admins store their recipes in their favorite units, then you need to pick one unit per class of quantity (mass, volume, length, dry measure, etc.) and store amounts in that unit in your stocking table. Then you’ll want a table that has all of the relations for these units to your base unit (1 kg = 1000 g; 1 kg = 0.001 metric tons, etc.)

    This shouldn’t be that involved to build yourself. There aren’t that many ways to describe how much butter you have on hand.

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

Sidebar

Related Questions

My sql table is something like (message,created) I want to select those rows which
I have a sql server 2005 table called ZipCode, which has all the US
I have an SQL table like this : sales(product,timestamp) I want to display a
I have a T-SQL table variable (not a table) which has an auto incrementing
I have a SQL Server (2005) table which has nearly 100+ million rows in
I'm working with a legacy SQL Server database which has a core table with
I have a table TDATAMAP which has around 10 million records, I want to
I want to copy all data from one database to another which has the
I've got a SQL Server table with about 50,000 rows in it. I want
I have a SQL Server table with 2 columns, Code and CodeDesc. I want

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.