123456789101112131415161718192021222324 |
- select
- A.query, A.clicks, A.ctr, A.impressions, A.weeknum,
- B.weeknum, B.clicks, B.ctr, B.impressions,
- ((A.clicks-B.clicks) / B.clicks)*100 as clicks_growth
- from
- ((select query, clicks, ctr, impressions, weeknum
- from hhh.hhh_weekly_keywords
- where weeknum=26) as A
- inner join (select query, clicks, ctr, impressions, weeknum from hhh.hhh_weekly_keywords where weeknum=25) as B
- on A.query=B.query)
- order by
- clicks_growth desc
- limit 20;
|