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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T18:28:56+00:00 2026-06-13T18:28:56+00:00

I have what I believe to be a good book on database desgin (Essence

  • 0

I have what I believe to be a good book on database desgin (Essence of Databases by Fred Rolland) and I have also read through this website; http://goo.gl/TxDq4. Both of these resources are great, but they use very structured examples involving customers and companies interacting.

I am trying to create a database that will contain references to hundreds of photographs. As part of the project I am working on I hope to allow the user to create slideshows. If I understand the theory correctly, this represents a “many to many” relationship, which I need to break with a “joining table”.

What I can’t get my head around is what this joining table should look like, or what function it actually performs. My feeling is that the joining class I’m trying to create is more nebulous than having an “Order Line” or such like. My first draft, with a joining class, looks like this: http://img28.imageshack.us/img28/2756/photodb2.png

And then I just get confused about what I’m actually trying to achieve with the joining class. A Slideshow can contain many Photographs and a Photograph can appear in many Slideshows.

With the joining class, SlideshowView, I think I’m creating an “instance” of a Slideshow, where that specific Slideshow can only contain one instance of any one Photograph. In this case, I’m confused about the relationship between the SlideshowView and Slideshow!

In fact, looking over this again, my diagram makes even less sense… A SlideshowView can only contain one Slideshow, but a Slideshow can be part of more than one SlideshowView? The trouble is, if I make the relationship one-to-one, doesn’t that make SlideshowView redundant?

When I think about this from a programming perspective, I would simply ask the user to select a Slideshow that would contain many Photographs, in which case, what is the difference between Slideshow and SlideshowView? Am I over-complicating this? It’s really “twisting my melon”! Any advice on how to proceed with this would be gratefully received.

  • 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-13T18:28:58+00:00Added an answer on June 13, 2026 at 6:28 pm

    For a many-to-many relationship, your left-hand relationship is the wrong way round. One photograph can appear in many slideshows, but you have drawn this the other way round – in effect, you have modelled a one-to-many with an unnecessary middle table, which is why it seems wrong to you. Slideshow and SlideshowView are indeed effectively the same the way you have drawn your diagram.

    The user will never “see” the middle, linking table. (S)he will select multiple photographs for a slideshow; for each of these, a row goes in the linking table to link those photographs to the new slideshow, without precluding them also appearing in other slideshows. To the end user, only photograph and slideshow are visible. I’d call the linking table SlideshowPhotograph personally. Here are the ID values for three photographs and two slideshows, showing photo 109 appearing in both slideshows.

    Photograph    | Link                        | Slideshow
    ID            | PhotographID SlideshowID    | ID
    107           | 107          23             | 23
    108           | 109          23             | 24
    109           | 109          24             |
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I believe I have a good answer to this issue, but I wanted to
I've asked this question of a few colleagues who I believe have good design
This is staight forward I believe: I have a table with 30,000 rows. When
I believe this question might have been previously attempted in 2006 on a different
Does anyone have this working? I believe I have the CodecPrivateData messed up, but
--EDIT-- I believe this is a valid question that may have multiple answers (as
I have always read that Cassandra is good if your application changes frequently and
Good Morning All, I have inherited an ASP.net website that was originally started back
I have a doubt of good manners in Rails and I believe MVC in
I believe I have disabled the view state on all controls as well as

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.