I have several queries I need to combine if possible. I think it would make displaying the results easier. Also, doing them one at a time doesn't allow me to display the results in the order I want them. Anyway, here are the queries.
SELECT salesperson FROM salesdemo WHERE month=$mo AND salesperson=$sp
SELECT COUNT(deal_id) AS num_sales FROM salesdemo WHERE month=$mo AND salesperson=$sp
SELECT COUNT(deal_type) AS num_fin FROM salesdemo WHERE (deal_type='finance' OR deal_type='lease') AND month=$mo AND salesperson=$sp
SELECT COUNT(VSC) AS num_vsc FROM salesdemo WHERE VSC != '0.00' AND month=$mo AND salesperson =$sp
SELECT COUNT(etch) AS num_etch FROM salesdemo WHERE etch != '0.00' AND month=$mo AND salesperson=$sp
SELECT SUM(tot_front) AS front, SUM(fin_in) AS back,SUM(tot_in) AS profit FROM salesdemo WHERE month=$mo AND salesperson=$sp
if it needs it, GROUP BY salesperson
any help appreciated!! Cori