Please start any new threads on our new
site at https://forums.sqlteam.com. We've got lots of great SQL Server
experts to answer whatever question you can come up with.
| Author |
Topic |
|
bmatthews
Starting Member
8 Posts |
Posted - 2010-01-04 : 16:40:52
|
| Hello, I am working on a small music library for myself via SQL. I imported the music library via Excel and have a normalized table like so.tbl_music---------genre1, albumgenre1, albumgenre2, albumetc,and I want to make a script that takes the data and puts it into this formattbl_revised_music-----------genre1, album1, album2, album3genre2, album1, album2etc,note that genres can have a different number of albums. Thanks for any pointers! |
|
|
webfred
Master Smack Fu Yak Hacker
8781 Posts |
Posted - 2010-01-04 : 17:06:45
|
You need two tables.genreid intgenre varchar(255)albumid intgenre_id intalbum varchar(255)please, please, please do nothing like this:tbl_revised_music-----------genre1, album1, album2, album3genre2, album1, album2 No, you're never too old to Yak'n'Roll if you're too young to die. |
 |
|
|
bmatthews
Starting Member
8 Posts |
Posted - 2010-01-05 : 17:51:59
|
| I figured it out! Thanks for the response |
 |
|
|
madhivanan
Premature Yak Congratulator
22864 Posts |
Posted - 2010-01-06 : 01:46:23
|
quote: Originally posted by bmatthews I figured it out! Thanks for the response
What did you figure out?Post the codeMadhivananFailing to plan is Planning to fail |
 |
|
|
visakh16
Very Important crosS Applying yaK Herder
52326 Posts |
Posted - 2010-01-06 : 03:30:48
|
| I dont think he got the point |
 |
|
|
|
|
|
|
|