home
products
contribute
download
documentation
forum
Home
Forums
New posts
Search forums
What's new
New posts
All posts
Latest activity
Members
Registered members
Current visitors
Donate
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Search titles only
By:
Menu
Log in
Register
Navigation
Install the app
Install
More options
Contact us
Close Menu
Forums
General Forums
News and Announcements
Music Section gets some TLC
Contact us
RSS
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="jameson_uk" data-source="post: 729038" data-attributes="member: 11220"><p>What particular workaround? Below might explain...</p><p></p><p></p><p></p><p>The issue is the many to many relationship between tracks and album artists.</p><p></p><p>The | characters are to separate different values so to get a list of albums for an album artist you use</p><p></p><p>[code]Select distinct strAlbumName from Tracks where strAlbumArtist like '%| artist |%'[/code]</p><p></p><p>so if you have say the collaboration between Linkin Park and Jay-Z the album artist field could be | Linkin Park | Jay-Z | and hence the above query for both artists will still return the album.</p><p></p><p>An intersection table between Tracks and the multi-value tables would be much better database design but it would need large amount of code changes (there are about 1000 lines in MusicViewHandler.cs that would need updating</p></blockquote><p></p>
[QUOTE="jameson_uk, post: 729038, member: 11220"] What particular workaround? Below might explain... The issue is the many to many relationship between tracks and album artists. The | characters are to separate different values so to get a list of albums for an album artist you use [code]Select distinct strAlbumName from Tracks where strAlbumArtist like '%| artist |%'[/code] so if you have say the collaboration between Linkin Park and Jay-Z the album artist field could be | Linkin Park | Jay-Z | and hence the above query for both artists will still return the album. An intersection table between Tracks and the multi-value tables would be much better database design but it would need large amount of code changes (there are about 1000 lines in MusicViewHandler.cs that would need updating [/QUOTE]
Insert quotes…
Verification
Post reply
Forums
General Forums
News and Announcements
Music Section gets some TLC
Contact us
RSS
Top
Bottom