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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T09:49:19+00:00 2026-05-25T09:49:19+00:00

I am working on one document system and got some logic/architectual problems. In this

  • 0

I am working on one document system and got some logic/architectual problems. In this system will be many types of documents – incoming, outgoing, etc. Every document type have its own number of cols whitch must be filled. On the paper all is easy, but in software – I need some advice 🙂

For example:

incoming document type 1 have 16 cols, 
outgoing document type 1 have 15cols, 
inner document have 9 cols,
etc...

At first I thought, that I will make one table, named “Categories” where will be stored (in tree) document types (incoming, outgoing, etc) and one generic table “Documents” with maximum of possible rows (for example 25) where would be stored all documents and if not used some cell, then ignored it.

After I thougth that I can make a much simpler – for every type of document – own table, but after some thinking is seemed to be worst solution.

So I want the best possible solution for this.

Maybe you can help me?

Thanks!

  • 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-25T09:49:20+00:00Added an answer on May 25, 2026 at 9:49 am

    This is a typical example for table inheritance. You’d do something like this:

    Document
    ----------
    DocumentId (PK)
    DocumentType
    ... any columns common to the different formats
    
    DocumentIncoming
    ----------
    DocumentId (PK, FK to Document)
    ... columns specific to Incoming
    
    DocumentOutgoing
    ----------
    DocumentId (PK, FK to Document)
    ... columns specific to Outgoing
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am working on a lightweight document management system and am looking for some
I'm working on a system that will need to store a lot of documents
Sometimes I some errors like this one when I'm working with canvas on Firefox:
I've never used HTTP Handlers before, and I've got one working, but I'm not
I'm working with one WCF service which will be consuming records I queue up
I am working on a kinda document management system. The end users are business
I have been working on this problem for quite some time and can't figure
We are working with an ATMEL 91 SAM board. Using this embedded system we
I have been working on a content management system (nakid) and one of my
I am working in a file management system.I have uploaded a document into 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.