LeetCode 175 | SQL Interview Questions on LeetCode

Поділитися
Вставка
  • Опубліковано 16 вер 2024
  • 𝐖𝐚𝐧𝐭 𝐭𝐨 𝐌𝐚𝐬𝐭𝐞𝐫 𝐒𝐐𝐋? 𝐋𝐞𝐚𝐫𝐧 𝐒𝐐𝐋 𝐭𝐡𝐞 𝐫𝐢𝐠𝐡𝐭 𝐰𝐚𝐲 𝐭𝐡𝐫𝐨𝐮𝐠𝐡 𝐭𝐡𝐞 𝐦𝐨𝐬𝐭 𝐬𝐨𝐮𝐠𝐡𝐭 𝐚𝐟𝐭𝐞𝐫 𝐜𝐨𝐮𝐫𝐬𝐞 - 𝐒𝐐𝐋 𝐂𝐡𝐚𝐦𝐩𝐢𝐨𝐧𝐬 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 𝐛𝐲 𝐒𝐮𝐦𝐢𝐭 𝐒𝐢𝐫!
    "𝐀 8 𝐰𝐞𝐞𝐤 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 𝐝𝐞𝐬𝐢𝐠𝐧𝐞𝐝 𝐭𝐨 𝐡𝐞𝐥𝐩 𝐲𝐨𝐮 𝐜𝐫𝐚𝐜𝐤 𝐭𝐡𝐞 𝐢𝐧𝐭𝐞𝐫𝐯𝐢𝐞𝐰𝐬 𝐨𝐟 𝐭𝐨𝐩 𝐩𝐫𝐨𝐝𝐮𝐜𝐭 𝐛𝐚𝐬𝐞𝐝 𝐜𝐨𝐦𝐩𝐚𝐧𝐢𝐞𝐬 𝐛𝐲 𝐝𝐞𝐯𝐞𝐥𝐨𝐩𝐢𝐧𝐠 𝐚 𝐭𝐡𝐨𝐮𝐠𝐡𝐭 𝐩𝐫𝐨𝐜𝐞𝐬𝐬 𝐚𝐧𝐝 𝐚𝐧 𝐚𝐩𝐩𝐫𝐨𝐚𝐜𝐡 𝐭𝐨 𝐬𝐨𝐥𝐯𝐞 𝐚𝐧 𝐮𝐧𝐬𝐞𝐞𝐧 𝐏𝐫𝐨𝐛𝐥𝐞𝐦."
    𝐇𝐞𝐫𝐞 𝐢𝐬 𝐡𝐨𝐰 𝐲𝐨𝐮 𝐜𝐚𝐧 𝐫𝐞𝐠𝐢𝐬𝐭𝐞𝐫 𝐟𝐨𝐫 𝐭𝐡𝐞 𝐏𝐫𝐨𝐠𝐫𝐚𝐦 -
    𝐑𝐞𝐠𝐢𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐋𝐢𝐧𝐤 (𝐂𝐨𝐮𝐫𝐬𝐞 𝐀𝐜𝐜𝐞𝐬𝐬 𝐟𝐫𝐨𝐦 𝐈𝐧𝐝𝐢𝐚) : rzp.io/l/SQLINR
    𝐑𝐞𝐠𝐢𝐬𝐭𝐫𝐚𝐭𝐢𝐨𝐧 𝐋𝐢𝐧𝐤 (𝐂𝐨𝐮𝐫𝐬𝐞 𝐀𝐜𝐜𝐞𝐬𝐬 𝐟𝐫𝐨𝐦 𝐨𝐮𝐭𝐬𝐢𝐝𝐞 𝐈𝐧𝐝𝐢𝐚) : rzp.io/l/SQLUSD
    𝐖𝐚𝐧𝐭 𝐭𝐨 𝐥𝐞𝐚𝐫𝐧 𝐁𝐢𝐠 𝐃𝐚𝐭𝐚 𝐛𝐲 𝐒𝐮𝐦𝐢𝐭 𝐒𝐢𝐫?
    𝐜𝐡𝐞𝐜𝐤𝐨𝐮𝐭 𝐭𝐡𝐞 𝐛𝐢𝐠 𝐝𝐚𝐭𝐚 𝐜𝐨𝐮𝐫𝐬𝐞 𝐝𝐞𝐭𝐚𝐢𝐥𝐬
    𝐖𝐞𝐛𝐬𝐢𝐭𝐞 : trendytech.in/...
    I have trained over 20,000+ professionals in the field of Data Engineering in the last 5 years.
    LeetCode 175 | SQL Interview Questions on LeetCode
    Do Like, Comment & Subscribe ..
    𝗝𝗼𝗶𝗻 𝗺𝗲 𝗼𝗻 𝗦𝗼𝗰𝗶𝗮𝗹 𝗠𝗲𝗱𝗶𝗮:🔥
    🔅Sumit LinkedIn - / bigdatabysumit
    🔅Sumit Instagram - / bigdatabysumit
    In this video, we will solve SQL question on LeetCode. LeetCode is an excellent platform for practicing SQL Queries. The SQL Questions on LeetCode are framed pretty similar to how they are asked on SQL Interviews hence solving SQL questions on LeetCode can give you a good hands on experience on solving real world SQL questions.
    #SQL #RDBMS #database #bigdata #dataengineering

КОМЕНТАРІ • 47

  • @sumitmittal07
    @sumitmittal07  2 роки тому

    Checkout the Big Data course details here: trendytech.in/?referrer=youtube_lc1

  • @vritika_sharma24
    @vritika_sharma24 2 роки тому +5

    Bhagwaan ho sir aap mere liye, I am from Finance background learning SQL, gone through so much content on UA-cam, but my concepts got clear after watching your SQL videos. Thanks 🙏 from bottom of my heart Sir...

    • @sumitmittal07
      @sumitmittal07  2 роки тому +1

      All the best. I am happy that you found the content helpful :)

    • @kumarsubash6167
      @kumarsubash6167 Рік тому

      @@sumitmittal07 Sir as a fresher how can I get data analysis job what skills required for fresher

  • @Zenoid_26
    @Zenoid_26 Рік тому +3

    Sir, you have a Great technique of teaching sql.I need more problem solving videos in this way of teaching….please sir do more videos about leetcode database problems ❤️❤️❤️❤️❤️❤️

  • @Sandip_Patle
    @Sandip_Patle 2 роки тому +3

    Very useful and astonishing content you're providing sir.
    Thank you very much🙏

  • @nahidachaus2385
    @nahidachaus2385 2 роки тому +1

    Interesting...🤩
    Understandable ...very useful 💯

  • @jsj757
    @jsj757 2 роки тому +2

    SQL is FUNtastic 🌻

  • @pranutabedru4395
    @pranutabedru4395 2 роки тому +2

    Yes I can hear now,thank you

  • @abhishekharihar9915
    @abhishekharihar9915 Рік тому

    very informative and helpful,thank you.

  • @mallikarjunpatil7553
    @mallikarjunpatil7553 2 роки тому +2

    It's been so long
    Waiting for the Video on SQL
    Thanks Sumit

  • @shaikusman536
    @shaikusman536 Рік тому

    Subscribed....Awsome sumit sir..thanks a ton....Respect from bangalore...

  • @shubhampokhriyal8491
    @shubhampokhriyal8491 2 роки тому +1

    Great

  • @zaffer2024
    @zaffer2024 2 роки тому +1

    Sirrrrr you are God

  • @jatinyadav8960
    @jatinyadav8960 2 роки тому

    useful waiting more videos on this series

  • @mukulraj6184
    @mukulraj6184 2 роки тому +1

    I really liked the way you teach. Simple and easy to understand. Thank you Sir ☺️

    • @sumitmittal07
      @sumitmittal07  2 роки тому

      You are most welcome :) Keep watching and learning.

  • @sagnikchakraborty734
    @sagnikchakraborty734 2 роки тому

    Thank you very much sir

  • @shubhamSharma-du4ir
    @shubhamSharma-du4ir 2 роки тому

    Thank You Sir

  • @SuperVikaskaushik
    @SuperVikaskaushik Рік тому

    sir, why we need right join we have left join in SQL. this qustion is not specific to problem we solved, infact in general, why right joins are there?

  • @faizansiddique5800
    @faizansiddique5800 Рік тому

    Please add more questions in playlist thanks in advance

  • @Foodie_Cooking_Loverz
    @Foodie_Cooking_Loverz Рік тому

    Can you share Advanced excel and Power Bi tutorials or study material

  • @dikshagupta5045
    @dikshagupta5045 2 роки тому +1

    Sir suppose if there is a case where we need to join two tables but we don't have any primary key, both tables have distinct columns so is it possible?

    • @sumitmittal07
      @sumitmittal07  2 роки тому

      It is not mandatory that the column on which you are performing the join to be a primary key

  • @vishalsingh-yj8bk
    @vishalsingh-yj8bk 2 роки тому

    Hi sir! Wont there be more videos on SQL cocepts ? . Has enough theory been taught in the playlist to tackle any question?.

  • @pradeepkumar6165
    @pradeepkumar6165 Рік тому

    Nice

  • @TanyaSingh-yb5hl
    @TanyaSingh-yb5hl 2 місяці тому

    please share the link of these 175 questions of leetcode..it would be very helpful

  • @ronakmodi2299
    @ronakmodi2299 Рік тому

    helpful!

  • @MAYANKKUMAR-kg5kc
    @MAYANKKUMAR-kg5kc 2 роки тому

    Hello sir, Can you please share tips to solve this problem statement ?
    There's a grocery store sales transaction table with columns Tnx ID, customer ID, product ID, Date of Tnx, quantity, price. Every sales transaction that happens at the store, gets stored in this table. The store also has a customers table with columns Customer ID, Customer Name, Age, Gender, and Locality.
    Write an SQL query to find the name and locality of the customer who purchased the highest number of items in the month of Oct’21.

  • @vutv5742
    @vutv5742 Рік тому

    We are still waiting for your upcoming sessions on Leet-code questions . Any update on it sir ?

  • @nishikantmohanty2774
    @nishikantmohanty2774 2 місяці тому

    Is the playlist complete?

  • @varunpatnana7850
    @varunpatnana7850 Рік тому

    could you please explain the question 197

  • @ManojKumar-ur6wl
    @ManojKumar-ur6wl 2 роки тому +1

    Sir, u can use lent code to access premium questions for free

    • @sumitmittal07
      @sumitmittal07  2 роки тому

      okay sure, I will try.

    • @sukanyaiyer2671
      @sukanyaiyer2671 2 роки тому

      That would be very useful

    • @vishalkarur5366
      @vishalkarur5366 2 роки тому

      Hey bro what is lent code ? Can we get premium questions for free anywhere ? Please let me know
      Thanks

  • @nocode659
    @nocode659 2 роки тому

    hi sir please check, leetcode may give copystrike

    • @sumitmittal07
      @sumitmittal07  2 роки тому +1

      I don't think.. I just researched on it, and lot of creators have used leetcode in their videos

  • @nikhilpatel7422
    @nikhilpatel7422 2 роки тому

    I am worried and I hope there won't be any legal issue since you're using leetcode intellectual property.

    • @sumitmittal07
      @sumitmittal07  2 роки тому

      Oh is it.. I will check this out. If anyone have idea on this then do let me know. But the platform is public atleast the free questions

  • @pranutabedru4395
    @pranutabedru4395 2 роки тому

    There is no voice in recording

  • @email465
    @email465 Рік тому

    Table: Employee
    +--------------+---------+
    | Column Name | Type |
    +--------------+---------+
    | id | int |
    | name | varchar |
    | salary | int |
    | departmentId | int |
    +--------------+---------+
    id is the primary key column for this table.
    departmentId is a foreign key of the ID from the Department table.
    Each row of this table indicates the ID, name, and salary of an employee. It also contains the ID of their department.

    Table: Department
    +-------------+---------+
    | Column Name | Type |
    +-------------+---------+
    | id | int |
    | name | varchar |
    +-------------+---------+
    id is the primary key column for this table.
    Each row of this table indicates the ID of a department and its name.

    A company's executives are interested in seeing who earns the most money in each of the company's departments. A high earner in a department is an employee who has a salary in the top three unique salaries for that department.
    Write an SQL query to find the employees who are high earners in each of the departments.
    Return the result table in any order.
    The query result format is in the following example.

    Example 1:
    Input:
    Employee table:
    +----+-------+--------+--------------+
    | id | name | salary | departmentId |
    +----+-------+--------+--------------+
    | 1 | Joe | 85000 | 1 |
    | 2 | Henry | 80000 | 2 |
    | 3 | Sam | 60000 | 2 |
    | 4 | Max | 90000 | 1 |
    | 5 | Janet | 69000 | 1 |
    | 6 | Randy | 85000 | 1 |
    | 7 | Will | 70000 | 1 |
    +----+-------+--------+--------------+
    Department table:
    +----+-------+
    | id | name |
    +----+-------+
    | 1 | IT |
    | 2 | Sales |
    +----+-------+
    Output:
    +------------+----------+--------+
    | Department | Employee | Salary |
    +------------+----------+--------+
    | IT | Max | 90000 |
    | IT | Joe | 85000 |
    | IT | Randy | 85000 |
    | IT | Will | 70000 |
    | Sales | Henry | 80000 |
    | Sales | Sam | 60000 |
    +------------+----------+--------+
    Explanation:
    In the IT department:
    - Max earns the highest unique salary
    - Both Randy and Joe earn the second-highest unique salary
    - Will earns the third-highest unique salary
    In the Sales department:
    - Henry earns the highest salary
    - Sam earns the second-highest salary
    - There is no third-highest salary as there are only two employees
    Sumit (not sumbit) sir, Please this one sir, apka bataya hua direct dimag me jata hai🙏

  • @alkuddus5297
    @alkuddus5297 2 роки тому

    mqenuuyh
    vun.rent