I am designing a database to catalog my mp3 collection. I want to have three tables within the database. One to store the mp3 id3 tag attributes, one to store the physical properties of the mp3 such as bitrate and sample rate and an other to store the file attributes such as file size, date created etc. To explain make explaining this a little easier, I'll assign names to the tables:
Table A: windows file attributes
Table B: mp3 File attributes
Table C: mp3 id3 tag info
Table D: mp3 id3v2 tag info (quite possible in the future, but it will not be in my DB till I can figure out how to get the information)
I want table A to be the "master" table because every mp3 will have windows file attributes. I believe that table A would have a one to many relationship. So with this I want to be able to gather all the information about a particular mp3 and place it in the appropriate tables with a minimum of fuss. I have 31 or so fields to add to the various tables.
My problem is that I am unsure of how to properly enter the data. I would like to put the data in the DB with a minimum of fuss, preferable with sql.
This is what I have been doing. I put the information into table A and then figure out what ID the database has given it, then using that ID I place the information into the other tables. I know this is a round about way of doing things, but it is the only way that I could figure out how to do this.
I am thinking that the tables have to be joined and then the data inputed into the appropriate places?
Any help will be appreciated...
Troy Williams B.Eng.
fenris@hotmail.com
Table A: windows file attributes
Table B: mp3 File attributes
Table C: mp3 id3 tag info
Table D: mp3 id3v2 tag info (quite possible in the future, but it will not be in my DB till I can figure out how to get the information)
I want table A to be the "master" table because every mp3 will have windows file attributes. I believe that table A would have a one to many relationship. So with this I want to be able to gather all the information about a particular mp3 and place it in the appropriate tables with a minimum of fuss. I have 31 or so fields to add to the various tables.
My problem is that I am unsure of how to properly enter the data. I would like to put the data in the DB with a minimum of fuss, preferable with sql.
This is what I have been doing. I put the information into table A and then figure out what ID the database has given it, then using that ID I place the information into the other tables. I know this is a round about way of doing things, but it is the only way that I could figure out how to do this.
I am thinking that the tables have to be joined and then the data inputed into the appropriate places?
Any help will be appreciated...
Troy Williams B.Eng.
fenris@hotmail.com