B
Bij12
I have three tables in database.
1. Membership table where all user information is stored.
2. Award Table where MemberID, Award ID and Award Year received ( all the
fields makes composit Primary key, means to say that one member can recive
multiple award in different year period)
3. AwardType Table where AwardID and Award Name
Now I want the report of all the members who regardless of there Award . but
my problem of retriving all Award name as a column.
Like
ID Name Award"A" Award "B" Award"C" and respective year.
My Query looks like this
SELECT Membership.memID, Membership.LastName, Membership.FirstName,
MemberShipAward.AwardId, MemberShipAward.[Award-Rec-Year]
FROM Membership LEFT JOIN MemberShipAward ON Membership.memID =
MemberShipAward.memID;
I get the result as
ID Name Award-Type Award-Year
12 ABC A 1959
12 ABC B 2000
13 DEF
14---------------------
Is it any way I can concatinate the Award Type and get as all Award Type as
seperate column?
Any suggestion is really appreciated.
Thank you
Bij
1. Membership table where all user information is stored.
2. Award Table where MemberID, Award ID and Award Year received ( all the
fields makes composit Primary key, means to say that one member can recive
multiple award in different year period)
3. AwardType Table where AwardID and Award Name
Now I want the report of all the members who regardless of there Award . but
my problem of retriving all Award name as a column.
Like
ID Name Award"A" Award "B" Award"C" and respective year.
My Query looks like this
SELECT Membership.memID, Membership.LastName, Membership.FirstName,
MemberShipAward.AwardId, MemberShipAward.[Award-Rec-Year]
FROM Membership LEFT JOIN MemberShipAward ON Membership.memID =
MemberShipAward.memID;
I get the result as
ID Name Award-Type Award-Year
12 ABC A 1959
12 ABC B 2000
13 DEF
14---------------------
Is it any way I can concatinate the Award Type and get as all Award Type as
seperate column?
Any suggestion is really appreciated.
Thank you
Bij