[180_MEDIUM] Consecutive Numbers 다시풀기
·
SQL/LeetCode
Table: Logs +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | num | varchar | +-------------+---------+ id is the primary key for this table. id is an autoincrement column. Write an SQL query to find all numbers that appear at least three times consecutively. Return the result table in any order. The query result format is in the following example. Example..
[197_EASY] Rising Temperature
·
SQL/LeetCode
Rising Temperature - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Table: Weather +---------------+---------+ | Column Name | Type | +---------------+---------+ | id | int | | recordDate | date | | temperature | int | +---------------+---------+ id is the primary key for this tab..
[183_EASY] Customers Who Never Order
·
SQL/LeetCode
Customers Who Never Order - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com Table: Customers +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | +-------------+---------+ id is the primary key column for this table. Each row of..
[178_MEDIUM] Rank Scores
·
SQL/LeetCode
보호되어 있는 글입니다.
[177_MEDIUM] Nth Highest Salary
·
SQL/LeetCode
Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Each row of this table contains information about the salary of an employee. Write an SQL query to report the nth highest salary from the Employee table. If there is no nth highest salary, the query should report nu..
[176_MEDIUM] Second Highest Salary
·
SQL/LeetCode
Table: Employee +-------------+------+ | Column Name | Type | +-------------+------+ | id | int | | salary | int | +-------------+------+ id is the primary key column for this table. Each row of this table contains information about the salary of an employee. Write an SQL query to report the second highest salary from the Employee table. If there is no second highest salary, the query should rep..
[182_EASY] Duplicate Emails
·
SQL/LeetCode
Table: Person +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | email | varchar | +-------------+---------+ id is the primary key column for this table. Each row of this table contains an email. The emails will not contain uppercase letters. Write an SQL query to report all the duplicate emails. Return the result table in any order. The query result format..
[181_EASY] Employees Earning More Than Their Managers
·
SQL/LeetCode
Table: Employee +-------------+---------+ | Column Name | Type | +-------------+---------+ | id | int | | name | varchar | | salary | int | | managerId | int | +-------------+---------+ id is the primary key column for this table. Each row of this table indicates the ID of an employee, their name, salary, and the ID of their manager. Write an SQL query to find the employees who earn more than th..