CREATE TABLE `baza`.`uqituvchi` ( `id` INT(10) NOT NULL AUTO_INCREMENT , `F.I.Sh`VARCHAR(30) NOT NULL , `yoshi` INT(50) NOT NULL , `tel nomeri` INT(30) NOT NULL , PRIMARYKEY (`id`)) ENGINE = InnoDB;
INSERT INTO `uqituvchi` (`id`, `F.I.Sh`, `yoshi`, `tel nomeri`) VALUES (NULL, 'Alimov Suhrob', '35', '913427658'), (NULL, 'Kamilov Bobur', '56', '971234567'), (NULL, 'Jabborov Jamshid', '35', '989998781'), (NULL, 'Halimov Elyor', '67', '338798900'), (NULL, 'Asadov Bobur', '45', '712597733')
SELECT talaba.`F.I.Sh`, talaba.guruh_name, uqituvchi.`F.I.Sh`, uqituvchi.yoshi FROM `talaba` LEFT JOIN uqituvchi ON uqituvchi.id=talaba.id
Do'stlaringiz bilan baham: |