In the first part of this video we are going to discuss how recursive CTE works. In second part we will discuss a leet code SQL hard problem where we will be using recursive CTE concept.
Playlist for complex SQL questions:
• Complex SQL Questions for Interview Prepar...
create and insert script for this problem. Do try yourself without using CTE.
create table sales (
product_id int,
period_start date,
period_end date,
average_daily_sales int
);
insert into sales values(1,'2019-01-25','2019-02-28',100),(2,'2018-12-01','2020-01-01',10),(3,'2019-12-01','2020-01-31',1);
In questa pagina del sito puoi guardare il video online Recursive CTE | Leetcode Hard SQL Problem 5 | Complex SQL 12 della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Ankit Bansal 01 marzo 2022, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 53,218 volte e gli è piaciuto 1.2 mille spettatori. Buona visione!