filmov
tv
Solving a REAL Business Use Case Using SQL | Business Days Excluding Weekends and Public Holidays
Показать описание
In this video we are going to solve a very important business use case where we need to find difference between 2 dates excluding weekends and public holidays . Basically we need to find business days between 2 given dates using SQL.
Zero to hero(Advance) SQL Aggregation:
Most Asked Join Based Interview Question:
Solving 4 Trick SQL problems:
Data Analyst Spotify Case Study:
Top 10 SQL interview Questions:
Interview Question based on FULL OUTER JOIN:
Playlist to master SQL :
Rank, Dense_Rank and Row_Number:
script:
create table tickets
(
ticket_id varchar(10),
create_date date,
resolved_date date
);
delete from tickets;
insert into tickets values
(1,'2022-08-01','2022-08-03')
,(2,'2022-08-01','2022-08-12')
,(3,'2022-08-01','2022-08-16');
create table holidays
(
holiday_date date
,reason varchar(100)
);
delete from holidays;
insert into holidays values
('2022-08-11','Rakhi'),('2022-08-15','Independence day');
#sql #business #days #analytics
Zero to hero(Advance) SQL Aggregation:
Most Asked Join Based Interview Question:
Solving 4 Trick SQL problems:
Data Analyst Spotify Case Study:
Top 10 SQL interview Questions:
Interview Question based on FULL OUTER JOIN:
Playlist to master SQL :
Rank, Dense_Rank and Row_Number:
script:
create table tickets
(
ticket_id varchar(10),
create_date date,
resolved_date date
);
delete from tickets;
insert into tickets values
(1,'2022-08-01','2022-08-03')
,(2,'2022-08-01','2022-08-12')
,(3,'2022-08-01','2022-08-16');
create table holidays
(
holiday_date date
,reason varchar(100)
);
delete from holidays;
insert into holidays values
('2022-08-11','Rakhi'),('2022-08-15','Independence day');
#sql #business #days #analytics
Комментарии