Filter
Exclude
Time range
-
Near
After yesterday at work I have realised that I really need to learn #SQL #WindowFunctions. I found a couple of videos but are there any books or websites that cover this so I can look later? (YouTube is banned at work.) Ideally having examples using AdventureWorks please. #SSMS
31
🚀 4 Window Functions Jo Har Backend Developer Ko Pata Hone Chahiye! Pehle purane tareeke se struggle karte the — self joins, multiple queries, temp tables… Ab ye 4 functions seekh lo toh life set hai: 1️⃣ ROW_NUMBER(), RANK(), DENSE_RANK() 2️⃣ LAG() & LEAD() — pichla/next value compare karne ke liye 3️⃣ Running Total with SUM() OVER() 4️⃣ PARTITION BY — group-wise magic Ek baar samajh aa gaya toh bahut saare complex queries ek line mein ho jayenge! 💯 Kaunsa function pe detailed video chahiye? Comment mein batao 👇 Follow @DevNotes_io for more real SQL & Backend tips! #SQL #WindowFunctions #BackendDeveloper #SQL #WindowFunctions #SQLTips #PostgreSQL #MySQL #BackendDeveloper #Database #TechHindi #CodingTips #DeveloperLife #SQLPerformance #DataEngineering #DevNotesIO
1
2
89
خلصنا أسبوع SQL كامل! 🔥 اليوم نجرب استعلام متقدم يجمع بين 3 أدوات قوية في سطر واحد: ✅ JOIN → لربط الجداول ✅ GROUP BY → لتلخيص البيانات ✅ Window Function → لحساب قيم متقدمة بدون فقدان الصفوف مثال عملي: حساب إجمالي المبيعات لكل عميل نسبة مبيعاته من إجمالي المنطقة اللي هو فيها. شارك الكود تحت في الردود 👇 وأنا أراجعه معاك خطوة بخطوة وأصحح أي خطأ. #SQL #تحليل_البيانات #داتا_أناليست #WindowFunctions #DataAnalyst
9
748
Want to rank rows within groups? Try this: RANK() OVER(PARTITION BY department ORDER BY salary DESC) Ranks employees by salary per department — ties included. Use DENSE_RANK() (no gaps) or ROW_NUMBER() (no ties) as needed. #SQL #WindowFunctions #Ranking
3
20
Example: SUM(sales) OVER(PARTITION BY region) ✅ Keeps all rows ✅ Shows total sales per region ✅ No GROUP BY needed Perfect for dashboards analytics 📊 #SQLTips #WindowFunctions
1
3
25
Window functions in SQL = magic ✨ They let you run totals, ranks, and comparisons without collapsing rows. Think OVER(PARTITION BY ...), not GROUP BY. Same data, more insights. #SQL #WindowFunctions #DataScience
1
3
29
movingWindowIndex(X, window) — generate sliding‑window index arrays for vectorized window operations! 🔢 Fixed‑length & dynamic‑length modes enable efficient rolling calculations without loops. #DolphinDB #WindowFunctions #Vectorization
3
12
16 Nov 2025
Crack even half of these and you’re already ahead of most candidates. 💪 This isn’t the full PDF 💌comment PDF to get the complete guide. #SQL #SQLInterview #DataAnalytics #DataEngineer #DataScience #QueryOptimization #WindowFunctions #CTE #Indexing #TechCareers #Upskill
5
4
1,177
Day 32 of SQL Learning I continued practiced on how to combine multiple window functions in one query to extract deeper insights. #SQL #DataAnalytics #LearningInPublic #100DaysOfSQL #WindowFunctions #TechJourney #StudentInTech
2
4
55
16 Jul 2025
Day 30 of #TheAIandDataStreak100 Deep-dived into SQL window functions today — RANK(), LEAD(), LAG(), FIRST_VALUE() & more. Game-changer for layered analytics without messy joins. SQL feels smarter now. #SQL #DataAnalytics #WindowFunctions #100daysofcodechallenge
1
3
40
SQL Tip: Rank vs Dense Rank vs Row Number Stop using ‘Rank’ blindly in SQL - here’s the difference between 3 powerful window functions. You probably mixed up these 3: 🏅 RANK() → Skips numbers if there’s a tie 🏅 DENSE_RANK() → No gaps in ranks 🏅 ROW_NUMBER() → Unique row ID per group Use RANK() for competitions, DENSE_RANK() when you don’t want missing numbers, and ROW_NUMBER() when order is key. SQL tricks that make or break interviews 🔥 #SQLTips #WindowFunctions #DataJobs #ShashTalks
1
2
113
💡Want to track monthly sales growth in SQL? This query: 📅 Groups by month 📈 Calculates running total sales 📊 Tracks running avg. price using window functions A clean way to spot trends & momentum over time! #SQL #DataAnalytics #WindowFunctions #DataViz #BusinessIntelligence
7
274
3 May 2025
🚀 Data Science Journey: Day 5/30 Focus: SQL Window Functions 🔹 ROW_NUMBER() – Unique row ranks 🔹 NTILE(n) – Split data into n groups 📌 Use with PARTITION BY ORDER BY for powerful analytics! #SQL #DataScience #100DaysOfCode #WindowFunctions #LearnSQL #SQLTips
5
141
Dropped a routine business problem into @OpenAI’s o3 and—without me nudging it—boom: 🔸 Suggested a SQL VIEW to blend sources 🔸 Used CTEs to keep logic swappable 🔸 Applied window functions for live roll-ups Zero PHP grinding, pure database speed. AI that optimizes before I even ask—chef’s kiss! 👩‍💻✨ #MySQL #CTE #WindowFunctions #Laravel #AI @sama @OpenAI
2
1
12
32,586
🚀 Window Functions no SQL: Dominando Análises Avançadas Como prometido no post de ontem, trago hoje um conteúdo especial sobre as Window Functions (WF) do SQL! 👇 Se você trabalha com bancos de dados, provavelmente já precisou calcular médias móveis, rankings ou totais acumulados sem perder detalhes das linhas originais. E agora, Daniel, o que fazer? É aí que entram as Window Functions! Diferente das funções agregadas comuns (SUM(), AVG(), COUNT()), que reduzem os dados a um único resultado, as Window Functions permitem fazer cálculos sobre um conjunto de linhas sem alterar a granularidade da consulta. 🔎 Principais Window Functions: ✔️ ROW_NUMBER() – Numera as linhas dentro de uma partição. ✔️ RANK() e DENSE_RANK() – Criam rankings, respeitando empates. ✔️ LEAD() e LAG() – Permitem acessar valores da linha anterior ou seguinte. ✔️ SUM() OVER() – Faz somas acumuladas dentro de uma partição. 💡 Vamos de exemplo prático? Manteremos o exemplo do post de ontem. Na consulta abaixo, utilizamos SUM() OVER(ORDER BY order_date ASC) para calcular o total acumulado de vendas por dia, sem perder a granularidade dos dados. Confira na imagem! Com o resultado, geramos: ◾ order_date: Data do pedido ◾ valor_total: Total de vendas no dia ◾ valor_acumulado: Soma acumulada das vendas ao longo do tempo 🔽 Nesse exemplo, é claramente perceptível o poder das Window Functions para análises avançadas. Se você ainda não as usa no dia a dia, recomendo explorar essa poderosa arma no mundo dos dados. 💬 Já conhecia esse recurso do SQL? Qual WF você mais usa? Compartilha aqui nos comentários! #SQL #AnáliseDeDados #Analytics #WindowFunctions
1
11
377
17 Mar 2025
Explain the differences between the following ranking functions: 1. ROW_NUMBER () 2. RANK () 3. DENSE_RANK () #WindowFunctions
1
7
292
Webinar: T-SQL Window Functions for Data Analysis The gaps and islands problem are common in data analysis. Join us for an introduction to the powerful concepts of window functions in T-SQL. #sqlserver #windowfunctions #tsql #dataanalysis mssqltips.com/sql-server-web…

1
3
283
28 Nov 2024
𝗪𝗮𝗻𝘁 𝘁𝗼 𝗹𝗲𝗮𝗿𝗻 𝘄𝗶𝗻𝗱𝗼𝘄 𝗳𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 𝗶𝗻 𝗦𝗤𝗟 𝗮𝘀 𝗮 𝗱𝗮𝘁𝗮 𝗮𝗻𝗮𝗹𝘆𝘀𝘁? Let me tell you about 2 window functions that are really interesting and you will be using them frequently as a data analyst. 𝗦𝗼, 𝘁𝗵𝗲 𝘁𝘄𝗼 𝘄𝗶𝗻𝗱𝗼𝘄 𝗳𝘂𝗻𝗰𝘁𝗶𝗼𝗻𝘀 𝘁𝗵𝗮𝘁 𝗜 𝗮𝗺 𝘁𝗮𝗹𝗸𝗶𝗻𝗴 𝗮𝗯𝗼𝘂𝘁 𝗮𝗿𝗲: • LAG() • LEAD() 𝗟𝗲𝘁'𝘀 𝘂𝗻𝗱𝗲𝗿𝘀𝘁𝗮𝗻𝗱 𝗯𝗼𝘁𝗵 𝗼𝗳 𝘁𝗵𝗲𝗺: 𝗟𝗔𝗚(): It simply fetches the previous row from the current one. You can pass the column/variable in the order by clause of the window section to perform LAG() according to your need. You can also partition the data in the "over" section of the windows function. Also, the first row of this function will show "NULL" as there will be no row before the first row. 𝗘𝘅𝗮𝗺𝗽𝗹𝗲: LAG(temp) over(order by temp_date) 𝗟𝗘𝗔𝗗(): It simply fetches you the next row from the current row. You can also use order by clause here according to your need. You can also partition the data in the "over" section of the windows function. Here, the last row/result of LEAD() function will show "NULL" as there is no row after the last now. 𝗘𝘅𝗮𝗺𝗽𝗹𝗲: LEAD(temp) over(order by temp_date) Also, tell me how you use LAG() and LEAD() window functions as a data analyst. Enjoy. Follow for more! #DataAnalyst #DataAnalytics #BusinessAnalyst #BusinessAnalytics #DataAnalysis #BusinessAnalysis #windowfunctions #US #UK #Europe #Singapore #Germany #SQL #Python #PowerBI #Excel #AmazonRedshift #ABTesting #SalesAnalyst #HealthcareAnalyst #MarketingAnalyst #FinancialAnalyst #SalesAnalysis #FinancialAnalysis #HealthcareAnalysis #MarketingAnalysis #RemoteDataAnalyst #RemoteWork #USRemote #UKRemote #EuropeRemote #SingaporeRemote
3
16
December Webinars ➡️ #SQLServer Load Testing #Storage Performance 📅 3 Dec | mssqltips.com/sql-server-web… ➡️ Tackling the Gaps & Islands Problem with #TSQL Window Functions 📅 19 Dec | mssqltips.com/sql-server-web… #loadtesting #dataanalysis #windowfunctions #businessintelligence #sqlbi
2
286