- Автор темы
- #1
Структура таблиц:
tb praktik
praktik_id | name
tab score
praktik_id | event_id | score
tab event
date | type | event_id
Делаю запрос:
SELECT praktik.praktik_id, praktik.name, event.date, score.score AS score, event.type FROM praktik, event LEFT JOIN score ON praktik.praktik_id = score.praktik_id AND event.event_id = score.event_id WHERE event.event_id = $event_id ORDER BY praktik.name
результата нет Подскажите в чем проблема?
tb praktik
praktik_id | name
tab score
praktik_id | event_id | score
tab event
date | type | event_id
Делаю запрос:
SELECT praktik.praktik_id, praktik.name, event.date, score.score AS score, event.type FROM praktik, event LEFT JOIN score ON praktik.praktik_id = score.praktik_id AND event.event_id = score.event_id WHERE event.event_id = $event_id ORDER BY praktik.name
результата нет Подскажите в чем проблема?