473,406 Members | 2,633 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Help needed with designing database model

Hi

I'm developing a database driven website (my first one..) but i've run into a problem.

My vision:

The website should contain a database of DJ's that have played SETS at EVENTS (or raves ..whatever you call them). Each of those sets should contain a downloadlink to an audiofile so the visitors of the website are able to listen the set at home.
Every set consists out of a certain amount of TRACKS (id, artist, title, remixer)


Ok..till now it's easy, now the next part: I'd like to add a TRACKLIST to every set, so the visitors are able to see what tracks were played by the DJ during that specific set.

I thought about this solution:

In the 'track' entity i add the elements 'set_id' and 'position'.
The element 'set_id' will be the connection with the set the track has been played in. The element 'position' represents the position of the track within that tracklist. So if the position of a track is 8, it means that it is the 8th track that the dj played that night.
Now, when i join a few tables i should be able to show the visitors the tracklist of every set.




The problem is: When i apply this solution, i will have many duplicate tracks in my database. I want to integrate many sets and several dj's play the same records..

Is it a problem that i will have many duplicates in my database? If possible, the visitors should also be able to click on the track within a tracklist to see in what set it has been played. Is this possible to show the visitors such a track-page when having duplicates in a database or should i apply another solution?

Thanks for reading and i hope you guys understand my problem (and more important: can help me haha!!)
Dec 22 '07 #1
1 1216
chaarmann
785 Expert 512MB
...
The problem is: When i apply this solution, i will have many duplicate tracks in my database. I want to integrate many sets and several dj's play the same records..
As is it shown in your graph, you are only referencing to a track through primary key.Each track has a primary key which should identify the track. So instead of inserting a "duplicate" track, you can just search for the one which is already there in the table and re-use its primary key.
In your other tables, you should insert many times this primary key. So you will have many references to only a single database record. This is different from having duplicate records.
Jan 18 '08 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

0
by: Lefevre, Steven | last post by:
I'm working on a website/database deal, and right now I'm designing the security model. It's using LAMP(HP), so all the tricks are going to be through PHP. First off, this will be behind a...
7
by: E B via SQLMonster.com | last post by:
Hi All!! I need to build small phone book db. There are phone numbers and name (to whom phone belong) There are distribution lists that holds phone numbers and also can hold another lists....
3
by: Alwin | last post by:
Hey All! I am currently designing a database model for (at first sight) a simple order entry program. The problem I'm currently facing is the exchange of data between the databases of each branch...
4
by: MPA | last post by:
Hi, We are a small company with experience in client-server apps with PowerBuilder and most major databases. We have no internet experience. We are now looking into slimming our main application,...
4
by: Rnt6872 | last post by:
Table A Table B BOL# B_BOL# Chargeback# Hi All, I have been struggling with this for...
0
by: gunimpi | last post by:
http://www.vbforums.com/showthread.php?p=2745431#post2745431 ******************************************************** VB6 OR VBA & Webbrowser DOM Tiny $50 Mini Project Programmer help wanted...
3
by: binita2908 | last post by:
Hi all , I am using MySql5.0 My database schema consists of four relations: Product(maker, model, type) PC(code, model, speed, ram, hd, cd, price) Laptop(code, model, speed, ram, hd,...
1
by: abhijitbkulkarni | last post by:
Hello, I am designing a .NET database application that uses 3 tier architecture. Starting initially, this application will be desktop application but I will convert it into a website later but...
2
by: ahmadoubay_20240 | last post by:
The assignment aims at enforcing the encryption and communication techniques. It helps the student in acquiring the necessary knowledge in developing client/server application and in securing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.