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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T02:52:09+00:00 2026-06-09T02:52:09+00:00

I have database to be designed about people info there will be some common

  • 0

I have database to be designed about people info

there will be some common details about people like name,age,address,contact etc…

but there are categories of people like government servants,business man,salaried , politicians etc…

so there will be some dynamic fields about the categories…

common details table can be made easily but the problem is with dynamic fields of categories like
government servants will have income, dept, since,etc…

I have created three tables :

Peoples Table: name, age, DOB, etc…
Category:rows for Government servants, salaried etc…
Attributes:

------------------------
ID|Category|Field|Value
-----------------------
1 |GS      |dept |electricity

the above database design (what i am using now) is kind of
NopCommerce database deign with
Nop_Customer and Nop_CustomerAttribute table

so is this a good one or anything better than this could be done: (for this situation)

Two imp points to be considered:
1-users will add data for this so controls will have to be created accordingly
2- this database will be searched by others.

EDIT:

The fields for each Category will be fixed.

but the categories will be added over time not by users but by developers, so need it be less hectic and maintainable for developers

  • 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-06-09T02:52:10+00:00Added an answer on June 9, 2026 at 2:52 am

    Make tables for each type of person. In those tables, only store what is applicable. If Phil Jones is a politician, then he would have an entry in the Person table that describes him as far as a person is concerned. He would also have a row in the Politicians table that would describe him as far as a politician is concerned. Make each of the child tables have a foreign key relationship with the person table’s ID column.

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

Sidebar

Related Questions

I have designed a class containing some information about a given object which will
I have designed a database whose MDF file will be copied to remote offices,
My problem is that the database fields have been badly designed by previous people
I have never designed a database/data-model/schema from scratch, especially for a web-application. In some
I have a SQLite DB designed using SQLite Database Browser 2.0 b1 I have
I have rewritten an old program and designed a new database for it. I
I am creating a database based on a ERD i have designed according to
I am planning to build a database for a school application. I have designed
I have Database with date field. I see the time like: 1900-01-01 13:38:00.000 How
I've designed a database structure where data is collected about cars over a period

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.