To extract all active licensed features inventory items stored in the Inventory Management System database, use the following query. (Enter the entire MySQL command syntax on the same line.)
- mysql> SELECTdev.name,
- dev.model,
- lic.feature_name,
- lic.feature_description,
- IF(given_count, given_count, "") AS given,
- lic.used_count,
- lic.licensed_count,
- lic.needed_count,
- lic.last_scanned,
- lic.created_on
- FROMdemo.licensing_inventory lic
- INNER JOINdemo.devices dev ON lic.device_id = dev.id
- WHERElic.deleted_on = 0 AND dev.deleted_on = 0;