- Популярные видео
- Авто
- Видео-блоги
- ДТП, аварии
- Для маленьких
- Еда, напитки
- Животные
- Закон и право
- Знаменитости
- Игры
- Искусство
- Комедии
- Красота, мода
- Кулинария, рецепты
- Люди
- Мото
- Музыка
- Мультфильмы
- Наука, технологии
- Новости
- Образование
- Политика
- Праздники
- Приколы
- Природа
- Происшествия
- Путешествия
- Развлечения
- Ржач
- Семья
- Сериалы
- Спорт
- Стиль жизни
- ТВ передачи
- Танцы
- Технологии
- Товары
- Ужасы
- Фильмы
- Шоу-бизнес
- Юмор
Shortest Distance #sqlfordataengineer #faangpreparation #interviewquestions #deinterview #sql #faang
Advanced SQL 50 Question 29: Shortest Distance
Full Video: https://www.youtube.com/watch?v=lGqeazsKBws
Video 345: This is the 29th video of the SQL Interview Question series.
We are given Point table which stores the position of a point on the x-axis
Its the primary key for the table and won't get repeated, means no two points repeat in this table
We are asked to find the shortest distance between any two points from the Point table
In this video, we'll explore three different SQL approaches to solve this problem:
*** Approach 1: Self Join ***
This method involves performing a self join on the Point table to calculate the absolute differences between all pairs of points.
*** Approach 2: Using Window Functions ***
Here, we sort the points and use window functions to calculate the differences between adjacent points, making it efficient and straightforward.
Each approach provides a unique way to identify the shortest distance between points, showcasing various SQL techniques and their applications.
For a comprehensive understanding of these SQL methodologies and their application, please refer to this explanatory video.
code: https://github.com/jeganpillai/adv_sql_50_questions/blob/main/adv50_29_shortest_distance.sql
Follow me on,
Website : https://growwithdata.co/
YouTube : https://www.youtube.com/@growwithdata
TikTok : https://www.tiktok.com/@growwithdata
LinkedIn : https://www.linkedin.com/company/growwithdata/
Facebook : https://www.facebook.com/growwithdata.co/
FB Group : facebook.com/groups/datainterviewpreparation
twitter : https://twitter.com/growwithdata_co
Instagram : https://www.instagram.com/growwithdata.co/
WhatsApp : https://whatsapp.com/channel/0029VaF8pkb77qVNfbp5pA0S
TheWide : https://thewide.com/profile/891
#sql #dataengineers #tablejoins #ceil #floor #bucket #meta #google #facebook #apple #paypal #netflix #amazon #deinterview #sqlinterview #interviewquestions #leetcode #faang #maanga #mysql #oracle #dbms #query #sqlserver #mysql #coderpad #aggregates #aggregation #nonaggregation #database #placementpreparation #lead #lag #windowsfunction #nullcheck #coalesce #sqlperformance #ifnull #case #lead #lag #windowsfunction #tamil #tamilpython #tamilinterview #tamilinterviewlatest #tamilinterviewquestions #sqlintamil
Видео Shortest Distance #sqlfordataengineer #faangpreparation #interviewquestions #deinterview #sql #faang канала Grow with Data
Full Video: https://www.youtube.com/watch?v=lGqeazsKBws
Video 345: This is the 29th video of the SQL Interview Question series.
We are given Point table which stores the position of a point on the x-axis
Its the primary key for the table and won't get repeated, means no two points repeat in this table
We are asked to find the shortest distance between any two points from the Point table
In this video, we'll explore three different SQL approaches to solve this problem:
*** Approach 1: Self Join ***
This method involves performing a self join on the Point table to calculate the absolute differences between all pairs of points.
*** Approach 2: Using Window Functions ***
Here, we sort the points and use window functions to calculate the differences between adjacent points, making it efficient and straightforward.
Each approach provides a unique way to identify the shortest distance between points, showcasing various SQL techniques and their applications.
For a comprehensive understanding of these SQL methodologies and their application, please refer to this explanatory video.
code: https://github.com/jeganpillai/adv_sql_50_questions/blob/main/adv50_29_shortest_distance.sql
Follow me on,
Website : https://growwithdata.co/
YouTube : https://www.youtube.com/@growwithdata
TikTok : https://www.tiktok.com/@growwithdata
LinkedIn : https://www.linkedin.com/company/growwithdata/
Facebook : https://www.facebook.com/growwithdata.co/
FB Group : facebook.com/groups/datainterviewpreparation
twitter : https://twitter.com/growwithdata_co
Instagram : https://www.instagram.com/growwithdata.co/
WhatsApp : https://whatsapp.com/channel/0029VaF8pkb77qVNfbp5pA0S
TheWide : https://thewide.com/profile/891
#sql #dataengineers #tablejoins #ceil #floor #bucket #meta #google #facebook #apple #paypal #netflix #amazon #deinterview #sqlinterview #interviewquestions #leetcode #faang #maanga #mysql #oracle #dbms #query #sqlserver #mysql #coderpad #aggregates #aggregation #nonaggregation #database #placementpreparation #lead #lag #windowsfunction #nullcheck #coalesce #sqlperformance #ifnull #case #lead #lag #windowsfunction #tamil #tamilpython #tamilinterview #tamilinterviewlatest #tamilinterviewquestions #sqlintamil
Видео Shortest Distance #sqlfordataengineer #faangpreparation #interviewquestions #deinterview #sql #faang канала Grow with Data
sql Data Engineering coalesce ifnull DE Interview sql interview interview questions leetcode FAANG MAANG mysql oracle dbms sqlserver sql server database placement preparation table joins inner join left join right join full join apple paypal netflix meta google facebook amazon maanga aggregation windows function rank dense rank group by lead windowsfunction glassdoor rolling average lag top rows tamil sql in tamil tamil sql tamilsqlinterview tamil interview
Комментарии отсутствуют
Информация о видео
5 августа 2024 г. 19:25:56
00:00:41
Другие видео канала




















