
Leetcode Database SQL/Pandas
朵拉刷题记录
这个作者很懒,什么都没留下…
展开
-
Leetcode 1126. Active Businesses | SQL Pandas 解法
找到活跃的商家Write an SQL query to find all active businesses.An active business is a business that has more than one event type with occurences greater than the average occurences of that event type among all businesses.Table: Events+---------------+-------原创 2020-10-27 00:39:16 · 481 阅读 · 0 评论 -
Leetcode 1369. Get the Second Most Recent Activity | SQL Pandas 解法
1369. Get the Second Most Recent Activity返回最近的第二次活动Table: UserActivity+---------------+---------+| Column Name | Type |+---------------+---------+| username | varchar || activity | varchar || startDate | Date || endDate原创 2020-09-10 06:00:52 · 389 阅读 · 0 评论 -
1075-1077 Project Employees I-III SQL Pandas 解析
Project Employees给了两个表project和employeeProject+-------------+-------------+| project_id | employee_id |+-------------+-------------+| 1 | 1 || 1 | 2 || 1 | 3 || 2 | 1原创 2020-07-10 07:36:05 · 227 阅读 · 0 评论 -
Leetcode 181. Employees Earning More Than Their Managers | SQL Pandas 解法
Leetcode 181. Employees Earning More Than Their Managers | SQL Pandas 解法EasyThe Employee table holds all employees including their managers. Every employee has an Id, and there is also a column for the manager Id.+----+-------+--------+-----------+| I原创 2020-06-10 04:34:47 · 237 阅读 · 0 评论 -
Leetcode 178. Rank Scores SQL Pandas解法
178. Rank Scores SQL Pandas解法SQL解法一:Window Function解法二:Using CountPandas可能的变形Write a SQL query to rank scores. If there is a tie between two scores, both should have the same ranking. Note that after a tie, the next ranking number should be the next conse原创 2020-06-04 12:28:35 · 422 阅读 · 1 评论 -
Leetcode 177 Nth Highest Salary SQL Pandas解法
177. Nth Highest Salary SQL Pandas解法题目解法SQLPandas题目EasyWrite a SQL query to get the second highest salary from the Employee table.IdSalary110022003300For example, given the above Employee table, the query should return 200 as the原创 2020-06-03 03:23:30 · 303 阅读 · 0 评论 -
Leetcode 176 Second Highest Salary SQL Pandas解法
176. Second Highest Salary SQL Pandas解法题目解法SQL解法一解法二解法三Pandas题目EasyWrite a SQL query to get the second highest salary from the Employee table.IdSalary110022003300For example, given the above Employee table, the query should return原创 2020-06-02 05:21:07 · 343 阅读 · 0 评论 -
Leetcode 175 Combine Two Tables SQL Pandas解法
Leetcode 175 Combine Two Tables SQL Pandas解法用SQL和python合并数据表原创 2020-06-01 13:41:56 · 392 阅读 · 0 评论