Hey everyone,
I know this isn't a SQL group, but I'm on my colleges news server and they
don't offer one. Hopefully someone here will be able to help me.
I have a database that is normalized with a many-to-one ratio. Basically I
have one table, "concerts", another table "bands_at_conce rts", and a final
table, "bands". Concerts has a key CID (concert ID), bands has "bid" (band
ID). "bands_at_conce rts" is just two columns, CID and BID, both of which
have several of the same #'s. (For example, many bands play at one
concert, and one band plays at many concerts) I was wondering if there is
a way to retrieve all this information JOINED on to a querry I do to find
information about the concert. ie: SELECT * FROM concert WHERE cid = X <-
Is there a way to change that so that it also somehow returns all the bands
that would be playing there?
Thanks in advance,
-Eric Kincl
I know this isn't a SQL group, but I'm on my colleges news server and they
don't offer one. Hopefully someone here will be able to help me.
I have a database that is normalized with a many-to-one ratio. Basically I
have one table, "concerts", another table "bands_at_conce rts", and a final
table, "bands". Concerts has a key CID (concert ID), bands has "bid" (band
ID). "bands_at_conce rts" is just two columns, CID and BID, both of which
have several of the same #'s. (For example, many bands play at one
concert, and one band plays at many concerts) I was wondering if there is
a way to retrieve all this information JOINED on to a querry I do to find
information about the concert. ie: SELECT * FROM concert WHERE cid = X <-
Is there a way to change that so that it also somehow returns all the bands
that would be playing there?
Thanks in advance,
-Eric Kincl
Comment