SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'izmir' 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 'izmir' and action like 'hairdresser_%' group by 1,2 order by ev desc limit 1 ROWS: 1 ROW 0: {"city":"Izmir","country":"Turkey","ev":"1756"}
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 'Izmir' and country like 'Turkey' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 2 ROW 0: {"action":"30","events":"1"} ROW 1: {"action":"0","events":"1755"}
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 'Turkey' and action like 'hairdresser_%' group by 1 order by action desc ROWS: 5 ROW 0: {"action":"30","events":"559"} ROW 1: {"action":"25","events":"1"} ROW 2: {"action":"20","events":"92"} ROW 3: {"action":"10","events":"2"} ROW 4: {"action":"0","events":"2761"}
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 'Turkey' and action like 'hairdresser%' group by 1,2) g group by 1 ROWS: 10 ROW 0: {"region":"(not set)","action":"0","events":"1"} ROW 1: {"region":"Adana","action":"0","events":"1"} ROW 2: {"region":"Ankara","action":"10","events":"572"} ROW 3: {"region":"Antalya","action":"1820","events":"91"} ROW 4: {"region":"Bursa","action":"35","events":"3"} ROW 5: {"region":"Istanbul","action":"20","events":"431"} ROW 6: {"region":"Izmir","action":"30","events":"1756"} ROW 7: {"region":"Kocaeli","action":"0","events":"1"} ROW 8: {"region":"Samsun","action":"16740","events":"558"} ROW 9: {"region":"Sanliurfa Province","action":"0","events":"1"}
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 'Turkey' 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: 5 ROW 0: {"lat":"36.8968908","lon":"30.7133233","city":"Antalya","action":"1820","events":"91"} ROW 1: {"lat":"38.423734","lon":"27.142826","city":"Izmir","action":"30","events":"1756"} ROW 2: {"lat":"39.9333635","lon":"32.8597419","city":"Ankara","action":"10","events":"572"} ROW 3: {"lat":"40.1885281","lon":"29.0609636","city":"Bursa","action":"35","events":"3"} ROW 4: {"lat":"41.0082376","lon":"28.9783589","city":"Istanbul","action":"20","events":"431"}
SQL: SELECT city,country,sum(events) ev FROM `joe` where country like 'Izmir' 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 'Izmir' and action like '{$action_string}_%' group by 1,2 order by ev desc limit 1 ROWS: 0SQL: SELECT * FROM joe where lower(city) like 'Izmir' and country like 'Turkey' 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 'Izmir' order by events desc limit 1 ) b on a.country = b.country_2 where country_2 is not null and city not like 'Izmir' and city not like '(not set)' group by 1 order by 2 desc ) yo limit 25 ROWS: 14 ROW 0: {"city":"Istanbul"} ROW 1: {"city":"Ankara"} ROW 2: {"city":"Antalya"} ROW 3: {"city":"Denizli"} ROW 4: {"city":"Samsun"} ROW 5: {"city":"Kayseri"} ROW 6: {"city":"Fethiye"} ROW 7: {"city":"Bursa"} ROW 8: {"city":"Adana"} ROW 9: {"city":"Gebze"}Istanbul - Ankara - Antalya - Denizli - Samsun - Kayseri - Fethiye - Bursa - Adana - Gebze - Mersin - Sanliurfa - Canakkale - Manisa -
SQL: SELECT * FROM joe_serp WHERE city like 'Izmir' ROWS: 0
SQL: SELECT city from ( SELECT city,sum(events) FROM joe WHERE city not like '(not set)' and city not like 'Izmir' group by 1 order by 2 desc limit 100) c ORDER BY RAND() limit 20 ROWS: 20 ROW 0: {"city":"Los Angeles"} ROW 1: {"city":"Bucharest"} ROW 2: {"city":"Brighton"} ROW 3: {"city":"Burnaby"} ROW 4: {"city":"Houston"} ROW 5: {"city":"Chicago"} ROW 6: {"city":"Irvine"} ROW 7: {"city":"Birmingham"} ROW 8: {"city":"Sofia"} ROW 9: {"city":"Austin"}Tipping in Tallinn , Tipping in Nottingham , Tipping in Orlando , Tipping in Riga , Tipping in Oslo Municipality , Tipping in Helsinki , Tipping in Atlanta , Tipping in Christchurch , Tipping in Berlin , Tipping in Edmonton , Tipping in Phoenix , Tipping in Washington , Tipping in San Jose , Tipping in Honolulu , Tipping in The Hague , Tipping in Sofia , Tipping in Hamburg , Tipping in Miami , Tipping in Ottawa , Tipping in Edinburgh ,