да есть - селект такой у нее: SELECT user, reg_date, cnt, today() - reg_date AS current_lifeday, sumIf(usd, lifeday <= 0) AS ad_money_0, sumIf(usd, lifeday <= 1) AS ad_money_1, sumIf(usd, lifeday <= 3) AS ad_money_3, sumIf(usd, lifeday <= 7) AS ad_money_7, sumIf(usd, lifeday <= 30) AS ad_money_30, sumIf(usd, lifeday <= 60) AS ad_money_60, sumIf(usd, lifeday <= 180) AS ad_money_180, sumIf(usd, lifeday <= 365) AS ad_money_365, sumIf(usd, lifeday <= 730) AS ad_money_730, sumIf(usd, event_month = reg_month) AS ad_money_month, sum(usd) AS ad_money_total FROM log.ad_income_by_user_by_dates_applovin WHERE toDateTime(reg_date) BETWEEN $from AND $to GROUP BY user, reg_date, current_lifeday, cnt
Обсуждают сегодня