HI I am trying to group some results by a visit_id, however it just doesn't seem to work.
Here is my code.
SELECT url1 FROM pages GROUP BY visit_id ORDER BY timedate
Here is my database structure
id` int(10) NOT NULL AUTO_INCREMENT,
`client_id` int(11) NOT NULL,
`url` text NOT NULL,
`time` timestamp NOT NULL DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP,
`timedate` datetime NOT NULL,
`visit_id` varchar(100) NOT NULL,
`url1` varchar(255) NOT NULL,
`page_time` time NOT NULL
The code works it just doesn't seem to group by id