Filter
Exclude
Time range
-
Near
🚀 SQL Tip: Defining a window frame with ROWS! Use ROWS BETWEEN start_point AND end_point to select rows relative to the current row: 1. n PRECEDING: n rows before 2. n FOLLOWING: n rows after 3. UNBOUNDED: All rows before/after #sql #data #dataengineering #windowfunction
2
2
15
1,007
Check out the rolling average for user 123…#WindowFunction What do you think is going on?
1
15
602
24 Jul 2024
I solved this hard category question from @Analyst_Builder in Python. @Analyst_Builder is the platform of @Alex_TheAnalyst and I really enjoyed solving this question. The question asked to get the highest score of student across various courses. And if the maximum score is same then we need to select the marks with smallest course id. Now, Let's discuss how I solved it: -- Firstly, I created a dataframe "df" to get the maximum score of each student from the original dataframe and to get that I grouped dataframe according to "student_name" and then used "transform" function to get "maximum" grades. -- Then I created another dataframe named as "df_merged" and stored the merged data between original dataframe and "df" by using inner join. This allowed me to get the effective and required maximum marks of student along with other columns like "student_name", "class_id" and "grades". -- Then I created a "rank" column in "df_merged" dataframe where I grouped the data according to grade and then performed "dense rank" operation on "class_id". This allowed me to first group the data with grades (I was having maximum grades already" and with dense rank on "class_id", I was able to rank then according to smallest "class_id" when grades were same. -- Then I created last dataframe named as "df_final" where I used ".query()" to select only those rows that have "1" as rank. -- Then I displayed the required columns and sorted them by "student_name". #DataAnalyst #python #pandas #AnalystBuilder #mysql #postgresql #sql #mysql #CTE #windowfunction #BusinessAnalyst #sql #dataanalysisus #techjobsus #BusinessIntelligence #BI #BusinessAnalytics #USJobs #USA #USHiring #USCompanies #AmericanBusiness #USTech #FinTech #HealthcareAnalytics #RetailAnalytics #MarketingAnalytics #Networking #ProfessionalDevelopment #CareerGrowth #IndustryInsights
1
6
1,353
16 Jul 2024
I solved this hard category question from @Analyst_Builder in MySQL which is a platform of @Alex_TheAnalyst. I really enjoyed solving it. The question asked to output the dates when temperature was higher than previous day. Let's discuss how I solved it: -- I used "LEAD()" window function to get the temperature and date of the next row from the current row as saved it as 'lead temperature' and 'lead temperature respectively' -- I also selected current date and temperature so that I can compare them in next steps. -- Now I created a CTE named 'required_dates' where I included all the columns namely - 'date', 'temperature', 'lead_date', 'lead_temperature' -- Then I used the query and selected 'lead_date' and included filtering where 'lead_temperature > temperature' #DataAnalyst #sql #mysql #CTE #windowfunction #BusinessAnalyst #python #pandas #sql #dataanalysisus #techjobsus #BusinessIntelligence #BI #BusinessAnalytics #USJobs #USA #USHiring #USCompanies #AmericanBusiness #USTech #FinTech #HealthcareAnalytics #RetailAnalytics #MarketingAnalytics #Networking #ProfessionalDevelopment #CareerGrowth #IndustryInsights
2
59
Day 20 Today I learnt about window function and how to use it to perform a calculation across a set of table rows using the Over Clause. #Day20 #30DaysOfSQL #WindowFunction #OverClause #Data
1
2
180
30 Apr 2024
I have finished both beginner and intermediate SQL projects from @TDataInitiative #TDI @DabereNnamani @The_Jonathaan #SQL #CTE #WindowFunction
1
3
13
564
Throwback- Mastering Pagination in Power BI Visuals using Window Functions: A Step-by-Step Guide, How to do it- youtube.com/watch?v=a_tgxuId… #PowerBI #Tutorial #WindowFunction #pagination #DAX #DataAnalysis #PowerQuery #LearnDAX #PowerBITutorials #PowerBITutorial
3
13
556
Mastering Pagination in Power BI Visuals using Window Functions: A Step-by-Step Guide, How to do it- youtube.com/watch?v=a_tgxuId… #PowerBI #Tutorial #WindowFunction #pagination #DAX #DataAnalysis #PowerQuery #LearnDAX #PowerBITutorials #PowerBITutorial

4
155
11 Apr 2023
Did you know about CTE or window functions? Do you know how to use them and how they can make your code readable and maintainable? Read our new blog post! buff.ly/3nSEimi #developer #postgresql #databases #observability #performance #metis #CTE #windowfunction

1
3
57
PySpark Tip ⚡ Remove consecutive rows with the same value 🪄 #PySpark #Databricks #Spark #DataEngineering #BigData #ETL #Programming #Python #WindowFunction #SQL
4
9
805
🗂Newly introduced INDEX function is awesome. Stay tuned for the upcoming video on this new function. #powerbi #dax #index #windowfunction 🚨 Subscribe to youtube.com/perytus
1
15
1,491
SQL Window Function Tip ⚡ What are the rows and range Between in a Frame Clause? It is used to determine the upper and lower bounds of the window. Extremely powerful because it enables you to include or exclude sets of rows! 🚀 #SQL #Programming #BigData #WindowFunction
2
6
223
Are you trying to get the latest/earliest event in a table of events? Use the ROW_NUMBER window function with ORDER BY the event creation time with QUALIFY row_num = 1. #SQL #dataengineering #windowfunction #dataprocessing
1
6
To finalize this great Window Function week, I created a comprehensive blog post on my website! 🚀 It will cover introductory concepts and demonstrate real-world examples with PySpark! Link in the first comment!👇🏻 #SQL #PySpark #DataEngineering #Spark #WindowFunction
2
2
2
SQL Window Function Tip ⚡ What is the rows and range Between in a Frame Clause? It is used to determine the upper and lower bounds of the window. Extremely powerful because it enables you to include or exclude sets of rows! 🚀 #SQL #Programming #BigData #WindowFunction #ETL
2
2
Can SQL window functions make your job easier? How can they do that? Better read our article! #SQL #WindowFunction 😎👇 learnsql.com/blog/who-should…
1
2
🔢 Have you ever needed to number the records in an SQL result set? 💡 Find out how SQL’s ROW_NUMBER function can help! Also learn about more online courses and articles that will develop your SQL window function skills. #SQL #WindowFunction #Resources #LearnSQL ⬇️Read more⬇️
1
2
#PickoftheWeek 🤔What is the secret of 10X faster window function calculation? 🙌Sliding window! ❤️Check how our #community member helped improve the performance of #WindowFunction. #OpenSource #TiDB hubs.ly/H0m_BdW0

3
Replying to @ash_chakraborty
I've written an article series on analytical functions: bi-solutions.gaussling.com/a… #sql #windowfunction #analyticalfunctions

1
1