Muligt ved at bruge Sub-Query
ELLER UNION
er det muligt at få COUNT
fra flere tabeller. Prøv denne forespørgsel:
SELECT
(SELECT count(*) FROM `car_model` WHERE user_id=3 ) AS car_model_count,
(SELECT COUNT(*) FROM `list_item` WHERE user_id=3) AS list_item_count,
(SELECT count(*) FROM `part_item` WHERE user_id=3) AS part_item_count;