SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'hadera' 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 'hadera' and action like 'hairdresser_%' group by 1,2 order by ev desc limit 1 ROWS: 1 ROW 0: {"city":"Hadera","country":"Israel","ev":"57"}
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 'Hadera' and country like 'Israel' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 1 ROW 0: {"action":"10","events":"57"}
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 'Israel' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 5 ROW 0: {"action":"30","events":"610"} ROW 1: {"action":"25","events":"1"} ROW 2: {"action":"20","events":"1250"} ROW 3: {"action":"10","events":"2988"} ROW 4: {"action":"0","events":"3091"}
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 'Israel' and action like 'hairdresser%' group by 1,2) g group by 1 ROWS: 6 ROW 0: {"region":"Center District","action":"27450","events":"1554"} ROW 1: {"region":"Haifa District","action":"580","events":"327"} ROW 2: {"region":"Jerusalem District","action":"0","events":"19"} ROW 3: {"region":"North District","action":"0","events":"1"} ROW 4: {"region":"South District","action":"10","events":"3"} ROW 5: {"region":"Tel Aviv District","action":"45165","events":"6036"}
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 'Israel' 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: 6 ROW 0: {"lat":"31.768319","lon":"35.21371","city":"Jerusalem","action":"0","events":"19"} ROW 1: {"lat":"31.892773","lon":"34.811272","city":"Rehovot","action":"20","events":"46"} ROW 2: {"lat":"32.068424","lon":"34.824785","city":"Ramat Gan","action":"0","events":"480"} ROW 3: {"lat":"32.084041","lon":"34.887762","city":"Petah Tikva","action":"2080","events":"208"} ROW 4: {"lat":"32.0852999","lon":"34.7817676","city":"Tel Aviv-Yafo","action":"39055","events":"4943"} ROW 5: {"lat":"32.162413","lon":"34.844675","city":"Herzliya","action":"6100","events":"611"}
SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'Hadera' 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 'Hadera' and action like '{$action_string}_%' group by 1,2 order by ev desc limit 1 ROWS: 0SQL: SELECT * FROM joe where lower(city) like 'Hadera' and country like 'Israel' 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 'Hadera' order by events desc limit 1 ) b on a.country = b.country_2 where country_2 is not null and city not like 'Hadera' and city not like '(not set)' group by 1 order by 2 desc ) yo limit 25 ROWS: 25 ROW 0: {"city":"Tel Aviv-Yafo"} ROW 1: {"city":"Jerusalem"} ROW 2: {"city":"Ra'anana"} ROW 3: {"city":"Herzliya"} ROW 4: {"city":"Bet Shemesh"} ROW 5: {"city":"Tiberias"} ROW 6: {"city":"Modi'in-Maccabim-Re'ut"} ROW 7: {"city":"Be'er Sheva"} ROW 8: {"city":"Pardes Hanna-Karkur"} ROW 9: {"city":"Ramat Gan"}Tel Aviv-Yafo - Jerusalem - Ra'anana - Herzliya - Bet Shemesh - Tiberias - Modi'in-Maccabim-Re'ut - Be'er Sheva - Pardes Hanna-Karkur - Ramat Gan - Rehovot - Kefar Sava - Giv'atayim - Haifa - Ashkelon - Petah Tikva - Rishon LeTsiyon - Netanya - Yavne - Kiryat Ono - Binyamina-Giv'at Ada - Ashdod - Ramat Hasharon - Lod - Bat Yam -
SQL: SELECT * FROM joe_serp WHERE city like 'Hadera' ROWS: 0
SQL: SELECT city from ( SELECT city,sum(events) FROM joe WHERE city not like '(not set)' and city not like 'Hadera' group by 1 order by 2 desc limit 100) c ORDER BY RAND() limit 20 ROWS: 20 ROW 0: {"city":"Helsinki"} ROW 1: {"city":"Berlin"} ROW 2: {"city":"Zurich"} ROW 3: {"city":"Vilnius"} ROW 4: {"city":"Nashville"} ROW 5: {"city":"Vancouver"} ROW 6: {"city":"Honolulu"} ROW 7: {"city":"Edinburgh"} ROW 8: {"city":"Tampa"} ROW 9: {"city":"Ottawa"}Tipping in Zagreb , Tipping in Bristol , Tipping in Irvine , Tipping in Atlanta , Tipping in Leeds , Tipping in Richmond , Tipping in Chicago , Tipping in Mississauga , Tipping in Newcastle upon Tyne , Tipping in Canberra , Tipping in Dubai , Tipping in Charlotte , Tipping in Vancouver , Tipping in Dublin , Tipping in Washington , Tipping in Barcelona , Tipping in Melbourne , Tipping in Frankfurt , Tipping in Berlin , Tipping in Copenhagen ,