Сообщество IT-специалистов
Ответы на любые вопросы об IT
Профессиональное развитие в IT
Удаленная работа для IT-специалистов
SELECT * FROM `kz` WHERE `kz_year`=(SELECT `kz_year` from `kz` where `kz_id`=649)
SELECT * FROM `kz` WHERE `kz_year`=(SELECT `kz_year` from `kz` where `kz_id`=649) and `kz_pid`=(SELECT `kz_pid` from `kz` where `kz_id`=649)
SELECT kz1.* FROM kz AS kz1 INNER JOIN kz AS kz2 ON kz1.kz_year = kz2.kz_year AND kz1.kz_pid = kz2.kz_pid WHERE kz2.kz_id = 694