python - Cities with a larger number of acquirers than startups -


my query below produces no output. i'm trying group city, city names of groups satisfy "having" condition. wrong here?

    create view que      select acquirer_city     acquisitions     group acquirer_city     having count(distinct company_name) < count(distinct acquirer_name) 

your sql creating view, not running query. if run

select * que 

you see content of view. however, if not wanting create view (to used later), remove first line. run query , return results.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -