Page 1 of 1

List of job models

Published: June 18, 2024 - 10:12
by Gaetan
Good morning,

2 queries that allow retrieving the list of job models, grouped by model.

Global:

Code: Select all

SELECT
    manufacturer,
    productname,
    COUNT(*) AS NbMachines
FROM
    hosts
GROUP BY
    manufacturer, productname;
By OR:

Code: Select all

SELECT
    manufacturer,
    productname,
    COUNT(*) AS NbMachines
FROM
    hosts
WHERE
    computer_ad_ou LIKE '%%OU%%'
GROUP BY
    manufacturer, productname;