[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]

/ana/ - Analytics

Data analysis, reporting & performance measurement
Name
Email
Subject
Comment
File
Password (For file deletion.)

File: 1789457146035.jpg (278.7 KB, 1024x1024, img_1789457138084_y58ps6bo.jpg)ImgOps Exif Google Yandex

da067 No.2176

Always use
LAG
instead of trying to join tables back to themselves like a clown amateur. It's way cleaner for calculating day-over-day growth in your dashboarding layer.
SELECTdate,revenue,LAG(revenue) OVER (ORDER BY date) as prev_day_revFROM daily_sales


[Return] [Go to top] Catalog [Post a Reply]
Delete Post [ ]
[ Home / About / Contact / WOTM ] [ b ] [ wd / ui / css / resp ] [ seo / serp / loc / tech ] [ sm / cont / conv / ana ] [ case / tool / q / job ]