Is it possible to JOIN 3 tables.
I have a discography with these tables
CD
- CDid
- CDtitle
SONG
- SongID
- SongTitle
TRACKLIST
- idCD
- idSong
This is put together so when a CD is shown it gets the songs on it from the TRACKLIST table.
Then I have a Person page where all the person who worked on the songs are listed.
It uses these tables
PERSON
- PersonID
- PersonName
WORK
- WorkID
- PersID
- Work (ex. Guitar)
- Song (the id of the song the work is done)
This is put together so when you click a person it writes the work this person has done on which songs.
And if you click a song title it writes which person did what on that song.
BUT now I got the idea to writes all the person who worked on a entire album.
Here is my problem.
I can easier list the person and there work on ex. CD 5 by JOINING WORK and TRACKLIST where TRACKLIST.idCD = 5
But then I can't alphabetice by PersonName.
If I need it alphabeticed by PersonName i need the PERSON table JOINED with the WORK and TRACKLIST tables.
And also if I need it alphabeticed by WORK.Work, PERSON.PersonName
So is it possible to JOIN 3 tables ?
I could add a CD field in the WORK table, but the problem is that the songs are on more than one CD. So I have to get the tracklist on exactly CD 5 to know which songs are on it, and then get the Work on these songs.
But if I do that in 2 steps I can't alphabetice like I want it.
Therefore I need all 3 tables JOINED.
Hope my explanation was understandable 🙂
best
Michael