Loading...
「ツール」は右上に移動しました。
利用したサーバー: wtserver3
1いいね 8回再生

Top 5 Actions on Apple Platforms in November 2020 || Day14 of #21DaysOfQuerying

Welcome to another SQL tutorial! In this video, we analyze user actions performed on Apple platforms (iPhone, iPad) during November 2020 using PostgreSQL.

🔍 Problem Statement:
We have an events table that records user actions on various platforms. The task is to determine the top 5 actions performed on Apple platforms (iPhone, iPad) in November 2020 and rank them. If two actions are performed equally, they should have the same rank.

📊 Tables Overview:

events: Contains user_id, created_at, action, and platform.
👨‍💻 SQL Concepts Covered:

Filtering data based on date and platform.
Aggregating data with COUNT().
Ranking results using DENSE_RANK().
Using Common Table Expressions (CTEs) for query organization.
💡 Key Learning Points:

How to filter data for specific date ranges.
Using the COUNT() function to aggregate data.
Leveraging DENSE_RANK() to assign ranks based on the count of actions.
Structuring complex queries with CTEs.
📚 Example Data:
We will walk through the setup of the events table with example data to illustrate how the query works in a real-world scenario. You’ll see how to create the table, insert data, and execute the query in PostgreSQL.

🔧 Query Breakdown:

Step 1: Filter actions performed on iPhone and iPad during November 2020.
Step 2: Count the occurrences of each action.
Step 3: Rank the actions based on their counts using DENSE_RANK().
Step 4: Limit the results to the top 5 actions.
📈 Output:
The final output will display the action and its rank in ascending order. Actions performed equally will share the same rank.

📺 Watch the Video:
Join us as we write and execute the SQL query step-by-step. By the end of this tutorial, you’ll be able to apply these techniques to similar problems and enhance your SQL skills.




Github
github.com/ASR373

Youtube
   / @adithsreeram  

LinkedIn
www.linkedin.com/in/adithsreeram/

Website
www.adithnadar.wixsite.com/home







#SQL #PostgreSQL #SQLTutorial #DataScience #Database #WindowFunctions #SQLQueries #ApplePlatforms #November2020 #SQLAnalytics #BigData #DataAnalysis #DataEngineering #DataVisualization #LearnSQL #SQLServer #DatabaseManagement #SQLTraining #DataScienceTutorial #TechTutorial #Programming #Coding #TechEducation #QueryOptimization #SQLPerformance #DataMining #DataInsights #BusinessIntelligence #BI #SQLLearning #SQLDeveloper #SQLCode #DatabaseQuery #TechSkills #SQLCourse #SQLFunctions #SQLSyntax #SQLJoin #SQLAggregateFunctions #SQLWindowFunctions #SQLRanking #SQLExamples #SQLPractice #SQLTips #DataAnalyst #DataWrangling #PostgresSQL #DatabaseDesign #DatabaseDevelopment #DataQuery #DataProgramming #TechLearning #CodeWithMe #TechTips #TechTutorials #LearnToCode #CodeNewbie #SQLBeginners #AdvancedSQL #SQLChallenges #SQLForBeginners #DataTech #SQLCommunity #DataTricks #DatabaseTips #SQLBasics #TechContent #DataJourney #SQLExperts #TechTalk #TechGuide #SQLFundamentals #SQLMastery #DatabaseTech #TechSQL #PostgresTips #PostgresTutorial #PostgresFunctions #PostgresDatabase #DataPros #QueryMaster #QuerySkills #SQLExperts #SQLTipsAndTricks #DataScienceCommunity #TechLearningPath #TechSkillsBoost #DataScienceSkills #TechJourney #SQLJourney #DataCareer #TechCareer #TechContentCreator #TechYouTube #YouTubeTech #SQLYouTube

コメント