filmov
tv
Leetcode SQL Problem | Second Most Recent Activity #sql #interview #windows

Показать описание
In this video we will solve a leetcode problem, Where we need to find second most recent activity and if user has only 1 activity then return that as it is.
Here is the script:
create table UserActivity
(
username varchar(20) ,
activity varchar(20),
startDate Date ,
endDate Date
);
insert into UserActivity values
('Alice','Travel','2020-02-12','2020-02-20')
,('Alice','Dancing','2020-02-21','2020-02-23')
,('Alice','Travel','2020-02-24','2020-02-28')
,('Bob','Travel','2020-02-11','2020-02-18');
#sql #interview #window #function #rank #count
Connect with me on the below platforms-
Here is the script:
create table UserActivity
(
username varchar(20) ,
activity varchar(20),
startDate Date ,
endDate Date
);
insert into UserActivity values
('Alice','Travel','2020-02-12','2020-02-20')
,('Alice','Dancing','2020-02-21','2020-02-23')
,('Alice','Travel','2020-02-24','2020-02-28')
,('Bob','Travel','2020-02-11','2020-02-18');
#sql #interview #window #function #rank #count
Connect with me on the below platforms-
🔢 LeetCode SQL Problem: Second Highest Salary | PART 46
LeetCode 1369: Get the Second Most Recent Activity [SQL]
LEETCODE - Passenger Bus Problem - SQL Interview Query 23| SQL Problem Level 'HARD'
Leetcode Hard SQL Problem - 6 | Second Most Recent Activity | SQL Window Analytical Functions
Solving the most complex SQL Problem on LeetCode | SQL Interview Question and Answer
Leetcode SQL Problem | Second Highest Salary #sql #interview
Second Highest Salary | Leetcode 176 | Crack SQL Interviews in 50 Qs #mysql #leetcode
LeetCode 177: Nth Highest Salary [SQL]
🧩 Delete Duplicate Emails – LeetCode SQL Problem | PART 45
Learn SQL - SQL Interview Question - Second Highest Salary
Leetcode SQL Problem | Second Most Recent Activity #sql #interview #windows
4 Leetcode Mistakes
LeetCode 176: Second Highest Salary [SQL]
[MySQL] Leetcode 175. Combine Two Tables [SQL #5]
How To Solve LeetCode SQL Query Easy - 176 - Second Highest Salary
47. Second Highest Salary | SQL Interview Questions and Answers
LeetCode Medium 176 Amazon Interview SQL Question with Detailed Explanation
176. Second Highest Salary | 177. Nth Highest Salary| Leetcode SQL Medium
LeetCode Medium 177 'Nth Highest Salary' Amazon Bloomberg Interview SQL Question With Expl...
how the PROS solve leetcode and technical interview problems!
Product Sales Analysis I & II | Leetcode SQL Easy
Two sum | Leetcode problem solving #leetcode #java #shots
Let's do some exercise in LeetCode Database Problem (Second Highest Salary)
How many LeetCode problems should you solve? #leetcode #techinterview #developer #softwareengineer
Комментарии