filmov
tv
Display consecutive days for which conditions are satisfied | Tricky SQL Interview Question

Показать описание
In this video we discuss a query which deal with finding consecutive days for which some conditions are met.
This is a very commonly asked interview questions and the concept used in the video can be used to solve similar queries.
DDL for table and DML for the tables used are given below:
--table stadium
--table creating
create table stadium(
id int,
visit_date date,
people int
)
--insert data into table stadium
insert into stadium(id,visit_date,people)
values(1,'2022-01-01',10),
(2,'2022-01-02',109),
(3,'2022-01-03',150),
(4,'2022-01-04',99),
(5,'2022-01-05',150),
(6,'2022-01-06',145),
(7,'2022-01-07',199),
(8,'2022-01-08',188),
(9,'2022-01-09',99),
(10,'2022-01-10',109),
(11,'2022-01-11',150),
(12,'2022-01-12',100),
(13,'2022-01-13',89),
(14,'2022-01-14',121),
(15,'2022-01-15',145)
#dataprojecthub
#data_project_hub
#sqlqueries #sqlinterviewquestions
#dataanalytics
This is a very commonly asked interview questions and the concept used in the video can be used to solve similar queries.
DDL for table and DML for the tables used are given below:
--table stadium
--table creating
create table stadium(
id int,
visit_date date,
people int
)
--insert data into table stadium
insert into stadium(id,visit_date,people)
values(1,'2022-01-01',10),
(2,'2022-01-02',109),
(3,'2022-01-03',150),
(4,'2022-01-04',99),
(5,'2022-01-05',150),
(6,'2022-01-06',145),
(7,'2022-01-07',199),
(8,'2022-01-08',188),
(9,'2022-01-09',99),
(10,'2022-01-10',109),
(11,'2022-01-11',150),
(12,'2022-01-12',100),
(13,'2022-01-13',89),
(14,'2022-01-14',121),
(15,'2022-01-15',145)
#dataprojecthub
#data_project_hub
#sqlqueries #sqlinterviewquestions
#dataanalytics
Display consecutive days for which conditions are satisfied | Tricky SQL Interview Question
Counting consecutive days with sales - Unplugged #47
Find top 2 users who have logged in most consecutive days #sql #shorts #coding #dataanalytics
SQL tutorial | How to find n consecutive date records | Sales for at least n consecutive days.
Consecutive days with no sales - Unplugged #18
Practice Complex SQL Queries | SQL Query to fetch N consecutive records
Find all the customers who placed order on two consecutive days #shorts #coding #sql #sqlqueries
Consecutive Days Problem using SQL | Data Science Problem
NAKA 1K FOLLOWERS KANA BA SA FACEBOOK PERO HINDI KA PARIN ELIGIBLE SA STARS ON REELS(FIX NATIN YAN)
SQL : difference between two consecutive date in days in sql server
SQL : Customer With Maximum Number Of Transactions On Consecutive Days
How to Autofill Dates in Microsoft Excel
Consecutive Leaves
Consecutive Days in Teradata
How to Write Advance SQL Queries | Consecutive Empty Seats | SQL Interview Questions
How to find all the customers who placed orders on three consecutive days | SQL Scenario questions
SQL : PostgreSQL: find number of consecutive days up until now
Hard - SQL Query - Interview - Find students absent for more than 2 consecutive days - Amazon
SQL Challenges #18: Finding Customers With Transactions On 5 Or More Consecutive Days.
IS FIVE HUNDREDS FOLLOWERS FOR 30 CONSECUTIVE DAYS
How to calculate consecutive Saturdays or any days of a month | Calculate nth day of any week
SQL Query Interview Question - Scenario - No sales for n consecutive days | Identify date gaps
SQL : SQL count consecutive days
2017 new Riddle Just try this...( Three Consecutive Days )....!!!
Комментарии