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 6624009
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T21:36:02+00:00 2026-05-25T21:36:02+00:00

I have an entity Order . The order has information on date, client, associate

  • 0

I have an entity Order.

The order has information on date, client, associate who handled order etc.

Now the order also needs to store a state i.e. differentiate between won orders and lost orders.

The idea is that a customer may submit an order to the company, but could eventually back out.

(As domain info, the order is not of items. It is a services company that tries to handle clients and makes offers on when they can deliver an order and at what price etc. So the customer may find a better burgain and back up and stop the ordering process from the company).

The company wants data on both won orders and lost orders and the difference between a won order and a lost order is just a couple of more attributes e.g. ReasonLost which could be Price or Time.

My question is, what would be the best representation of the Order?

I was thinking of using a single table and just have for the orders won, the ReasonLost as null.

Does it make sense to create separate tables for WonOrder and LostOrder if the difference of these new entities is not significant?

What would be the best model for this case?

  • 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-25T21:36:03+00:00Added an answer on May 25, 2026 at 9:36 pm

    Use one table. Add an OrderState Field.

    Caveat: If you are doing millions of transactions per day, then decisions like this need much more attention and analysis.

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

Sidebar

Related Questions

I have an entity model that has audit information on every table (50+ tables)
I have a project I am working on that has a Order entity that
Our client has a Magento-powered store and needs the ability to create tax reports
Does the Entity Framework 4 have ordered collections? For example my Order has a
I have an entity Order which has to-many relationship with OrderItem entity. In case
I have entity Order witch has @OneToOne relation to second entity File , relation
I have two Entity classes: Order and OrderItem . Order contains a navigation property
I have an abstract entity called Block which contains two attributes: column and order
I have entity Recipes and it has a HasMany collection comments. In a MVC
In my business model I have Entity class (IPoint interface ) that has a

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.