by bripley » Thu Apr 09, 2009 4:25 pm
I've been writing some SQL to try and clean up my music database. I have a question about the relationship between the Songs table and the Covers table. It looked pretty obvious to me at first, Use the IDSong attribute on Covers to find all the cover art related to a song...
To test it, I used one of my Songs (ID 155414) with 4 pieces of art associated to it. I put four different descriptions (one on each of the covers). So, for MYSONG, there are four pieces of art with descriptions (MYSONG 1, MYSONG 2, MYSONG 3, and MYSONG4).
I run the following SQL:
SELECT ID, CoverType, CoverDescription FROM Covers WHERE IDSong = 155414
It only returns the first two Cover rows. I thought maybe they're associated to the song in anther manner, so I just tried to find them using the following:
SELECT ID, CoverType, CoverDescription FROM Covers WHERE CoverDescription LIKE 'MYSONG%'
it returns the same 2 rows...
My question is... where are the other two rows stored? I know they're there, I can see them in MM.
Thanks!
I've been writing some SQL to try and clean up my music database. I have a question about the relationship between the Songs table and the Covers table. It looked pretty obvious to me at first, Use the IDSong attribute on Covers to find all the cover art related to a song...
To test it, I used one of my Songs (ID 155414) with 4 pieces of art associated to it. I put four different descriptions (one on each of the covers). So, for MYSONG, there are four pieces of art with descriptions (MYSONG 1, MYSONG 2, MYSONG 3, and MYSONG4).
I run the following SQL:
SELECT ID, CoverType, CoverDescription FROM Covers WHERE IDSong = 155414
It only returns the first two Cover rows. I thought maybe they're associated to the song in anther manner, so I just tried to find them using the following:
SELECT ID, CoverType, CoverDescription FROM Covers WHERE CoverDescription LIKE 'MYSONG%'
it returns the same 2 rows...
My question is... where are the other two rows stored? I know they're there, I can see them in MM.
Thanks!