├── Convoy_lane.sql ├── HBO_Count_Time_Duration.sql ├── L 196 Delete Duplicated Emails.sql ├── L 197 Rising Temperature.md ├── L 262 Trips and Users.md ├── L 569 Median Employee Salary.md ├── L 570 Managers with at least 5 Direct Reports.md ├── L 571 Find Median Given Frequency of Numbers.md ├── L 574 Winning Candidate.md ├── L 577 Employee Bonus.md ├── L 578 Get Highest Answer Rate.sql ├── L 596 Classes More Than 5 Students.md ├── L 601 Human Traffic of Stadium.sql ├── L 620 Not Boring Movies.md ├── L 626 Exchange Seats.md ├── L 627 Swap Salary.md ├── L1083_Sales_Analysis.sql ├── L1107_New Users Daily Count.sql ├── L1164_Product Price at a Given Date.sql ├── L1179_ Reformat Department Table.sql ├── L1204_Last Person to Fit in the Elevator.sql ├── L1212_Team_Scores_in_Football_Tournament.sql ├── L1264_Page Recommendations.sql ├── L1321_Restaurant Growth.sql ├── L175 Combine Two Tables.md ├── L176 Second Highest Salary.md ├── L178 Rank Scores.sql ├── L180 Consecutive Numbers.md ├── L181 Emplyee Earning More Than Their Manager.md ├── L182 Duplicate Emails.md ├── L183 Customers Who Never Order.md ├── L184 Department Highest Salary.md ├── L185 Department Top Three Salaries.sql ├── L534_Game_Play_Analysis III.sql ├── L550_Game Play Analysis IV.sql ├── L579_Find Cumulative Salary of an Employee.sql ├── L580_Count Student Number in Departments.sql ├── L584_Find_Customer_Referee.sql ├── L585_Investments in 2016.sql ├── L597_Friend Requests I: Overall Acceptance Rate.sql ├── L602_Friend Requests II: Who Has the Most FriendsII.py ├── L603_Consecutive_Available_Seats.sql ├── L607_Sales_Person.sql ├── L608_Tree_Node.sql ├── L610_Triangle_Judgement.sql ├── L612_Shortest Distance in a Plane.sql ├── L613_Shortest Distance in a Line .sql ├── L614_Second_Degree_Follower.sql ├── L615_Average Salary: Departments VS Company.sql ├── L618_Students Report By Geography.sql ├── L619_Biggest_Single_Number.sql ├── README.md ├── SQL_Functions ├── Date_function.sql ├── Delete_Duplicated_Two_Cases.sql ├── Different_Joins_Definition ├── Row_Number().sql ├── SQL_Rank_Function_Example.sql ├── Substring_CharIndex_use.sql ├── Union_VS_Union_All ├── With_AS_Syntax.sql └── window_function_aggregation_cumulation.sql ├── Second_High_Salary_In_Each_Dept.sql ├── Wayfair_Company_Export_Import.sql └── replace_null_value_with_value_previous_value.sql /Convoy_lane.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/Convoy_lane.sql -------------------------------------------------------------------------------- /HBO_Count_Time_Duration.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/HBO_Count_Time_Duration.sql -------------------------------------------------------------------------------- /L 196 Delete Duplicated Emails.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 196 Delete Duplicated Emails.sql -------------------------------------------------------------------------------- /L 197 Rising Temperature.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 197 Rising Temperature.md -------------------------------------------------------------------------------- /L 262 Trips and Users.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 262 Trips and Users.md -------------------------------------------------------------------------------- /L 569 Median Employee Salary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 569 Median Employee Salary.md -------------------------------------------------------------------------------- /L 570 Managers with at least 5 Direct Reports.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 570 Managers with at least 5 Direct Reports.md -------------------------------------------------------------------------------- /L 571 Find Median Given Frequency of Numbers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 571 Find Median Given Frequency of Numbers.md -------------------------------------------------------------------------------- /L 574 Winning Candidate.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 574 Winning Candidate.md -------------------------------------------------------------------------------- /L 577 Employee Bonus.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 577 Employee Bonus.md -------------------------------------------------------------------------------- /L 578 Get Highest Answer Rate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 578 Get Highest Answer Rate.sql -------------------------------------------------------------------------------- /L 596 Classes More Than 5 Students.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 596 Classes More Than 5 Students.md -------------------------------------------------------------------------------- /L 601 Human Traffic of Stadium.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 601 Human Traffic of Stadium.sql -------------------------------------------------------------------------------- /L 620 Not Boring Movies.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 620 Not Boring Movies.md -------------------------------------------------------------------------------- /L 626 Exchange Seats.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 626 Exchange Seats.md -------------------------------------------------------------------------------- /L 627 Swap Salary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L 627 Swap Salary.md -------------------------------------------------------------------------------- /L1083_Sales_Analysis.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1083_Sales_Analysis.sql -------------------------------------------------------------------------------- /L1107_New Users Daily Count.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1107_New Users Daily Count.sql -------------------------------------------------------------------------------- /L1164_Product Price at a Given Date.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1164_Product Price at a Given Date.sql -------------------------------------------------------------------------------- /L1179_ Reformat Department Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1179_ Reformat Department Table.sql -------------------------------------------------------------------------------- /L1204_Last Person to Fit in the Elevator.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1204_Last Person to Fit in the Elevator.sql -------------------------------------------------------------------------------- /L1212_Team_Scores_in_Football_Tournament.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1212_Team_Scores_in_Football_Tournament.sql -------------------------------------------------------------------------------- /L1264_Page Recommendations.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1264_Page Recommendations.sql -------------------------------------------------------------------------------- /L1321_Restaurant Growth.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L1321_Restaurant Growth.sql -------------------------------------------------------------------------------- /L175 Combine Two Tables.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L175 Combine Two Tables.md -------------------------------------------------------------------------------- /L176 Second Highest Salary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L176 Second Highest Salary.md -------------------------------------------------------------------------------- /L178 Rank Scores.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L178 Rank Scores.sql -------------------------------------------------------------------------------- /L180 Consecutive Numbers.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L180 Consecutive Numbers.md -------------------------------------------------------------------------------- /L181 Emplyee Earning More Than Their Manager.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L181 Emplyee Earning More Than Their Manager.md -------------------------------------------------------------------------------- /L182 Duplicate Emails.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L182 Duplicate Emails.md -------------------------------------------------------------------------------- /L183 Customers Who Never Order.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L183 Customers Who Never Order.md -------------------------------------------------------------------------------- /L184 Department Highest Salary.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L184 Department Highest Salary.md -------------------------------------------------------------------------------- /L185 Department Top Three Salaries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L185 Department Top Three Salaries.sql -------------------------------------------------------------------------------- /L534_Game_Play_Analysis III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L534_Game_Play_Analysis III.sql -------------------------------------------------------------------------------- /L550_Game Play Analysis IV.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L550_Game Play Analysis IV.sql -------------------------------------------------------------------------------- /L579_Find Cumulative Salary of an Employee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L579_Find Cumulative Salary of an Employee.sql -------------------------------------------------------------------------------- /L580_Count Student Number in Departments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L580_Count Student Number in Departments.sql -------------------------------------------------------------------------------- /L584_Find_Customer_Referee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L584_Find_Customer_Referee.sql -------------------------------------------------------------------------------- /L585_Investments in 2016.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L585_Investments in 2016.sql -------------------------------------------------------------------------------- /L597_Friend Requests I: Overall Acceptance Rate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L597_Friend Requests I: Overall Acceptance Rate.sql -------------------------------------------------------------------------------- /L602_Friend Requests II: Who Has the Most FriendsII.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L602_Friend Requests II: Who Has the Most FriendsII.py -------------------------------------------------------------------------------- /L603_Consecutive_Available_Seats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L603_Consecutive_Available_Seats.sql -------------------------------------------------------------------------------- /L607_Sales_Person.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L607_Sales_Person.sql -------------------------------------------------------------------------------- /L608_Tree_Node.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L608_Tree_Node.sql -------------------------------------------------------------------------------- /L610_Triangle_Judgement.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L610_Triangle_Judgement.sql -------------------------------------------------------------------------------- /L612_Shortest Distance in a Plane.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L612_Shortest Distance in a Plane.sql -------------------------------------------------------------------------------- /L613_Shortest Distance in a Line .sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L613_Shortest Distance in a Line .sql -------------------------------------------------------------------------------- /L614_Second_Degree_Follower.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L614_Second_Degree_Follower.sql -------------------------------------------------------------------------------- /L615_Average Salary: Departments VS Company.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L615_Average Salary: Departments VS Company.sql -------------------------------------------------------------------------------- /L618_Students Report By Geography.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L618_Students Report By Geography.sql -------------------------------------------------------------------------------- /L619_Biggest_Single_Number.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/L619_Biggest_Single_Number.sql -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/README.md -------------------------------------------------------------------------------- /SQL_Functions/Date_function.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Date_function.sql -------------------------------------------------------------------------------- /SQL_Functions/Delete_Duplicated_Two_Cases.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Delete_Duplicated_Two_Cases.sql -------------------------------------------------------------------------------- /SQL_Functions/Different_Joins_Definition: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Different_Joins_Definition -------------------------------------------------------------------------------- /SQL_Functions/Row_Number().sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Row_Number().sql -------------------------------------------------------------------------------- /SQL_Functions/SQL_Rank_Function_Example.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/SQL_Rank_Function_Example.sql -------------------------------------------------------------------------------- /SQL_Functions/Substring_CharIndex_use.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Substring_CharIndex_use.sql -------------------------------------------------------------------------------- /SQL_Functions/Union_VS_Union_All: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/Union_VS_Union_All -------------------------------------------------------------------------------- /SQL_Functions/With_AS_Syntax.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/With_AS_Syntax.sql -------------------------------------------------------------------------------- /SQL_Functions/window_function_aggregation_cumulation.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/SQL_Functions/window_function_aggregation_cumulation.sql -------------------------------------------------------------------------------- /Second_High_Salary_In_Each_Dept.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/Second_High_Salary_In_Each_Dept.sql -------------------------------------------------------------------------------- /Wayfair_Company_Export_Import.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/Wayfair_Company_Export_Import.sql -------------------------------------------------------------------------------- /replace_null_value_with_value_previous_value.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/SimonFans/SQL/HEAD/replace_null_value_with_value_previous_value.sql --------------------------------------------------------------------------------