Easy

Consecutive Available Seats LeetCode Solution

This Leetcode problem Consecutive Available Seats LeetCode Solution is done in SQL. List of all LeetCode Solution Consecutive Available Seats LeetCode Solution Problem Statement Several friends at a cinema ticket office would like to reserve consecutive available seats.Write a query for all the consecutive available seats ordered by the seat_id using the following cinema table. […]

Consecutive Available Seats LeetCode Solution Read More »

Reformat Department Table LeetCode Solution

This Leetcode problem Reformat Department Table LeetCode Solution is done in SQL. List of all LeetCode Solution Reformat Department Table LeetCode Solution Problem Statement Column Name Type id int revenue int month varchar Table: Department In SQL,(id, month) is the primary key of this table. The table has information about the revenue of each department per

Reformat Department Table LeetCode Solution Read More »

Immediate Food Delivery I LeetCode Solution

This Leetcode problem Immediate Food Delivery I LeetCode Solution is done in SQL. List of all LeetCode Solution Immediate Food Delivery I LeetCode Solution Problem Statement Column Name Type delivery_id int customer_id int order_date date customer_pref_delivery_date date Table: Delivery delivery_id is the primary key of this table.The table holds information about food delivery to customers

Immediate Food Delivery I LeetCode Solution Read More »

Friend Requests I Overall Acceptance Rate LeetCode Solution

This Leetcode problem Friend Requests I Overall Acceptance Rate LeetCode Solution is done in SQL. List of all LeetCode Solution Friend Requests I Overall Acceptance Rate LeetCode Solution Problem Statement In social network like Facebook or Twitter, people send friend requests and accept others’ requests as well. Now given two tables as below: sender_id send_to_id

Friend Requests I Overall Acceptance Rate LeetCode Solution Read More »

Classes More Than 5 Students LeetCode Solution

This Leetcode problem Classes More Than 5 Students LeetCode Solution is done in SQL. List of all LeetCode Solution Classes More Than 5 Students LeetCode Solution Problem Statement Column Name Type student varchar class varchar Table: Courses (student, class) is the primary key (combination of columns with unique values) for this table. Each row of this

Classes More Than 5 Students LeetCode Solution Read More »

Remove Duplicates from Sorted List LeetCode Solution

Here, We see Remove Duplicates from Sorted List LeetCode Solution. This Leetcode problem is done in many programming languages like C++, Java, JavaScript, Python, etc. with different approaches. List of all LeetCode Solution Remove Duplicates from Sorted List LeetCode Solution Problem Statement Given the head of a sorted linked list, delete all duplicates such that

Remove Duplicates from Sorted List LeetCode Solution Read More »

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 »

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 »

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 »

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 »

Scroll to Top