SUM() OVER (ORDER BY...) считает не то, что вы думаете: кадр оконной функции

Привет, Хабр! SUM() OVER (ORDER BY ...) часто выглядит как очевидный способ посчитать нарастающий итог, пока в данных не появляются одинаковые значения ключа сортировки. В этот момент результат начинает «прыгать», LAST_VALUE возвращает текущую строку, а запрос формально остаётся корректным. В статье разбираем скрытую причину таких сюрпризов — кадр оконной функции: как база подставляет его по умолчанию, чем ROWS отличается от RANGE и какие детали стоит проверять, чтобы аналитические SQL‑запросы считали именно то, что вы ожидали.

https://habr.com/ru/companies/otus/articles/1036212/

#SQL #оконные_функции #window_functions #ROWS #RANGE #PostgreSQL #нарастающий_итог #LAST_VALUE #кадр_окна #аналитические_запросы

SUM() OVER (ORDER BY...) считает не то, что вы думаете: кадр оконной функции

Привет, Хабр! Оконные функции — главный инструмент аналитика в SQL: нарастающие итоги, ранги, скользящие средние, сравнение строки с соседями. И почти каждый, кто ими пользуется,...

Хабр

Why Incline Rows Matter? 🤔

Treat the incline row as a controlled tension-building movement, not a momentum lift, and it can be a strong tool for improving posture, back thickness, and better mind-muscle connection.

#incline #rows #weightlifting #strengthtraining #onlinecoach

Essential Tips for Dumbbell Single Arm Rows 📌

👉 Set your position first

👉 Keep your spine neutral

👉 Pull with your elbow, not your hand

👉 Do not rotate your torso

#dumbbell #rows #back #lats #onlinecoach #personaltrainer #lgbtq #gay

Dumbbell incline rows are a great way to train the upper back with more control and less lower back involvement. 🔄

The bench gives you support, which makes it easier to focus on the muscles doing the work instead of turning the movement into a body swing.

#dumbbell #rows #weightlifting #strengthtraining #onlinecoach

Alright, let's nail this Linear Algebra concept!

Matrix multiplication combines rows of the first matrix (A) with columns of the second (B). Ex: For A (m x n) & B (n x p), A*B results in an (m x p) matrix. Pro-Tip: #cols in A MUST match #rows in B for A*B to be possible! Order matters.

#LinearAlgebra #MatrixMath #STEM #StudyNotes

Key Tips 🔑 Smith Machine Bent Over Rows 🏋️

Smith machine bent-over row, great for lat + mid-back thickness because the bar path is fixed, so you can really lock in tension.

#smithmachine #rows #back #lats #fitnesstips

Single Arm Smith Machine Bent Over Row 1️⃣↕️

This is a sneaky-good movement for dialing in back engagement and fixing side-to-side imbalances.

✅ Think: pull shoulder blade back and down first, then row.

✅ Elbow path: Drive elbow toward your hip, not straight up.

✅ Top position: Elbow slightly past torso, lat fully shortened, pause 1–2 seconds.

✅ Lower slowly: 2–4 second eccentric to maximize mechanical tension.

#smithmachine #back #lats #rows #onlinecoach

🔥 Making the Most of Dumbbell Alternating Incline Rows 🔥

Understanding how to properly perform the Dumbbell Alternating Incline Back Row matters because it transforms this movement from a simple pulling exercise into a precision tool for muscular growth, posture, and shoulder health.

#dumbbell #back #rows #lats #upperbacks #traps #weightlifting #strengthtraining #tips #advice #howto #technique #onlinecoach #personaltrainer