filmov
tv
Leetcode Hard Problem 4 | User Purchase Platform | Complex SQL 11

Показать описание
In this video we are going to discuss very interesting leetcode SQL problem called User Purchase Platform . This is one of the very interesting problem that I have seen on leetcode. Do try yourself first. Below is the create and insert script:
create table spending
(
user_id int,
spend_date date,
platform varchar(10),
amount int
);
insert into spending values(1,'2019-07-01','mobile',100),(1,'2019-07-01','desktop',100),(2,'2019-07-01','mobile',100)
,(2,'2019-07-02','mobile',100),(3,'2019-07-01','desktop',100),(3,'2019-07-02','desktop',100);
/* User purchase platform.
-- The table logs the spendings history of users that make purchases from an online shopping website which has a desktop
and a mobile application.
-- Write an SQL query to find the total number of users and the total amount spent using mobile only, desktop only
and both mobile and desktop together for each date.
*/
create table spending
(
user_id int,
spend_date date,
platform varchar(10),
amount int
);
insert into spending values(1,'2019-07-01','mobile',100),(1,'2019-07-01','desktop',100),(2,'2019-07-01','mobile',100)
,(2,'2019-07-02','mobile',100),(3,'2019-07-01','desktop',100),(3,'2019-07-02','desktop',100);
/* User purchase platform.
-- The table logs the spendings history of users that make purchases from an online shopping website which has a desktop
and a mobile application.
-- Write an SQL query to find the total number of users and the total amount spent using mobile only, desktop only
and both mobile and desktop together for each date.
*/
Leetcode Hard Problem 4 | User Purchase Platform | Complex SQL 11
Median of Two Sorted Arrays - Binary Search - Leetcode 4
4 Leetcode Mistakes
Advanced SQL Query - 4 | LeetCode Hard Question | UBER Problem
4 Steps to Solve Any Dynamic Programming (DP) Problem
How many Leetcode problems Googlers have solved? #sde #google
Yes, I was also Bad at LeetCode
How many LeetCode problems should you solve? #leetcode #techinterview #developer #softwareengineer
LeetCode | Median of Two Sorted Arrays | Hard Problem | Problem-4 | Newton School
Leetcode 2360. Longest Cycle in a Graph | Weekly Contest 304. Hard Problem 4
Heaps - Problem 4 | Hard | Leetcode 239 | Sliding Window Maximum
8 patterns to solve 80% Leetcode problems
30 HARD - Day 4: Python for Beginners: Leetcode Problem #4: Median of Two Sorted Arrays
Median of Two Sorted Arrays || LeetCode Hard Problem no. 4 || #codingbz #leetcode #dsa
Binary Search - Problem 4 | Hard | Leetcode 410 | Split Array Largest Sum
DSA in Java #coding #python #leetcode #java
#day64 - Can you solve these #javascript questions asked in #deloitte interview #coding #frontend
Jump Game IV | Leetcode 1345 | Live coding session 🔥🔥 | Leetcode hard | BFS traversal 💯
How I make HARD coding problems look EASY
Coding Interview Prep: Arrays Question #3 (Hard) /// Lesson #4 [LeetCode]
ChatGPT-4 vs Hardest Leetcode problem #javascript #python #typescript #chatgpt #webdev
How I would learn to code
1345. Jump Game IV | LeetCode Daily Challenge | LeetCode Hard | LeetCode POTD
I've solved 292 Leetcode Questions - 5 Tips to Get Better
Комментарии