login to mysql
select databse via
use ocsweb
the this command will give you all computers which have less then 1 software installed
SELECT hardware.name,hardware.lastcome,hardware_id, COUNT(softwares.name) FROM softwares join hardware on softwares.hardware_id = hardware.id GROUP BY hardware_id having COUNT(softwares.name)<1;
if you want all computers with less then 20 software packages you can try this
SELECT hardware.name,hardware.lastcome,hardware_id, COUNT(softwares.name) FROM softwares join hardware on softwares.hardware_id = hardware.id GROUP BY hardware_id having COUNT(softwares.name)<20;
kind regards
Sokatra