SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'berkel-enschot' and action like 'hairdresser_%' group by 1,2 order by ev desc limit 1 ROWS: 0
SQL: SELECT city,country,sum(events) ev FROM `joe` where city like 'berkel-enschot' and action like 'hairdresser_%' group by 1,2 order by ev desc limit 1 ROWS: 1 ROW 0: {"city":"Berkel-Enschot","country":"Netherlands","ev":"610"}
SQL: SELECT sVal FROM `joe_settings` where sTopic like 'hairdresser' and sName like 'color' ROWS: 5 ROW 0: {"sVal":"'25' => '#f2b434'"} ROW 1: {"sVal":"'>25' => '#990099'"} ROW 2: {"sVal":"'20' => '#259c5d'"} ROW 3: {"sVal":"'10' => '#4882ef'"} ROW 4: {"sVal":"'0' => '#d7483f'"}
SQL: SELECT sVal FROM `joe_settings` where sTopic like 'hairdresser' and sName like 'nice' ROWS: 1 ROW 0: {"sVal":"a Hairdresser (or Barber, Hair stylist, etc.)"}
SQL: SELECT sVal FROM `joe_settings` where sTopic like 'hairdresser' and sName like 'niceTagline' ROWS: 0
SQL: SELECT CASE WHEN LOWER(action) LIKE 'hairdresser_>25' THEN 30 ELSE CAST(REPLACE(LOWER(action),'hairdresser_','') AS UNSIGNED) END AS action,sum(events) events FROM joe where lower(city) like 'Berkel-Enschot' and country like 'Netherlands' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 1 ROW 0: {"action":"0","events":"610"}
SQL: SELECT CASE WHEN LOWER(action) LIKE 'hairdresser_>25' THEN 30 ELSE CAST(REPLACE(LOWER(action),'hairdresser_','') AS UNSIGNED) END AS action,sum(events) events FROM joe where country like 'Netherlands' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 5 ROW 0: {"action":"30","events":"847"} ROW 1: {"action":"25","events":"3"} ROW 2: {"action":"20","events":"926"} ROW 3: {"action":"10","events":"1311"} ROW 4: {"action":"0","events":"12511"}
SQL: SELECT region, sum(action*events) action, sum(events) events from (SELECT CASE WHEN LOWER(action) LIKE 'hairdresser_>25' THEN 30 ELSE CAST(REPLACE(LOWER(action),'hairdresser_','') AS UNSIGNED) END AS action, region,sum(events) events FROM joe where country like 'Netherlands' and action like 'hairdresser%' group by 1,2) g group by 1 ROWS: 12 ROW 0: {"region":"Drenthe","action":"0","events":"27"} ROW 1: {"region":"Flevoland","action":"10","events":"392"} ROW 2: {"region":"Friesland","action":"0","events":"556"} ROW 3: {"region":"Gelderland","action":"10","events":"637"} ROW 4: {"region":"Groningen","action":"0","events":"984"} ROW 5: {"region":"Limburg","action":"3030","events":"166"} ROW 6: {"region":"North Brabant","action":"2470","events":"1491"} ROW 7: {"region":"North Holland","action":"16425","events":"5399"} ROW 8: {"region":"Overijssel","action":"35","events":"249"} ROW 9: {"region":"South Holland","action":"31945","events":"5216"}
SQL: SELECT country, sum(action*events) action, sum(events) events from (SELECT CASE WHEN LOWER(action) LIKE 'hairdresser_>25' THEN 30 ELSE CAST(REPLACE(LOWER(action),'hairdresser_','') AS UNSIGNED) END AS action, country,sum(events) events FROM joe where country not like '(not set)' and action like 'hairdresser%' group by 1,2) g group by 1 having sum(events)>4 ROWS: 100 ROW 0: {"country":"Algeria","action":"10","events":"40"} ROW 1: {"country":"Argentina","action":"4210","events":"249"} ROW 2: {"country":"Armenia","action":"0","events":"321"} ROW 3: {"country":"Aruba","action":"20","events":"55"} ROW 4: {"country":"Australia","action":"95735","events":"68880"} ROW 5: {"country":"Austria","action":"8645","events":"1110"} ROW 6: {"country":"Bahrain","action":"2880","events":"290"} ROW 7: {"country":"Bangladesh","action":"55","events":"339"} ROW 8: {"country":"Belgium","action":"1135","events":"5256"} ROW 9: {"country":"Bermuda","action":"420","events":"21"}
SQL: SELECT lat, lon,t.city city, sum(action*events) action, sum(events) events from (SELECT CASE WHEN LOWER(action) LIKE 'hairdresser_>25' THEN 30 ELSE CAST(REPLACE(LOWER(action),'hairdresser_','') AS UNSIGNED) END AS action, city,sum(events) events FROM joe where country like 'Netherlands' and action like 'hairdresser%' group by 1,2) t left join citiesLatLon ltln on t.city = ltln.city where lat is not null and t.city not like '(not set)' group by 1,2,3 having sum(events)>2 ROWS: 16 ROW 0: {"lat":"42.7870209","lon":"-73.9709583","city":"Rotterdam","action":"580","events":"1012"} ROW 1: {"lat":"42.9377453","lon":"-74.190356","city":"Amsterdam","action":"16305","events":"4773"} ROW 2: {"lat":"50.8513682","lon":"5.6909725","city":"Maastricht","action":"10","events":"10"} ROW 3: {"lat":"51.3703748","lon":"6.1724031","city":"Venlo","action":"3020","events":"152"} ROW 4: {"lat":"51.441642","lon":"5.4697225","city":"Eindhoven","action":"860","events":"789"} ROW 5: {"lat":"51.8125626","lon":"5.8372264","city":"Nijmegen","action":"0","events":"260"} ROW 6: {"lat":"51.9244201","lon":"4.4777326","city":"Rotterdam","action":"580","events":"1012"} ROW 7: {"lat":"52.0029907","lon":"5.1857599","city":"Houten","action":"10","events":"110"} ROW 8: {"lat":"52.0115769","lon":"4.3570677","city":"Delft","action":"40","events":"3"} ROW 9: {"lat":"52.060669","lon":"4.494025","city":"Zoetermeer","action":"6100","events":"611"}
SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'Berkel-Enschot' and action like '{$action_string}_%' group by 1,2 order by ev desc limit 1 ROWS: 0
SQL: SELECT city,country,sum(events) ev FROM `joe` where city like 'Berkel-Enschot' and action like '{$action_string}_%' group by 1,2 order by ev desc limit 1 ROWS: 0SQL: SELECT * FROM joe where lower(city) like 'Berkel-Enschot' and country like 'Netherlands' and action like '{$action_string}__%' order by events desc ROWS: 0
SQL: Select count(distinct country) countries,count(distinct city) cities,sum(case when action not in (select min(action) from joe where action like 'hairdresser_%') then events else 0 end) as love, sum(events) users from joe where action like 'hairdresser_%' ; ROWS: 1 ROW 0: {"countries":"145","cities":"4093","love":"304013","users":"699495"}
CITIES
Countries
USERS
Tip more than 0%
SQL: SELECT city from (SELECT city,sum(events) FROM ( SELECT * FROM joe) a left join ( select country country_2 FROM joe where lower(city) like 'Berkel-Enschot' order by events desc limit 1 ) b on a.country = b.country_2 where country_2 is not null and city not like 'Berkel-Enschot' and city not like '(not set)' group by 1 order by 2 desc ) yo limit 25 ROWS: 25 ROW 0: {"city":"Amsterdam"} ROW 1: {"city":"The Hague"} ROW 2: {"city":"Eindhoven"} ROW 3: {"city":"Rotterdam"} ROW 4: {"city":"Groningen"} ROW 5: {"city":"Utrecht"} ROW 6: {"city":"Almere"} ROW 7: {"city":"Breda"} ROW 8: {"city":"Alkmaar"} ROW 9: {"city":"Katwijk aan Zee"}Amsterdam - The Hague - Eindhoven - Rotterdam - Groningen - Utrecht - Almere - Breda - Alkmaar - Katwijk aan Zee - Amersfoort - Assen - Maassluis - Pijnacker - Haarlem - Zoetermeer - Enschede - Leiden - Ens - Drachten - Papendrecht - Zwanenburg - Deurne - Leerdam - Naaldwijk -
SQL: SELECT * FROM joe_serp WHERE city like 'Berkel-Enschot' ROWS: 0
SQL: SELECT city from ( SELECT city,sum(events) FROM joe WHERE city not like '(not set)' and city not like 'Berkel-Enschot' group by 1 order by 2 desc limit 100) c ORDER BY RAND() limit 20 ROWS: 20 ROW 0: {"city":"Brighton"} ROW 1: {"city":"Lisbon"} ROW 2: {"city":"Munich"} ROW 3: {"city":"Tallinn"} ROW 4: {"city":"Cape Town"} ROW 5: {"city":"Quezon City"} ROW 6: {"city":"Austin"} ROW 7: {"city":"Calgary"} ROW 8: {"city":"San Jose"} ROW 9: {"city":"Liverpool"}Tipping in Boston , Tipping in Austin , Tipping in Perth , Tipping in Wroclaw , Tipping in Miami , Tipping in Quezon City , Tipping in Munich , Tipping in San Diego , Tipping in Richmond , Tipping in Toronto , Tipping in Tampa , Tipping in Barcelona , Tipping in Cambridge , Tipping in Winnipeg , Tipping in Calgary , Tipping in Glasgow , Tipping in San Francisco , Tipping in San Jose , Tipping in Warsaw , Tipping in Manchester ,