|
Fu
Starting Member
23 Posts |
Posted - 2005-09-27 : 08:08:15
|
| Label(LabelID,Label) labelid=pk-------------------------------Shelf(ShelfID,Shelf) shelfid=pk-------------------------------Country(CountryID,Country) countryid=pk---------------------------------------Track(TrackID,Track) trackid=pk-------------------------------Artist(ArtistID,Artist,ArtistPhoto,CountryID) artistid=pk,countryid=fk country(countryid)-----------------------------------------------------------------------------------------CD(CDID,CDTitle,CDDate,CDCover,LabelID,ShelfID) cdid=pk, labelid=fk label(labelid),shelfid=fk shelf(shelfid)------------------------------------------------------------------------------------------------------------CDTrack(TrackID,CDID) trackid,cdid=pk, trackid=fk track(trackid), cdid=fk CD(cdid)----------------------------------------------------------------------------------ArtistTrack(ArtistID,TrackID) artistid,trackid=pk, artistid=fk artist(artistid),trackid=fk track(trackid)---------------------------------------------------------------------------------------------------------I've already created these tables but i need some aid writing these queries coz i am still a beginner in sqlSearch Queries------------------------------------------------------------Input ArtistOutput CDTitle,CDDate,CDCover,Label,CDSection,Shelf 1Group By CDSection------------------------------------------------------------Input CDTitleOutput CDTitle,CDDate,CDCover,Label,CDSection,Shelf 2Group By CDSection------------------------------------------------------------Input TrackOutput CDTitle,CDDate,CDCover,Label,CDSection,Shelf 3Group By CDSection------------------------------------------------------------Input LabelOutput CDTitle,CDDate,CDCover,Label,CDSection,Shelf 4Group By CDSection------------------------------------------------------------ |
|