From 2a898db9623b40b0f1c78ca2ea5508831b5e05ce Mon Sep 17 00:00:00 2001 From: Peter Chen Date: Thu, 19 Feb 2026 18:29:19 +0800 Subject: [PATCH] chore: remove LeetCode SQL solutions Remove all SQL problem solutions from the repository to streamline the project focus. --- SQL/1303. Find the Team Size.sql | 10 ---------- SQL/1350. Students With Invalid Departments.sql | 6 ------ ... Replace Employee ID With The Unique Identifier.sql | 6 ------ SQL/1445. Apples & Oranges.sql | 6 ------ ...r Who Visited but Did Not Make Any Transactions.sql | 7 ------- SQL/1683. Invalid Tweets.sql | 5 ----- SQL/1741. Find Total Time Spent by Each Employee.sql | 5 ----- SQL/1757. Recyclable and Low Fat Products.sql | 6 ------ SQL/182. Duplicate Emails.sql | 10 ---------- ... Find Customers With Positive Revenue this Year.sql | 6 ------ ...umber of Unique Subjects Taught by Each Teacher.sql | 8 -------- 11 files changed, 75 deletions(-) delete mode 100644 SQL/1303. Find the Team Size.sql delete mode 100644 SQL/1350. Students With Invalid Departments.sql delete mode 100644 SQL/1378. Replace Employee ID With The Unique Identifier.sql delete mode 100644 SQL/1445. Apples & Oranges.sql delete mode 100644 SQL/1581. Customer Who Visited but Did Not Make Any Transactions.sql delete mode 100644 SQL/1683. Invalid Tweets.sql delete mode 100644 SQL/1741. Find Total Time Spent by Each Employee.sql delete mode 100644 SQL/1757. Recyclable and Low Fat Products.sql delete mode 100644 SQL/182. Duplicate Emails.sql delete mode 100644 SQL/1821. Find Customers With Positive Revenue this Year.sql delete mode 100644 SQL/2356. Number of Unique Subjects Taught by Each Teacher.sql diff --git a/SQL/1303. Find the Team Size.sql b/SQL/1303. Find the Team Size.sql deleted file mode 100644 index 2b1e999..0000000 --- a/SQL/1303. Find the Team Size.sql +++ /dev/null @@ -1,10 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT emp.employee_id, temp.team_size -FROM Employee emp - JOIN - ( - SELECT emp.team_id, COUNT(*) team_size - FROM Employee emp - GROUP BY emp.team_id - ) temp on (emp.team_id = temp.team_id) \ No newline at end of file diff --git a/SQL/1350. Students With Invalid Departments.sql b/SQL/1350. Students With Invalid Departments.sql deleted file mode 100644 index b8463c6..0000000 --- a/SQL/1350. Students With Invalid Departments.sql +++ /dev/null @@ -1,6 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT stu.id, stu.name -FROM Students stu - LEFT JOIN Departments dep on (stu.department_id = dep.id) -WHERE dep.name is NULL \ No newline at end of file diff --git a/SQL/1378. Replace Employee ID With The Unique Identifier.sql b/SQL/1378. Replace Employee ID With The Unique Identifier.sql deleted file mode 100644 index 20494e8..0000000 --- a/SQL/1378. Replace Employee ID With The Unique Identifier.sql +++ /dev/null @@ -1,6 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT uni.unique_id, emp.name -FROM Employees emp - LEFT JOIN EmployeeUNI uni on (emp.id = uni.id) - diff --git a/SQL/1445. Apples & Oranges.sql b/SQL/1445. Apples & Oranges.sql deleted file mode 100644 index fe0661a..0000000 --- a/SQL/1445. Apples & Oranges.sql +++ /dev/null @@ -1,6 +0,0 @@ -# -Database -# Write your MySQL query statement below -select sale_date, SUM(IF(fruit = 'apples', sold_num, -sold_num)) as diff -from Sales -group by sale_date \ No newline at end of file diff --git a/SQL/1581. Customer Who Visited but Did Not Make Any Transactions.sql b/SQL/1581. Customer Who Visited but Did Not Make Any Transactions.sql deleted file mode 100644 index fa2e3e1..0000000 --- a/SQL/1581. Customer Who Visited but Did Not Make Any Transactions.sql +++ /dev/null @@ -1,7 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT vi.customer_id, COUNT(*) count_no_trans -FROM Visits vi - LEFT JOIN Transactions tr on (vi.visit_id = tr.visit_id) -WHERE tr.transaction_id is null -GROUP BY vi.customer_id diff --git a/SQL/1683. Invalid Tweets.sql b/SQL/1683. Invalid Tweets.sql deleted file mode 100644 index cdb565c..0000000 --- a/SQL/1683. Invalid Tweets.sql +++ /dev/null @@ -1,5 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT tweet_id -FROM Tweets tw -WHERE LENGTH(tw.content) > 15 diff --git a/SQL/1741. Find Total Time Spent by Each Employee.sql b/SQL/1741. Find Total Time Spent by Each Employee.sql deleted file mode 100644 index 9f10e12..0000000 --- a/SQL/1741. Find Total Time Spent by Each Employee.sql +++ /dev/null @@ -1,5 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT event_day day, emp_id, SUM(out_time - in_time) total_time -FROM Employees -GROUP BY emp_id, event_day \ No newline at end of file diff --git a/SQL/1757. Recyclable and Low Fat Products.sql b/SQL/1757. Recyclable and Low Fat Products.sql deleted file mode 100644 index 489f9d9..0000000 --- a/SQL/1757. Recyclable and Low Fat Products.sql +++ /dev/null @@ -1,6 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT pro.product_id -FROM Products pro -WHERE pro.low_fats = 'Y' - and pro.recyclable = 'Y' \ No newline at end of file diff --git a/SQL/182. Duplicate Emails.sql b/SQL/182. Duplicate Emails.sql deleted file mode 100644 index 4bfe8c0..0000000 --- a/SQL/182. Duplicate Emails.sql +++ /dev/null @@ -1,10 +0,0 @@ -# -Database -# Write your MySQL query statement below -SELECT EMAIL -FROM ( - SELECT *, COUNT(*) - FROM PERSON - GROUP BY EMAIL - HAVING COUNT(*) > 1 - ) MODIFIED \ No newline at end of file diff --git a/SQL/1821. Find Customers With Positive Revenue this Year.sql b/SQL/1821. Find Customers With Positive Revenue this Year.sql deleted file mode 100644 index 2ade98b..0000000 --- a/SQL/1821. Find Customers With Positive Revenue this Year.sql +++ /dev/null @@ -1,6 +0,0 @@ -# Database -# Write your MySQL query statement below -SELECT customer_id -FROM Customers cu -WHERE cu.year = 2021 - AND cu.revenue > 0 diff --git a/SQL/2356. Number of Unique Subjects Taught by Each Teacher.sql b/SQL/2356. Number of Unique Subjects Taught by Each Teacher.sql deleted file mode 100644 index b2dd8f9..0000000 --- a/SQL/2356. Number of Unique Subjects Taught by Each Teacher.sql +++ /dev/null @@ -1,8 +0,0 @@ -# -Database -# Write your MySQL query statement below -select teacher_id, COUNT(subject_id) AS cnt -from ( - select distinct teacher_id, subject_id - from Teacher) temp -group by temp.teacher_id \ No newline at end of file