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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T17:45:49+00:00 2026-06-14T17:45:49+00:00

If I have a schema similar to this: TABLE 1 id column other_column etc

  • 0

If I have a schema similar to this:

TABLE 1  
id  
column  
other_column  
etc

TABLE 2  
id  
table1_id  
some_other_table_id

Is it a good idea to add a third table like this:

TABLE 3  
id  
table2_id  
row_from_another_table_id

EDIT:
To make things clearer, consider a schema like this:

EVENTS  
id  
name  
other_stuff 

RANGES  
id  
time_from  
time_to  
max_people  
etc

EVENTS_PLACES  
id  
event_id  
place_id

What I want to do is to define a time range for an event. But a specific event in a specific place(EVENTS_PLACES) can ‘overwrite’ this ranges. Also an event can have multiple ranges.

I hope this makes the question a little bit more clear now.

  • 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-14T17:45:50+00:00Added an answer on June 14, 2026 at 5:45 pm

    Its always been my impression that a many to many relationship is a violation Boyce-Codd Normal Form and therefore a violation of a good relational database schema.

    Therefore, relating data to a link table is, infact, necessary to achieve BCNF and therefore good. If avoiding data update anomolies is good.


    On to the specific schema example you presented. I think you want these logical tables (or entities),

    -----------------------
    EventClass
    -----------------------
    Id
    Name
    ... Other attributes common to every instance
    -
    -----------------------
    TimeSlot
    -----------------------
    Id
    Start
    End
    -
    -----------------------
    Place
    -----------------------
    Id
    Name
    Address
    MaxAttendance
    ... etc
    -
    ----------------------
    EventInstance
    -----------------------
    Id
    EventClassId
    TimeSlotId
    PlaceId
    PresenterName
    ...Other attributes specific to the instance
    

    EventInstance is a realtionship between EventClass, TimeSlot and Place, any attributes specific to the EventInstance should be stored on that entity. Any attributes common to a related group of events should be stored on the EventClass attribute.


    Its all a question of Database Normalization, generally speaking, the more normalized the data the better. However, there is a case for compromise when performance is a concern, if the desired data is stored in the output format it does make a select query simpler and faster although, updates might be hell.

    I would counteract the case for compromise by suggesting that, with the right Indecies, Materialized Views and, indecies on Materialized Views, you can get the best of both worlds. The maintainability of fully normalized data with the speed of performance. Although, it does require some skill and consideration to get the schema right.

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

Sidebar

Related Questions

I have a schema design that looks like this: Table: User Row Column Family
I have a table which have schema like this id name 1 jack 2
I have a legacy SQL schema which looks something like this: CREATE TABLE `User`
I have a schema like this <h1> 5/2009 <br/> Question: This is the question
I have a table schema similar to the following (simplified): CREATE TABLE Transactions (
I have an existing table structure that looks something like this: AnimalTable ------------- |Id
I have a database schema that is similar to the following: | User |
I know that I should have schema of a table before calling NewRow method
i have this schema: <div id=container> <div id=content>some text</div> <footer> my footer things </footer>
How do I configure NHibernate to create the db schema with a column like

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.