I have entires
, equipments
, brands
, times
and seasons
.
entries:
- id
- time
- equipment_1
- equipment_2
equipments:
- id
- id_brand
brands:
- id
- name
times:
- id
- id_season
seasons:
- id
- name
My actual SQL query is:
SELECT entries.*, times.id_season AS id_season
FROM entries, seasons
WHERE entries.time = times.id
But in the final query I need the next information that I don't know how to obtain it:
- The name for each entries.equipment_ as equipment_1_name and equipment_2_name which is set in brands.name.
- The name of the season as season_name.
Thank you in advance!