473,396 Members | 1,891 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,396 software developers and data experts.

question from beginner...

I was thinking of making a music database i've created tables but I
cannot make a good relationship out of those tables... here are the
tables I created in access:

CD(cdno,created on)
Cassette(label, cassette no) <has artist(artistno,cdno,cassette
no, artist) <has album(albno,artistno,albumname) <has>
artist(.....)

here is the problem ,

one artist can have many album, and one album can have many artist...
how can I show this relation in access...

Sep 5 '06 #1
4 1175
"haha" <pr**************@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
>I was thinking of making a music database i've created tables but I
cannot make a good relationship out of those tables
<snip>
>
one artist can have many album, and one album can have many artist...
how can I show this relation in access...
One album can have many artists? Well, OK, you could try using a many to
many relationship by using a "join" table between your artist and album
tables.

tblAlbum
ID
AlbumName
etc ...

tblJoin
AlbumID
ArtistID

tblArtist
ID
ArtistName
etc ...

Join tblAlbum.ID to tblJoin.AlbumID in a one-to-many and join tblArtist.ID
to tblJoin.ArtistID in a one-to-many.

Keith.
www.keithwilby.com
Sep 5 '06 #2
There are many many things to consider and it depends what you want to do.

For instance you could have a Recording table and a RecordingRelease table
to deal with multiple formats LP, MC, CD, SACD, MP3, DVD-AUDIO the
RecordingRelease would contain data specific to the format and the Recording
would contain data about the recording whatever format it was released in.

It would probably be crazy to have a table for CD and one for Musicassette
and one for......

As to Artists and Recording/RecordingRelease you will need to resolve the
Many to Many relationship as per the usual approach with a table with a 1 to
Many relationship from Artist and a 1 to Many from
Recording/RecordingRelease.

It depends entirely upon the use you wish to put the database to.

A system designed for Sony may differ to one designed for a private
collection.
--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited

Small Business Solutions Provider

"haha" <pr**************@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
>I was thinking of making a music database i've created tables but I
cannot make a good relationship out of those tables... here are the
tables I created in access:

CD(cdno,created on)
Cassette(label, cassette no) <has artist(artistno,cdno,cassette
no, artist) <has album(albno,artistno,albumname) <has>
artist(.....)

here is the problem ,

one artist can have many album, and one album can have many artist...
how can I show this relation in access...

Sep 5 '06 #3

Keith Wilby wrote:
"haha" <pr**************@gmail.comwrote in message
news:11**********************@m79g2000cwm.googlegr oups.com...
I was thinking of making a music database i've created tables but I
cannot make a good relationship out of those tables
<snip>

one artist can have many album, and one album can have many artist...
how can I show this relation in access...

One album can have many artists? Well, OK, you could try using a many to
many relationship by using a "join" table between your artist and album
tables.

tblAlbum
ID
AlbumName
etc ...

tblJoin
AlbumID
ArtistID

tblArtist
ID
ArtistName
etc ...

Join tblAlbum.ID to tblJoin.AlbumID in a one-to-many and join tblArtist.ID
to tblJoin.ArtistID in a one-to-many.

Keith.
www.keithwilby.com
I did try that way... what happened was when I created a query to
display what happens is for example:

ARTIST - Robbie Williams
ALBUM - NOW 40
SONG - Kids
ARTIST - Britney Spears
ALBUM - NOW 40
SONG - Kids
ARTIST - Britney Spears
ALBUM - NOW 40
SONG - Lucky
ARTIST - Britney Spears
ALBUM - NOW 40
SONG - Kids

What I want is:
ARTIST - Robbie Williams
ALBUM - NOW 40
SONG - Kids

ARTIST - Britney Spears
ALBUM - NOW 40
SONG - Lucky

How can I sort this out??

Sep 6 '06 #4

Craig Alexander Morrison wrote:
There are many many things to consider and it depends what you want to do.

For instance you could have a Recording table and a RecordingRelease table
to deal with multiple formats LP, MC, CD, SACD, MP3, DVD-AUDIO the
RecordingRelease would contain data specific to the format and the Recording
would contain data about the recording whatever format it was released in.

It would probably be crazy to have a table for CD and one for Musicassette
and one for......

As to Artists and Recording/RecordingRelease you will need to resolve the
Many to Many relationship as per the usual approach with a table with a 1 to
Many relationship from Artist and a 1 to Many from
Recording/RecordingRelease.

It depends entirely upon the use you wish to put the database to.

A system designed for Sony may differ to one designed for a private
collection.
--
Slainte

Craig Alexander Morrison
Crawbridge Data (Scotland) Limited

Small Business Solutions Provider
I did think of making a different table for recording but I couldn't
think of not more than one attribute for that table...

Sep 6 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: martin | last post by:
Hello, I just got the SUN Java IDE. (Netbeans IDE 3.5.1) Very very nice, and I worked myself through the tutorial (about making a colorswitch). Now, When I compile it gives no errors at all. So...
11
by: Svens | last post by:
Hey everyone! I'm a math student working on a short script involving logs. I have a function on my scientific calculator, and was wondering if there was a similar funtion in python. For example:...
4
by: IS | last post by:
At the recommendation of several people in this newsgroup I have downloaded two or three Compilers. One is the Beta version of Microsoft's Visual C++ 2005. I have entered a complete beginner code...
3
by: Tcs | last post by:
My backend is DB2 on our AS/400. While I do HAVE DB2 PE for my PC, I haven't loaded it yet. I'm still using MS Access. And no, I don't believe this is an Access question. (But who knows? I...
12
by: uno | last post by:
Hello, I am a beginner with the programming and I have some question. I am reading manuals from Internet and some book from the library. In all those documents the C language operate wint plain...
1
by: Mike Malter | last post by:
I am just starting to work with reflection and I want to create a log that saves relevant information if a method call fails so I can call that method again later using reflection. I am...
10
by: Roman Zeilinger | last post by:
Hi I have a beginner question concerning fscanf. First I had a text file which just contained some hex numbers: 0C100012 0C100012 ....
4
by: a | last post by:
Dear all vb.net developer I want to know the time I need to master vb.net? I'm beginner
3
by: Ben Keshet | last post by:
I have a probably simple beginner's question - I have a script that I am currently able to print its output. instead, i want to write it into a file - I tried different versions of write() but...
2
by: roanhn | last post by:
Hello. I've to to write a master's thesis. Currently I deal with php, mysql, ajax. Fate decreed that I've to choose one of this subjects: 1.gdi+ library in .net technology 2.ado.net technology...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.