├── .gitattributes ├── LeetCode.png ├── Question Patterns ├── README.md ├── dump_file └── leetcodedb.sql ├── easy ├── 1050. Actors and Directors Who Cooperated At Least Three Times.sql ├── 1068. Product Sales Analysis I.sql ├── 1069. Product Sales Analysis II.sql ├── 1075. Project Employees I.sql ├── 1076. Project Employees II.sql ├── 1082. Sales Analysis I.sql ├── 1083. Sales Analysis II.sql ├── 1084. Sales Analysis III.sql ├── 1113.Reported Posts.sql ├── 1141. User Activity for the Past 30 Days I.sql ├── 1142. User Activity for the Past 30 Days II.sql ├── 1148. Article Views I.sql ├── 1173. Immediate Food Delivery I.sql ├── 1179. Reformat Department Table.sql ├── 1211. Queries Quality and Percentage.sql ├── 1241. Number of Comments per Post (Easy).sql ├── 1251. Average Selling Price (Easy).sql ├── 1280. Students and Examinations (Easy).sql ├── 1294. Weather Type in Each Country (Easy).sql ├── 1303. Find the Team Size (Easy).sql ├── 1322. Ads Performance (Easy).sql ├── 1327. List the Products Ordered in a Period (Easy).sql ├── 1350. Students With Invalid Departments (Easy).sql ├── 1378. Replace Employee ID With The Unique Identifier (Easy).sql ├── 1407. Top Travellers (Easy).sql ├── 1421. NPV Queries.sql ├── 1435. Create a Session Bar Chart (Easy).sql ├── 1484. Group Sold Products By The Date (Easy).sql ├── 1495. Friendly Movies Streamed Last Month (Easy).sql ├── 1511. Customer Order Frequency (Easy).sql ├── 1517. Find Users With Valid E-Mails (Easy).sql ├── 1527. Patients With a Condition (Easy).sql ├── 1543. Fix Product Name Format (Easy).sql ├── 1565. Unique Orders and Customers Per Month (Easy).sql ├── 1571. Warehouse Manager (Easy).sql ├── 1581. Customer Who Visited but Did Not Make Any Transactions (Easy).sql ├── 1587. Bank Account Summary II (Easy).sql ├── 1607. Sellers With No Sales (Easy).sql ├── 1623. All Valid Triplets That Can Represent a Country (Easy).sql ├── 1633. Percentage of Users Attended a Contest (Easy).sql ├── 1661. Average Time of Process per Machine (Easy).sql ├── 1667. Fix Names in a Table (Easy).sql ├── 1677. Product’s Worth Over Invoices (Easy).sql ├── 1683. Invalid Tweets (Easy).sql ├── 1693. Daily Leads and Partners (Easy).sql ├── 1729. Find Followers Count (Easy).sql ├── 1731. The Number of Employees Which Report to Each Employee (Easy).sql ├── 1741. Find Total Time Spent by Each Employee (Easy).sql ├── 175. Combine Two Tables.sql ├── 1757. Recyclable and Low Fat Products (Easy).sql ├── 1777. Product’s Price for Each Store (Easy).sql ├── 1789. Primary Department for Each Employee (Easy).sql ├── 1809. Ad-Free Sessions (Easy).sql ├── 181. Employees Earning More Than Their Managers.sql ├── 182. Duplicate Emails.sql ├── 1821. Find Customers With Positive Revenue this Year (Easy).sql ├── 183. Customers Who Never Order.sql ├── 1853. Convert Date Format (Easy).sql ├── 1873. Calculate Special Bonus (Easy).sql ├── 1890. The Latest Login in 2020 (Easy).sql ├── 1939. Users That Actively Request Confirmation Messages (Easy).sql ├── 196. Delete Duplicate Emails.sql ├── 1965. Employees With Missing Information (Easy).sql ├── 197. Rising Temperature.sql ├── 1978. Employees Whose Manager Left the Company (Easy).sql ├── 2026. Low-Quality Problems (Easy).sql ├── 2072. The Winner University (Easy).sql ├── 2082. The Number of Rich Customers (Easy).sql ├── 2205. The Number of Users That Are Eligible for Discount (Easy).sql ├── 2230. The Users That Are Eligible for Discount (Easy).sql ├── 2329. Product Sales Analysis V (Easy).sql ├── 2339. All the Matches of the League (Easy).sql ├── 2356. Number of Unique Subjects Taught by Each Teacher (Easy).sql ├── 2377. Sort the Olympic Table (Easy).sql ├── 511. Game Play Analysis I.sql ├── 512. Game Play Analysis II.sql ├── 577. Employee Bonus.sql ├── 584. Find Customer Referee.sql ├── 586. Customer Placing the Largest Number of Orders.sql ├── 595. Big Countries.sql ├── 596. Classes More Than 5 Students.sql ├── 597. Friend Requests I: Overall Acceptance Rate.sql ├── 603. Consecutive Available Seats.sql ├── 607.Sales Person.sql ├── 610. Triangle Judgement.sql ├── 613. Shortest Distance in a Line.sql ├── 619. Biggest Single Number.sql ├── 620. Not Boring Movies.sql └── 627. Swap Salary.sql ├── hard ├── 1097. Game Play Analysis V.sql ├── 1127. User Purchase Platform.sql ├── 1159. Market Analysis II.sql ├── 1194. Tournament Winners.sql ├── 1225. Report Contiguous Dates.sql ├── 1336. Number of Transactions per Visit.sql ├── 1384. Total Sales Amount by Year.txt ├── 1412. Find the Quiet Students in All Exams.sql ├── 1479. Sales by Day of the Week.sql ├── 1635. Hopper Company Queries I.sql ├── 1645. Hopper Company Queries II.sql ├── 1651. Hopper Company Queries III.sql ├── 1767. Find the Subtasks That Did Not Execute.sql ├── 185. Department Top Three Salaries.sql ├── 1892. Page Recommendations II (Hard).sql ├── 1917. Leetcodify Friends Recommendations (Hard).sql ├── 1919. Leetcodify Similar Friends (Hard).sql ├── 1972. First and Last Call On the Same Day (Hard).sql ├── 2004. The Number of Seniors and Juniors to Join the Company (Hard).sql ├── 2010. The Number of Seniors and Juniors to Join the Company II (Hard).sql ├── 2118. Build the Equation (Hard).sql ├── 2173. Longest Winning Streak (Hard).sql ├── 2199. Finding the Topic of Each Post (Hard).sql ├── 2252. Dynamic Pivoting of a Table (Hard).sql ├── 2253. Dynamic Unpivoting of a Table (Hard).sql ├── 2362. Generate the Invoice (Hard).sql ├── 2474. Customers With Strictly Increasing Purchases (Hard).sql ├── 262. Trips and Users.sql ├── 569. Median Employee Salary.sql ├── 571. Find Median Given Frequency of Numbers.sql ├── 579. Find Cumulative Salary of an Employee.sql ├── 601. Human Traffic of Stadium.sql ├── 615. Average Salary: Departments VS Company.sql └── 618. Students Report By Geography.sql └── medium ├── 1045. Customers Who Bought All Products.sql ├── 1070. Product Sales Analysis III.sql ├── 1077. Project Employees III.sql ├── 1098. Unpopular Books.sql ├── 1107. New Users Daily Count.sql ├── 1112. Highest Grade For Each Student.sql ├── 1126. Active Businesses.sql ├── 1132. Reported Posts II.sql ├── 1149. Article Views II.sql ├── 1158. Market Analysis I.sql ├── 1164. Product Price at a Given Date.sql ├── 1174. Immediate Food Delivery II.sql ├── 1193. Monthly Transactions I.sql ├── 1204. Last Person to Fit in the Elevator.sql ├── 1205. Monthly Transactions II.sql ├── 1212. Team Scores in Football Tournament.sql ├── 1264. Page Recommendations.sql ├── 1270. All People Report to the Given Manager.sql ├── 1285. Find the Start and End Number of Continuous Ranges.sql ├── 1308. Running Total for Different Genders.sql ├── 1321. Restaurant Growth.sql ├── 1341. Movie Rating.sql ├── 1355. Activity Participants.sql ├── 1364. Number of Trusted Contacts of a Customer.sql ├── 1393. Capital Gain Loss.sql ├── 1398. Customers Who Bought Products A and B but Not C.sql ├── 1440. Evaluate Boolean Expression.sql ├── 1445. Apples & Oranges.sql ├── 1454. Active Users.sql ├── 1459. Rectangles Area.sql ├── 1468. Calculate Salaries.sql ├── 1501. Countries You Can Safely Invest In.sql ├── 1532. The Most Recent Three Orders.sql ├── 1549. The Most Recent Orders for Each Product.sql ├── 1555. Bank Account Summary.sql ├── 1596. The Most Frequently Ordered Products for Each Customer.sql ├── 1613. Find the Missing IDs.sql ├── 1699. Number of Calls Between Two Persons.sql ├── 1709. Biggest Window Between Visits.sql ├── 1715. Count Apples and Oranges.sql ├── 1747. Leetflex Banned Accounts.sql ├── 176. Second Highest Salary.sql ├── 177. Nth Highest Salary.sql ├── 178. Rank Scores.sql ├── 1783. Grand Slam Titles.sql ├── 180. Consecutive Numbers.sql ├── 1811. Find Interview Candidates (Medium).sql ├── 1831. Maximum Transaction Each Day (Medium).sql ├── 184. Department Highest Salary.sql ├── 1841. League Statistics (Medium).sql ├── 1843. Suspicious Bank Accounts (Medium).sql ├── 1867. Orders With Maximum Quantity Above Average (Medium).sql ├── 1875. Group Employees of the Same Salary (Medium).sql ├── 1907. Count Salary Categories (Medium).sql ├── 1934. Confirmation Rate (Medium).sql ├── 1949. Strong Friendship (Medium).sql ├── 1951. All the Pairs With the Maximum Number of Common Followers (Medium).sql ├── 1988. Find Cutoff Score for Each School (Medium).sql ├── 1990. Count the Number of Experiments (Medium).sql ├── 2020. Number of Accounts That Did Not Stream (Medium).sql ├── 2041. Accepted Candidates From the Interviews (Medium).sql ├── 2051. The Category of Each Member in the Store (Medium).sql ├── 2066. Account Balance (Medium).sql ├── 2084. Drop Type 1 Orders for Customers With Type 0 Orders (Medium).sql ├── 2112. The Airport With the Most Traffic (Medium).sql ├── 2142. The Number of Passengers in Each Bus I (Medium).sql ├── 2159. Order Two Columns Independently (Medium).sql ├── 2175. The Change in Global Rankings (Medium).sql ├── 2228. Users With Two Purchases Within Seven Days (Medium).sql ├── 2238. Number of Times a Driver Was a Passenger (Medium).sql ├── 2292. Products With Three or More Orders in Two Consecutive Years (Medium).sql ├── 2298. Tasks Count in the Weekend (Medium).sql ├── 2308. Arrange Table by Gender (Medium).sql ├── 2314. The First Day of the Maximum Recorded Degree in Each City (Medium).sql ├── 2324. Product Sales Analysis IV (Medium).sql ├── 2346. Compute the Rank as a Percentage (Medium).sql ├── 2372. Calculate the Influence of Each Salesperson (Medium).sql ├── 2388. Change Null Values in a Table to the Previous Value (Medium).sql ├── 2394. Employees With Deductions (Medium).sql ├── 534. Game Play Analysis III.sql ├── 550. Game Play Analysis IV.sql ├── 570. Managers with at Least 5 Direct Reports.sql ├── 574. Winning Candidate.sql ├── 578. Get Highest Answer Rate Question.sql ├── 580. Count Student Number in Departments.sql ├── 585. Investments in 2016.sql ├── 602. Friend Requests II: Who Has the Most Friends.sql ├── 608. Tree Node.sql ├── 612. Shortest Distance in a Plane.sql ├── 614. Second Degree Follower.sql └── 626. Exchange Seats.sql /.gitattributes: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/.gitattributes -------------------------------------------------------------------------------- /LeetCode.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/LeetCode.png -------------------------------------------------------------------------------- /Question Patterns: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/Question Patterns -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/README.md -------------------------------------------------------------------------------- /dump_file/leetcodedb.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/dump_file/leetcodedb.sql -------------------------------------------------------------------------------- /easy/1050. Actors and Directors Who Cooperated At Least Three Times.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1050. Actors and Directors Who Cooperated At Least Three Times.sql -------------------------------------------------------------------------------- /easy/1068. Product Sales Analysis I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1068. Product Sales Analysis I.sql -------------------------------------------------------------------------------- /easy/1069. Product Sales Analysis II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1069. Product Sales Analysis II.sql -------------------------------------------------------------------------------- /easy/1075. Project Employees I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1075. Project Employees I.sql -------------------------------------------------------------------------------- /easy/1076. Project Employees II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1076. Project Employees II.sql -------------------------------------------------------------------------------- /easy/1082. Sales Analysis I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1082. Sales Analysis I.sql -------------------------------------------------------------------------------- /easy/1083. Sales Analysis II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1083. Sales Analysis II.sql -------------------------------------------------------------------------------- /easy/1084. Sales Analysis III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1084. Sales Analysis III.sql -------------------------------------------------------------------------------- /easy/1113.Reported Posts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1113.Reported Posts.sql -------------------------------------------------------------------------------- /easy/1141. User Activity for the Past 30 Days I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1141. User Activity for the Past 30 Days I.sql -------------------------------------------------------------------------------- /easy/1142. User Activity for the Past 30 Days II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1142. User Activity for the Past 30 Days II.sql -------------------------------------------------------------------------------- /easy/1148. Article Views I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1148. Article Views I.sql -------------------------------------------------------------------------------- /easy/1173. Immediate Food Delivery I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1173. Immediate Food Delivery I.sql -------------------------------------------------------------------------------- /easy/1179. Reformat Department Table.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1179. Reformat Department Table.sql -------------------------------------------------------------------------------- /easy/1211. Queries Quality and Percentage.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1211. Queries Quality and Percentage.sql -------------------------------------------------------------------------------- /easy/1241. Number of Comments per Post (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1241. Number of Comments per Post (Easy).sql -------------------------------------------------------------------------------- /easy/1251. Average Selling Price (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1251. Average Selling Price (Easy).sql -------------------------------------------------------------------------------- /easy/1280. Students and Examinations (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1280. Students and Examinations (Easy).sql -------------------------------------------------------------------------------- /easy/1294. Weather Type in Each Country (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1294. Weather Type in Each Country (Easy).sql -------------------------------------------------------------------------------- /easy/1303. Find the Team Size (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1303. Find the Team Size (Easy).sql -------------------------------------------------------------------------------- /easy/1322. Ads Performance (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1322. Ads Performance (Easy).sql -------------------------------------------------------------------------------- /easy/1327. List the Products Ordered in a Period (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1327. List the Products Ordered in a Period (Easy).sql -------------------------------------------------------------------------------- /easy/1350. Students With Invalid Departments (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1350. Students With Invalid Departments (Easy).sql -------------------------------------------------------------------------------- /easy/1378. Replace Employee ID With The Unique Identifier (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1378. Replace Employee ID With The Unique Identifier (Easy).sql -------------------------------------------------------------------------------- /easy/1407. Top Travellers (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1407. Top Travellers (Easy).sql -------------------------------------------------------------------------------- /easy/1421. NPV Queries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1421. NPV Queries.sql -------------------------------------------------------------------------------- /easy/1435. Create a Session Bar Chart (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1435. Create a Session Bar Chart (Easy).sql -------------------------------------------------------------------------------- /easy/1484. Group Sold Products By The Date (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1484. Group Sold Products By The Date (Easy).sql -------------------------------------------------------------------------------- /easy/1495. Friendly Movies Streamed Last Month (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1495. Friendly Movies Streamed Last Month (Easy).sql -------------------------------------------------------------------------------- /easy/1511. Customer Order Frequency (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1511. Customer Order Frequency (Easy).sql -------------------------------------------------------------------------------- /easy/1517. Find Users With Valid E-Mails (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1517. Find Users With Valid E-Mails (Easy).sql -------------------------------------------------------------------------------- /easy/1527. Patients With a Condition (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1527. Patients With a Condition (Easy).sql -------------------------------------------------------------------------------- /easy/1543. Fix Product Name Format (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1543. Fix Product Name Format (Easy).sql -------------------------------------------------------------------------------- /easy/1565. Unique Orders and Customers Per Month (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1565. Unique Orders and Customers Per Month (Easy).sql -------------------------------------------------------------------------------- /easy/1571. Warehouse Manager (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1571. Warehouse Manager (Easy).sql -------------------------------------------------------------------------------- /easy/1581. Customer Who Visited but Did Not Make Any Transactions (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1581. Customer Who Visited but Did Not Make Any Transactions (Easy).sql -------------------------------------------------------------------------------- /easy/1587. Bank Account Summary II (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1587. Bank Account Summary II (Easy).sql -------------------------------------------------------------------------------- /easy/1607. Sellers With No Sales (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1607. Sellers With No Sales (Easy).sql -------------------------------------------------------------------------------- /easy/1623. All Valid Triplets That Can Represent a Country (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1623. All Valid Triplets That Can Represent a Country (Easy).sql -------------------------------------------------------------------------------- /easy/1633. Percentage of Users Attended a Contest (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1633. Percentage of Users Attended a Contest (Easy).sql -------------------------------------------------------------------------------- /easy/1661. Average Time of Process per Machine (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1661. Average Time of Process per Machine (Easy).sql -------------------------------------------------------------------------------- /easy/1667. Fix Names in a Table (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1667. Fix Names in a Table (Easy).sql -------------------------------------------------------------------------------- /easy/1677. Product’s Worth Over Invoices (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1677. Product’s Worth Over Invoices (Easy).sql -------------------------------------------------------------------------------- /easy/1683. Invalid Tweets (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1683. Invalid Tweets (Easy).sql -------------------------------------------------------------------------------- /easy/1693. Daily Leads and Partners (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1693. Daily Leads and Partners (Easy).sql -------------------------------------------------------------------------------- /easy/1729. Find Followers Count (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1729. Find Followers Count (Easy).sql -------------------------------------------------------------------------------- /easy/1731. The Number of Employees Which Report to Each Employee (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1731. The Number of Employees Which Report to Each Employee (Easy).sql -------------------------------------------------------------------------------- /easy/1741. Find Total Time Spent by Each Employee (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1741. Find Total Time Spent by Each Employee (Easy).sql -------------------------------------------------------------------------------- /easy/175. Combine Two Tables.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/175. Combine Two Tables.sql -------------------------------------------------------------------------------- /easy/1757. Recyclable and Low Fat Products (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1757. Recyclable and Low Fat Products (Easy).sql -------------------------------------------------------------------------------- /easy/1777. Product’s Price for Each Store (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1777. Product’s Price for Each Store (Easy).sql -------------------------------------------------------------------------------- /easy/1789. Primary Department for Each Employee (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1789. Primary Department for Each Employee (Easy).sql -------------------------------------------------------------------------------- /easy/1809. Ad-Free Sessions (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1809. Ad-Free Sessions (Easy).sql -------------------------------------------------------------------------------- /easy/181. Employees Earning More Than Their Managers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/181. Employees Earning More Than Their Managers.sql -------------------------------------------------------------------------------- /easy/182. Duplicate Emails.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/182. Duplicate Emails.sql -------------------------------------------------------------------------------- /easy/1821. Find Customers With Positive Revenue this Year (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1821. Find Customers With Positive Revenue this Year (Easy).sql -------------------------------------------------------------------------------- /easy/183. Customers Who Never Order.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/183. Customers Who Never Order.sql -------------------------------------------------------------------------------- /easy/1853. Convert Date Format (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1853. Convert Date Format (Easy).sql -------------------------------------------------------------------------------- /easy/1873. Calculate Special Bonus (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1873. Calculate Special Bonus (Easy).sql -------------------------------------------------------------------------------- /easy/1890. The Latest Login in 2020 (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1890. The Latest Login in 2020 (Easy).sql -------------------------------------------------------------------------------- /easy/1939. Users That Actively Request Confirmation Messages (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1939. Users That Actively Request Confirmation Messages (Easy).sql -------------------------------------------------------------------------------- /easy/196. Delete Duplicate Emails.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/196. Delete Duplicate Emails.sql -------------------------------------------------------------------------------- /easy/1965. Employees With Missing Information (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1965. Employees With Missing Information (Easy).sql -------------------------------------------------------------------------------- /easy/197. Rising Temperature.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/197. Rising Temperature.sql -------------------------------------------------------------------------------- /easy/1978. Employees Whose Manager Left the Company (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/1978. Employees Whose Manager Left the Company (Easy).sql -------------------------------------------------------------------------------- /easy/2026. Low-Quality Problems (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2026. Low-Quality Problems (Easy).sql -------------------------------------------------------------------------------- /easy/2072. The Winner University (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2072. The Winner University (Easy).sql -------------------------------------------------------------------------------- /easy/2082. The Number of Rich Customers (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2082. The Number of Rich Customers (Easy).sql -------------------------------------------------------------------------------- /easy/2205. The Number of Users That Are Eligible for Discount (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2205. The Number of Users That Are Eligible for Discount (Easy).sql -------------------------------------------------------------------------------- /easy/2230. The Users That Are Eligible for Discount (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2230. The Users That Are Eligible for Discount (Easy).sql -------------------------------------------------------------------------------- /easy/2329. Product Sales Analysis V (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2329. Product Sales Analysis V (Easy).sql -------------------------------------------------------------------------------- /easy/2339. All the Matches of the League (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2339. All the Matches of the League (Easy).sql -------------------------------------------------------------------------------- /easy/2356. Number of Unique Subjects Taught by Each Teacher (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2356. Number of Unique Subjects Taught by Each Teacher (Easy).sql -------------------------------------------------------------------------------- /easy/2377. Sort the Olympic Table (Easy).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/2377. Sort the Olympic Table (Easy).sql -------------------------------------------------------------------------------- /easy/511. Game Play Analysis I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/511. Game Play Analysis I.sql -------------------------------------------------------------------------------- /easy/512. Game Play Analysis II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/512. Game Play Analysis II.sql -------------------------------------------------------------------------------- /easy/577. Employee Bonus.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/577. Employee Bonus.sql -------------------------------------------------------------------------------- /easy/584. Find Customer Referee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/584. Find Customer Referee.sql -------------------------------------------------------------------------------- /easy/586. Customer Placing the Largest Number of Orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/586. Customer Placing the Largest Number of Orders.sql -------------------------------------------------------------------------------- /easy/595. Big Countries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/595. Big Countries.sql -------------------------------------------------------------------------------- /easy/596. Classes More Than 5 Students.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/596. Classes More Than 5 Students.sql -------------------------------------------------------------------------------- /easy/597. Friend Requests I: Overall Acceptance Rate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/597. Friend Requests I: Overall Acceptance Rate.sql -------------------------------------------------------------------------------- /easy/603. Consecutive Available Seats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/603. Consecutive Available Seats.sql -------------------------------------------------------------------------------- /easy/607.Sales Person.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/607.Sales Person.sql -------------------------------------------------------------------------------- /easy/610. Triangle Judgement.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/610. Triangle Judgement.sql -------------------------------------------------------------------------------- /easy/613. Shortest Distance in a Line.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/613. Shortest Distance in a Line.sql -------------------------------------------------------------------------------- /easy/619. Biggest Single Number.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/619. Biggest Single Number.sql -------------------------------------------------------------------------------- /easy/620. Not Boring Movies.sql: -------------------------------------------------------------------------------- 1 | SELECT * 2 | FROM cinema_620 3 | WHERE id%2 = 1 AND description <> 'boring' 4 | ORDER BY rating DESC; 5 | -------------------------------------------------------------------------------- /easy/627. Swap Salary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/easy/627. Swap Salary.sql -------------------------------------------------------------------------------- /hard/1097. Game Play Analysis V.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1097. Game Play Analysis V.sql -------------------------------------------------------------------------------- /hard/1127. User Purchase Platform.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1127. User Purchase Platform.sql -------------------------------------------------------------------------------- /hard/1159. Market Analysis II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1159. Market Analysis II.sql -------------------------------------------------------------------------------- /hard/1194. Tournament Winners.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1194. Tournament Winners.sql -------------------------------------------------------------------------------- /hard/1225. Report Contiguous Dates.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1225. Report Contiguous Dates.sql -------------------------------------------------------------------------------- /hard/1336. Number of Transactions per Visit.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1336. Number of Transactions per Visit.sql -------------------------------------------------------------------------------- /hard/1384. Total Sales Amount by Year.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1384. Total Sales Amount by Year.txt -------------------------------------------------------------------------------- /hard/1412. Find the Quiet Students in All Exams.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1412. Find the Quiet Students in All Exams.sql -------------------------------------------------------------------------------- /hard/1479. Sales by Day of the Week.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1479. Sales by Day of the Week.sql -------------------------------------------------------------------------------- /hard/1635. Hopper Company Queries I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1635. Hopper Company Queries I.sql -------------------------------------------------------------------------------- /hard/1645. Hopper Company Queries II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1645. Hopper Company Queries II.sql -------------------------------------------------------------------------------- /hard/1651. Hopper Company Queries III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1651. Hopper Company Queries III.sql -------------------------------------------------------------------------------- /hard/1767. Find the Subtasks That Did Not Execute.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1767. Find the Subtasks That Did Not Execute.sql -------------------------------------------------------------------------------- /hard/185. Department Top Three Salaries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/185. Department Top Three Salaries.sql -------------------------------------------------------------------------------- /hard/1892. Page Recommendations II (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1892. Page Recommendations II (Hard).sql -------------------------------------------------------------------------------- /hard/1917. Leetcodify Friends Recommendations (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1917. Leetcodify Friends Recommendations (Hard).sql -------------------------------------------------------------------------------- /hard/1919. Leetcodify Similar Friends (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1919. Leetcodify Similar Friends (Hard).sql -------------------------------------------------------------------------------- /hard/1972. First and Last Call On the Same Day (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/1972. First and Last Call On the Same Day (Hard).sql -------------------------------------------------------------------------------- /hard/2004. The Number of Seniors and Juniors to Join the Company (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2004. The Number of Seniors and Juniors to Join the Company (Hard).sql -------------------------------------------------------------------------------- /hard/2010. The Number of Seniors and Juniors to Join the Company II (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2010. The Number of Seniors and Juniors to Join the Company II (Hard).sql -------------------------------------------------------------------------------- /hard/2118. Build the Equation (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2118. Build the Equation (Hard).sql -------------------------------------------------------------------------------- /hard/2173. Longest Winning Streak (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2173. Longest Winning Streak (Hard).sql -------------------------------------------------------------------------------- /hard/2199. Finding the Topic of Each Post (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2199. Finding the Topic of Each Post (Hard).sql -------------------------------------------------------------------------------- /hard/2252. Dynamic Pivoting of a Table (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2252. Dynamic Pivoting of a Table (Hard).sql -------------------------------------------------------------------------------- /hard/2253. Dynamic Unpivoting of a Table (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2253. Dynamic Unpivoting of a Table (Hard).sql -------------------------------------------------------------------------------- /hard/2362. Generate the Invoice (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2362. Generate the Invoice (Hard).sql -------------------------------------------------------------------------------- /hard/2474. Customers With Strictly Increasing Purchases (Hard).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/2474. Customers With Strictly Increasing Purchases (Hard).sql -------------------------------------------------------------------------------- /hard/262. Trips and Users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/262. Trips and Users.sql -------------------------------------------------------------------------------- /hard/569. Median Employee Salary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/569. Median Employee Salary.sql -------------------------------------------------------------------------------- /hard/571. Find Median Given Frequency of Numbers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/571. Find Median Given Frequency of Numbers.sql -------------------------------------------------------------------------------- /hard/579. Find Cumulative Salary of an Employee.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/579. Find Cumulative Salary of an Employee.sql -------------------------------------------------------------------------------- /hard/601. Human Traffic of Stadium.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/601. Human Traffic of Stadium.sql -------------------------------------------------------------------------------- /hard/615. Average Salary: Departments VS Company.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/615. Average Salary: Departments VS Company.sql -------------------------------------------------------------------------------- /hard/618. Students Report By Geography.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/hard/618. Students Report By Geography.sql -------------------------------------------------------------------------------- /medium/1045. Customers Who Bought All Products.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1045. Customers Who Bought All Products.sql -------------------------------------------------------------------------------- /medium/1070. Product Sales Analysis III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1070. Product Sales Analysis III.sql -------------------------------------------------------------------------------- /medium/1077. Project Employees III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1077. Project Employees III.sql -------------------------------------------------------------------------------- /medium/1098. Unpopular Books.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1098. Unpopular Books.sql -------------------------------------------------------------------------------- /medium/1107. New Users Daily Count.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1107. New Users Daily Count.sql -------------------------------------------------------------------------------- /medium/1112. Highest Grade For Each Student.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1112. Highest Grade For Each Student.sql -------------------------------------------------------------------------------- /medium/1126. Active Businesses.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1126. Active Businesses.sql -------------------------------------------------------------------------------- /medium/1132. Reported Posts II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1132. Reported Posts II.sql -------------------------------------------------------------------------------- /medium/1149. Article Views II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1149. Article Views II.sql -------------------------------------------------------------------------------- /medium/1158. Market Analysis I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1158. Market Analysis I.sql -------------------------------------------------------------------------------- /medium/1164. Product Price at a Given Date.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1164. Product Price at a Given Date.sql -------------------------------------------------------------------------------- /medium/1174. Immediate Food Delivery II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1174. Immediate Food Delivery II.sql -------------------------------------------------------------------------------- /medium/1193. Monthly Transactions I.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1193. Monthly Transactions I.sql -------------------------------------------------------------------------------- /medium/1204. Last Person to Fit in the Elevator.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1204. Last Person to Fit in the Elevator.sql -------------------------------------------------------------------------------- /medium/1205. Monthly Transactions II.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1205. Monthly Transactions II.sql -------------------------------------------------------------------------------- /medium/1212. Team Scores in Football Tournament.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1212. Team Scores in Football Tournament.sql -------------------------------------------------------------------------------- /medium/1264. Page Recommendations.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1264. Page Recommendations.sql -------------------------------------------------------------------------------- /medium/1270. All People Report to the Given Manager.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1270. All People Report to the Given Manager.sql -------------------------------------------------------------------------------- /medium/1285. Find the Start and End Number of Continuous Ranges.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1285. Find the Start and End Number of Continuous Ranges.sql -------------------------------------------------------------------------------- /medium/1308. Running Total for Different Genders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1308. Running Total for Different Genders.sql -------------------------------------------------------------------------------- /medium/1321. Restaurant Growth.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1321. Restaurant Growth.sql -------------------------------------------------------------------------------- /medium/1341. Movie Rating.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1341. Movie Rating.sql -------------------------------------------------------------------------------- /medium/1355. Activity Participants.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1355. Activity Participants.sql -------------------------------------------------------------------------------- /medium/1364. Number of Trusted Contacts of a Customer.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1364. Number of Trusted Contacts of a Customer.sql -------------------------------------------------------------------------------- /medium/1393. Capital Gain Loss.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1393. Capital Gain Loss.sql -------------------------------------------------------------------------------- /medium/1398. Customers Who Bought Products A and B but Not C.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1398. Customers Who Bought Products A and B but Not C.sql -------------------------------------------------------------------------------- /medium/1440. Evaluate Boolean Expression.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1440. Evaluate Boolean Expression.sql -------------------------------------------------------------------------------- /medium/1445. Apples & Oranges.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1445. Apples & Oranges.sql -------------------------------------------------------------------------------- /medium/1454. Active Users.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1454. Active Users.sql -------------------------------------------------------------------------------- /medium/1459. Rectangles Area.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1459. Rectangles Area.sql -------------------------------------------------------------------------------- /medium/1468. Calculate Salaries.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1468. Calculate Salaries.sql -------------------------------------------------------------------------------- /medium/1501. Countries You Can Safely Invest In.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1501. Countries You Can Safely Invest In.sql -------------------------------------------------------------------------------- /medium/1532. The Most Recent Three Orders.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1532. The Most Recent Three Orders.sql -------------------------------------------------------------------------------- /medium/1549. The Most Recent Orders for Each Product.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1549. The Most Recent Orders for Each Product.sql -------------------------------------------------------------------------------- /medium/1555. Bank Account Summary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1555. Bank Account Summary.sql -------------------------------------------------------------------------------- /medium/1596. The Most Frequently Ordered Products for Each Customer.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1596. The Most Frequently Ordered Products for Each Customer.sql -------------------------------------------------------------------------------- /medium/1613. Find the Missing IDs.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1613. Find the Missing IDs.sql -------------------------------------------------------------------------------- /medium/1699. Number of Calls Between Two Persons.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1699. Number of Calls Between Two Persons.sql -------------------------------------------------------------------------------- /medium/1709. Biggest Window Between Visits.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1709. Biggest Window Between Visits.sql -------------------------------------------------------------------------------- /medium/1715. Count Apples and Oranges.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1715. Count Apples and Oranges.sql -------------------------------------------------------------------------------- /medium/1747. Leetflex Banned Accounts.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1747. Leetflex Banned Accounts.sql -------------------------------------------------------------------------------- /medium/176. Second Highest Salary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/176. Second Highest Salary.sql -------------------------------------------------------------------------------- /medium/177. Nth Highest Salary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/177. Nth Highest Salary.sql -------------------------------------------------------------------------------- /medium/178. Rank Scores.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/178. Rank Scores.sql -------------------------------------------------------------------------------- /medium/1783. Grand Slam Titles.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1783. Grand Slam Titles.sql -------------------------------------------------------------------------------- /medium/180. Consecutive Numbers.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/180. Consecutive Numbers.sql -------------------------------------------------------------------------------- /medium/1811. Find Interview Candidates (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1811. Find Interview Candidates (Medium).sql -------------------------------------------------------------------------------- /medium/1831. Maximum Transaction Each Day (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1831. Maximum Transaction Each Day (Medium).sql -------------------------------------------------------------------------------- /medium/184. Department Highest Salary.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/184. Department Highest Salary.sql -------------------------------------------------------------------------------- /medium/1841. League Statistics (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1841. League Statistics (Medium).sql -------------------------------------------------------------------------------- /medium/1843. Suspicious Bank Accounts (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1843. Suspicious Bank Accounts (Medium).sql -------------------------------------------------------------------------------- /medium/1867. Orders With Maximum Quantity Above Average (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1867. Orders With Maximum Quantity Above Average (Medium).sql -------------------------------------------------------------------------------- /medium/1875. Group Employees of the Same Salary (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1875. Group Employees of the Same Salary (Medium).sql -------------------------------------------------------------------------------- /medium/1907. Count Salary Categories (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1907. Count Salary Categories (Medium).sql -------------------------------------------------------------------------------- /medium/1934. Confirmation Rate (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1934. Confirmation Rate (Medium).sql -------------------------------------------------------------------------------- /medium/1949. Strong Friendship (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1949. Strong Friendship (Medium).sql -------------------------------------------------------------------------------- /medium/1951. All the Pairs With the Maximum Number of Common Followers (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1951. All the Pairs With the Maximum Number of Common Followers (Medium).sql -------------------------------------------------------------------------------- /medium/1988. Find Cutoff Score for Each School (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1988. Find Cutoff Score for Each School (Medium).sql -------------------------------------------------------------------------------- /medium/1990. Count the Number of Experiments (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/1990. Count the Number of Experiments (Medium).sql -------------------------------------------------------------------------------- /medium/2020. Number of Accounts That Did Not Stream (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2020. Number of Accounts That Did Not Stream (Medium).sql -------------------------------------------------------------------------------- /medium/2041. Accepted Candidates From the Interviews (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2041. Accepted Candidates From the Interviews (Medium).sql -------------------------------------------------------------------------------- /medium/2051. The Category of Each Member in the Store (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2051. The Category of Each Member in the Store (Medium).sql -------------------------------------------------------------------------------- /medium/2066. Account Balance (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2066. Account Balance (Medium).sql -------------------------------------------------------------------------------- /medium/2084. Drop Type 1 Orders for Customers With Type 0 Orders (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2084. Drop Type 1 Orders for Customers With Type 0 Orders (Medium).sql -------------------------------------------------------------------------------- /medium/2112. The Airport With the Most Traffic (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2112. The Airport With the Most Traffic (Medium).sql -------------------------------------------------------------------------------- /medium/2142. The Number of Passengers in Each Bus I (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2142. The Number of Passengers in Each Bus I (Medium).sql -------------------------------------------------------------------------------- /medium/2159. Order Two Columns Independently (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2159. Order Two Columns Independently (Medium).sql -------------------------------------------------------------------------------- /medium/2175. The Change in Global Rankings (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2175. The Change in Global Rankings (Medium).sql -------------------------------------------------------------------------------- /medium/2228. Users With Two Purchases Within Seven Days (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2228. Users With Two Purchases Within Seven Days (Medium).sql -------------------------------------------------------------------------------- /medium/2238. Number of Times a Driver Was a Passenger (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2238. Number of Times a Driver Was a Passenger (Medium).sql -------------------------------------------------------------------------------- /medium/2292. Products With Three or More Orders in Two Consecutive Years (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2292. Products With Three or More Orders in Two Consecutive Years (Medium).sql -------------------------------------------------------------------------------- /medium/2298. Tasks Count in the Weekend (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2298. Tasks Count in the Weekend (Medium).sql -------------------------------------------------------------------------------- /medium/2308. Arrange Table by Gender (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2308. Arrange Table by Gender (Medium).sql -------------------------------------------------------------------------------- /medium/2314. The First Day of the Maximum Recorded Degree in Each City (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2314. The First Day of the Maximum Recorded Degree in Each City (Medium).sql -------------------------------------------------------------------------------- /medium/2324. Product Sales Analysis IV (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2324. Product Sales Analysis IV (Medium).sql -------------------------------------------------------------------------------- /medium/2346. Compute the Rank as a Percentage (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2346. Compute the Rank as a Percentage (Medium).sql -------------------------------------------------------------------------------- /medium/2372. Calculate the Influence of Each Salesperson (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2372. Calculate the Influence of Each Salesperson (Medium).sql -------------------------------------------------------------------------------- /medium/2388. Change Null Values in a Table to the Previous Value (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2388. Change Null Values in a Table to the Previous Value (Medium).sql -------------------------------------------------------------------------------- /medium/2394. Employees With Deductions (Medium).sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/2394. Employees With Deductions (Medium).sql -------------------------------------------------------------------------------- /medium/534. Game Play Analysis III.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/534. Game Play Analysis III.sql -------------------------------------------------------------------------------- /medium/550. Game Play Analysis IV.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/550. Game Play Analysis IV.sql -------------------------------------------------------------------------------- /medium/570. Managers with at Least 5 Direct Reports.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/570. Managers with at Least 5 Direct Reports.sql -------------------------------------------------------------------------------- /medium/574. Winning Candidate.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/574. Winning Candidate.sql -------------------------------------------------------------------------------- /medium/578. Get Highest Answer Rate Question.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/578. Get Highest Answer Rate Question.sql -------------------------------------------------------------------------------- /medium/580. Count Student Number in Departments.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/580. Count Student Number in Departments.sql -------------------------------------------------------------------------------- /medium/585. Investments in 2016.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/585. Investments in 2016.sql -------------------------------------------------------------------------------- /medium/602. Friend Requests II: Who Has the Most Friends.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/602. Friend Requests II: Who Has the Most Friends.sql -------------------------------------------------------------------------------- /medium/608. Tree Node.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/608. Tree Node.sql -------------------------------------------------------------------------------- /medium/612. Shortest Distance in a Plane.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/612. Shortest Distance in a Plane.sql -------------------------------------------------------------------------------- /medium/614. Second Degree Follower.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/614. Second Degree Follower.sql -------------------------------------------------------------------------------- /medium/626. Exchange Seats.sql: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/cM2908/leetcode-sql/HEAD/medium/626. Exchange Seats.sql --------------------------------------------------------------------------------