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

android - net_scheduler holding wakelock -

sql - MySQL : Getting Entries from a many-to-many table -

java - Retrieving data from database using jsp (Hibernate + Spring + Maven) -