[597_EASY] Friend Requests I : Overall Acceptance Rate
·
SQL/LeetCode
Problem Description – Write an SQL query to find the overall acceptance rate of requests, which is the number of acceptance divided by the number of requests. Return the answer rounded to 2 decimals places. Note That – The accepted requests are not necessarily from the table friend_request. In this case, Count the total accepted requests (no matter whether they are in the original requests), and..
[596_EASY] Classes More Than 5 Students
·
SQL/LeetCode
Table: Courses +-------------+---------+ | Column Name | Type | +-------------+---------+ | student | varchar | | class | varchar | +-------------+---------+ (student, class) is the primary key column for this table. Each row of this table indicates the name of a student and the class in which they are enrolled. Write an SQL query to report all the classes that have at least five students. Retur..
[595_EASY] Big Countries
·
SQL/LeetCode
보호되어 있는 글입니다.
[586_EASY] Customer Placing the Largest Number of Orders
·
SQL/LeetCode
Table: Orders +-----------------+----------+ | Column Name | Type | +-----------------+----------+ | order_number | int | | customer_number | int | +-----------------+----------+ order_number is the primary key for this table. This table contains information about the order ID and the customer ID. Write an SQL query to find the customer_number for the customer who has placed the largest number o..
[584_EASY] Find Customer Referee
·
SQL/LeetCode
보호되어 있는 글입니다.
[577#_EASY] Employee Bonus
·
SQL/LeetCode
보호되어 있는 글입니다.
[176_MEDIUM] Second Highest Salary_RE
·
SQL/LeetCode
보호되어 있는 글입니다.
[511_EASY] Game Play Analysis I
·
SQL/LeetCode
Table: Activity +--------------+---------+ | Column Name | Type | +--------------+---------+ | player_id | int | | device_id | int | | event_date | date | | games_played | int | +--------------+---------+ (player_id, event_date) is the primary key of this table. This table shows the activity of players of some games. Each row is a record of a player who logged in and played a number of games (po..