SQL

User Activity for the Past 30 Days II LeetCode Solution

This Leetcode problem User Activity for the Past 30 Days II LeetCode Solution is done in SQL. List of all LeetCode Solution User Activity for the Past 30 Days II LeetCode Solution Problem Statement Column Name Type user_id int session_id int activity_date date activity_type enum Table: Activity This table may have duplicate rows. The activity_type column […]

User Activity for the Past 30 Days II LeetCode Solution Read More »

Leetcode Solution

Customer Placing the Largest Number of Orders LeetCode Solution

This Leetcode problem Customer Placing the Largest Number of Orders LeetCode Solution is done in SQL. List of all LeetCode Solution Customer Placing the Largest Number of Orders LeetCode Solution Problem Statement Column Name Type order_number int customer_number int Table: Orders order_number is the primary key (column with unique values) for this table. This table contains

Customer Placing the Largest Number of Orders LeetCode Solution Read More »

Leetcode Solution

User Activity for the Past 30 Days I LeetCode Solution

This Leetcode problem User Activity for the Past 30 Days I LeetCode Solution is done in SQL. List of all LeetCode Solution User Activity for the Past 30 Days I LeetCode Solution Problem Statement Column Name Type user_id int session_id int activity_date date activity_type enum Table: Activity This table may have duplicate rows. The activity_type column

User Activity for the Past 30 Days I LeetCode Solution Read More »

Leetcode Solution

Find Customer Referee LeetCode Solution

This Leetcode problem Find Customer Referee LeetCode Solution is done in SQL. List of all LeetCode Solution Find Customer Referee LeetCode Solution Problem Statement Column Name Type id int name varchar referee_id int Table: Customer In SQL, id is the primary key column for this table. Each row of this table indicates the id of a

Find Customer Referee LeetCode Solution Read More »

Leetcode Solution

Sales Analysis III LeetCode Solution

This Leetcode problem Sales Analysis III LeetCode Solution is done in SQL. List of all LeetCode Solution Sales Analysis III LeetCode Solution Problem Statement Column Name Type product_id int product_name varchar unit_price int Table: Product product_id is the primary key (column with unique values) of this table. Each row of this table indicates the name

Sales Analysis III LeetCode Solution Read More »

Leetcode Solution

Employee Bonus LeetCode Solution

This Leetcode problem Employee Bonus LeetCode Solution is done in SQL. List of all LeetCode Solution Employee Bonus LeetCode Solution Problem Statement Column Name Type empId int name varchar supervisor int salary int Table: Employee empId is the column with unique values for this table. Each row of this table indicates the name and the ID

Employee Bonus LeetCode Solution Read More »

Leetcode Solution

Sales Analysis II LeetCode Solution

This Leetcode problem Sales Analysis II LeetCode Solution is done in SQL. List of all LeetCode Solution Sales Analysis II LeetCode Solution Problem Statement Column Name Type product_id int product_name varchar unit_price int Table: Product product_id is the primary key (column with unique values) of this table. Each row of this table indicates the name

Sales Analysis II LeetCode Solution Read More »

Leetcode Solution

Managers with at Least 5 Direct Reports LeetCode Solution

This Leetcode problem Managers with at Least 5 Direct Reports LeetCode Solution is done in SQL. List of all LeetCode Solution Managers with at Least 5 Direct Reports LeetCode Solution Problem Statement Column Name Type id int name varchar department varchar managerId int Table: Employee id is the primary key (column with unique values) for this

Managers with at Least 5 Direct Reports LeetCode Solution Read More »

Leetcode Solution

Game Play Analysis III LeetCode Solution

This Leetcode problem Game Play Analysis III LeetCode Solution is done in SQL. List of all LeetCode Solution Game Play Analysis III LeetCode Solution Problem Statement Column Name Type player_id int device_id int event_date date games_played int Table: Activity (player_id, event_date) is the primary key of this table. This table shows the activity of players of

Game Play Analysis III LeetCode Solution Read More »

Leetcode Solution

Sales Analysis I LeetCode Solution

This Leetcode problem Sales Analysis I LeetCode Solution is done in SQL. List of all LeetCode Solution Sales Analysis I LeetCode Solution Problem Statement Column Name Type product_id int product_name varchar unit_price int Table: Product product_id is the primary key (column with unique values) of this table. Each row of this table indicates the name

Sales Analysis I LeetCode Solution Read More »

Leetcode Solution

Nth Highest Salary LeetCode Solution

This Leetcode problem Nth Highest Salary LeetCode Solution is done in SQL. List of all LeetCode Solution Nth Highest Salary LeetCode Solution Problem Statement Column Name Type id int salary int Table: Employee id is the primary key (column with unique values) for this table. Each row of this table contains information about the salary of

Nth Highest Salary LeetCode Solution Read More »

Leetcode Solution

Project Employees III LeetCode Solution

This Leetcode problem Project Employees III LeetCode Solution is done in SQL. List of all LeetCode Solution Project Employees III LeetCode Solution Problem Statement Column Name Type project_id int employee_id int Table: Project (project_id, employee_id) is the primary key of this table. employee_id is a foreign key to Employee table. Each row of this table indicates

Project Employees III LeetCode Solution Read More »

Leetcode Solution

Project Employees II LeetCode Solution

This Leetcode problem Project Employees II LeetCode Solution is done in SQL. List of all LeetCode Solution Project Employees II LeetCode Solution Problem Statement Column Name Type project_id int employee_id int Table: Project (project_id, employee_id) is the primary key of this table. employee_id is a foreign key to Employee table. Each row of this table indicates

Project Employees II LeetCode Solution Read More »

Leetcode Solution

Consecutive Numbers LeetCode Solution

This Leetcode problem Consecutive Numbers LeetCode Solution is done in SQL. List of all LeetCode Solution Consecutive Numbers LeetCode Solution Problem Statement Column Name Type id int num varchar Table: Logs In SQL, id is the primary key for this table. id is an autoincrement column. Find all numbers that appear at least three times consecutively.

Consecutive Numbers LeetCode Solution Read More »

Leetcode Solution
Scroll to Top