LoveToCode
MIS
- Jan 11, 2007
- 51
In my result set I am seeing double instances of the same song (Mp3Id). It has to be in the logic of my join... does anyone see what couple possibly be wrong
Thank you!
-- jenni
Code:
select Mp3.*, Artist.[Name] ArtistName, Album.*,
Id3.bitRate,
Id3.frequency,
Id3.mode,
dbo.SecToMin(Id3.length) length
from wt_mp3 Mp3
-- get artist info
inner join wt_artist Artist
on Mp3.userId = Artist.artistId
-- get album info (per song)
left join wt_artist_album Album
on Mp3.userId = Album.artistId
-- get id3 data (length)
left join wt_mp3_id3 Id3
on Mp3.mp3Id = Id3.mp3Id
where Mp3.UserId = @artistId
Thank you!
-- jenni