skip to Main Content

mysql subselect on group by

I have a table of locations CREATE TABLE `asset_location_rel` ( `a_id` int(11) NOT NULL, `asset_id` int(11) NOT NULL, `location_id` int(11) NOT NULL, `deleted` int(11) NOT NULL DEFAULT 0, `units` int(11) NOT NULL DEFAULT 1, `unit_type` tinyint(4) NOT NULL ) ENGINE=InnoDB…

VIEW QUESTION
Back To Top
Search