Проблемf с DISTINCT (GROUP BY)http://softtime.ru/forumПроблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449968Спасибо.Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 21:22:50 +0300lElectroHardlПроблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449962результаты SELECT прямоугольно-плоские имена//значения SELECT * FROM `sub_comments` GROUP BY `id_father` DESC, `id_child`; запоминайте в цикле текущий id_father выводя его...Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 19:30:32 +0300.....Проблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449960Хочу получить такую структуру: 183 --0 0 --184 1 --185 2 --186 3 141 --414 4 111 --222 2 Т.е.:...Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 19:08:41 +0300lElectroHardlПроблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449959Сделал под свой запрос, все-равно выводит 3 значения из любого поля: SELECT DISTINCT(`id_father`), `id_child`, 'val' FROM `sub_comments` GROUP BY `id_father`...Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 19:03:14 +0300lElectroHardlПроблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449958" GROUP BY id_father id_father повторяются 183,183,183, 183,141,111 или имеете ввиду надо GROUP BY id_father DESC или такое SELECT `id_father`, CAST(GROUP_CONCAT(`id_child`)AS...Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 18:52:58 +0300.....Проблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449956Так не должно быть. SELECT DISTINCT(`val`),`id_child` FROM `sub_comments` GROUP BY `id_child`Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 18:42:51 +0300olsПроблемf с DISTINCT (GROUP BY)http://softtime.ru/forum/read.php?id_forum=3&id_theme=76132#post449945Структура: CREATE TABLE IF NOT EXISTS `sub_comments` ( `id_father` int(10) NOT NULL, `id_child` int(10) NOT NULL, `val` int(3) NOT NULL...Проблемf с DISTINCT (GROUP BY)Sun, 12 Sep 2010 17:56:31 +0300lElectroHardl