i have the following 4 tables:
Participant {id_participant, etc.}
Player {id_participant, name, phone, etc.}
Team {id_participant, name, phone, etc..}
Couple {id_participant, id_player1, id_player2}
Games {id_game, localization, etc.}
GamesParticipant { id_game, id_participant, type (p,t,c) }
On my site I need to make many queries involving participants and the normal way requires many joins per query. The first solution i thought was to create a View with the union of Player, Team, Couple and make queries on that view, but reading the post MySQL view performance i cant use union.
What is the best way to do this and is it possible to do with stored procedures?
thanks