I have two tables as EventTable and VenueTable
I m Using prinamrykey of each other as foreignkey. Table structure is as follows ;
EventID|VenueID|EventName
1 | 1 | Event1
2 | 1 | Event2
3 | 2 | Event3
VenueId|EnevtID|VenueNAme
1 | 1 | Venue1
2 | 2 | Venue2
and i want the result as follows ;
VenueID | VenueName | EventID | EventName
1 | Venue1 | 1 | Event1
1 | Venue1 | 2 | Event2
2 | Venue2 | 2 | Event2
2 | Venue2 | 3 | Event3
I have used inner join to do this., but could not get the expected result.
How to do this ?
Thanks..
Try this:
This emulates a FULL OUTER JOIN in MySQL