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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T11:50:02+00:00 2026-05-21T11:50:02+00:00

Say I have a table people (id, firstname, lastname) . There are two other

  • 0

Say I have a table people (id, firstname, lastname).

There are two other tables that should contain these fields, so we’ll just reuse the people table: users (id, username, person_id) and companies (id, name, contact_person_id).

Now to get companies or users we must join the people table. If we change the people table, we must rewrite all queries, and probably lots of code.

Is this a real problem? Is my DB structure flawed? Is there a solution to maintain low coupling, like maybe ORM?

Thank you for all anwers.

  • 1 1 Answer
  • 3 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-21T11:50:03+00:00Added an answer on May 21, 2026 at 11:50 am

    Most of the time, the kind of modifications that would be made would not be disruptive, such as adding new columns. Breaking changes, like modifying column names or data types, is hardly ever done.

    Relational database management systems allow the creating of special data types which make certain modifications much easer. If FirstName and LastName were defined as a user-defined type PersonName, then changing the type would make the same change appear in all the queries and stored procedures that use the columns. Unfortunately, hardly anyone ever uses user-defined data types.

    If, conceptually, the thing called “Person” that is part of the things User and Company really represents a coherent idea, then changes to Person will not be disruptive, because any changes that are needed are needed everywhere. If, on the other hand, this is hacking conceptually dissimilar things together for convienience sake, then you are likely to encounter problems down the road.

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

Sidebar

Related Questions

Let us say I have two table types (tables of object types) that I
Say I have a table People , is there a way to just quickly
Say I have these tables: people(id, name), cars(person_id, car) and this query: SELECT c.car
Lets say I have two tables as such: People Id Name FirstDate LastDate --
Lets say I have the following (2) tables: [People Table] ID   Name 1
Let's say I have a table called PEOPLE having three columns, ID , LastName
Let's say i have a database table called 'people'. 70% of the fields in
Let's say that I have and database table called People, and entity People. Let's
Say I have a table that goes clockwise like this: 2 1 3 0
say I have input data like so: firstName | lastName | Country Bob |

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.