I have a database with 2 tables consisting of:
table1:
unique_id
lic_manufacturer
lic_product_name
lic_qty
table2
unique_id
soft_manufacturer
lic_product_name
soft_qty
I need to write a sql statement that will output lic_manufacturer,
lic_product_name, the sum of lic_qty for each lic_product_name, and the the sum of soft_qty for each lic_product_name.
That way I can just dump it out to HTMl to compare it how much software is installed vs how many licenses there are.
I have tried writing a statement that joins the tables, but because both tables have different #s of entries, the resulting table gets hosed. Does anyone have any ideas?
Setup is as follows:
PHP 4.?
Mysql 4.0
Apache 2.0