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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T13:35:02+00:00 2026-05-20T13:35:02+00:00

I’m working on a database that I inherited and I came across something that

  • 0

I’m working on a database that I inherited and I came across something that I am not sure is a good practice.

Basically There is a Status table, with a list of StatusID’s and descriptions. There are two tables that have FK relations to it. Between the two tables there are common status (basically the same description) and some that are unique to the individual table.

To add to this, there is another ‘typed’ Status table that is solely related to a single table (not the first two).

Table1 —->StatusTable<—–Table2 Table3—->Table3Status

It seems to me that the ‘typed’ status table was added a while after the first, likely from a different developer. My question is should I combine the 2nd status table and make it consistent across the database or should I separate the combined use table?

I suppose a third option is to add another field to the Status table ‘StatusTypeID’ with a FK to a table defining the status.

Thoughts?

EDIT:
To be more specific:
The three tables are (and I don’t condone the Tbl prefix) TblVersionEvaulationFormulaire, TblEvaluationMandat, and TblRecontreCarriere. IE TblVersioning, TblMidtermEvaluations, TblCareerInterestsAndExperience. The Versioning table tracks both the other two table changes. IE if the criteria of the midterm evaluation changes, I would create a new version of it and add it to the Versioning table. same with TblCareerInterestsAndExperience. So for example, all three tables have status as Published, but each have status unique to them. I am thinking I should either separate the tables, or add a third column to the status table to differentiate.

  • 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-20T13:35:03+00:00Added an answer on May 20, 2026 at 1:35 pm

    If they are all status tables of a particular type of status class, it is simplest to have a single status table and have each of the three tables declare foreign keys to it.

    You can always add constraints to a particular table that references the status table in terms of which status(es) are not applicable. You can do this even more elegantly by breaking down the status-es categorically, so that a query can the basis of your constraint (i.e., no hard-coded “IN” clause). You will probably need at least one extra column in your status table to help break down the status classes into sub-categories.

    If table3 is really using a different kind of status, then it needs its own table. There’s a semantic element to all of this — you need to ask yourself if a particular type of status is even conceivable/relevant for a particular table. If not, then it may not be feasible to consolidate all statuses.

    For example, in my system I might have ORDER STATUS and SYSTEM STATUS. These are two very different classes and I can’t imagine a case where some line item somewhere might have either an order status or a system status. I would need two tables here. However, if I had ORDER PRE-PROCESSING_STATUS and ORDER POST-PROCESSING STATUS, those can probably be merged into a single class. So there’s a sanity check you’ll need to do at a logical level here.

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

Sidebar

Related Questions

I'm parsing an RSS feed that has an &#8217; in it. SimpleXML turns this
I need a function that will clean a strings' special characters. I do NOT
I'm working with an upstream system that sometimes sends me text destined for HTML/XML
link Im having trouble converting the html entites into html characters, (&# 8217;) i
That's pretty much it. I'm using Nokogiri to scrape a web page what has
Basically, what I'm trying to create is a page of div tags, each has
I have a string like this: La Torre Eiffel paragonata all&#8217;Everest What PHP function
I've got a string that has curly quotes in it. I'd like to replace
I have a French site that I want to parse, but am running into
I am doing a simple coin flipping experiment for class that involves flipping 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.