Jump to content

Quick Query question


Person

Recommended Posts

whats wrong with this query?

 

SELECT
        user,
        sum(imps) AS imps,
        sum(clicks) AS clicks,
        sum(clientrev) AS clientrev
FROM
        nuke_pnAffiliate_unauditedstats
WHERE
        `date` = '20070418' AND sid like '%rpu%' AND user IN (SELECT DISTINCT(cl) FROM rpu_sales WHERE salesman = 'ryan')
GROUP BY client
ORDER BY clientrev DESC; 

 

thanks

Link to comment
https://forums.phpfreaks.com/topic/49918-quick-query-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.