Been a bit since I wrote any difficult SQL...so bear with me!
I am storing one record in an events table like so:
prim_key id
int attendee_id1
int attendee_id2
int attendee_id3
...
the attendee table is:
prim_key id
varchar name
...
I would like to return a single dataset containing all of the fields from the events table, but instead of returning the attendee_idX fields, I would like the corresponding attendee.name field...
my sql abilities are just not that great... can anyone help me out? it would be much appreciated.
thanks, eric
I am storing one record in an events table like so:
prim_key id
int attendee_id1
int attendee_id2
int attendee_id3
...
the attendee table is:
prim_key id
varchar name
...
I would like to return a single dataset containing all of the fields from the events table, but instead of returning the attendee_idX fields, I would like the corresponding attendee.name field...
my sql abilities are just not that great... can anyone help me out? it would be much appreciated.
thanks, eric