Sequence Puzzle | SQL Scenario interview question (Amazon data engineering interview)

Поділитися
Вставка
  • Опубліковано 22 січ 2024
  • DML Script: datasculptor.blogspot.com/202...

КОМЕНТАРІ • 6

  • @ChandrashekarReddyY-hp4rl
    @ChandrashekarReddyY-hp4rl Місяць тому

    Amazing Content

  • @MusicalShorts-hn1px
    @MusicalShorts-hn1px Місяць тому

    Thanks ! Keep posting more such problems

  • @kra1071
    @kra1071 3 місяці тому +1

    Seems like a good question sir. Thanks for sharing

    • @datasculptor2895
      @datasculptor2895  3 місяці тому

      Thanks. Please like share and subscribe to my channel 🙏

  • @DE_Pranav
    @DE_Pranav 3 дні тому

    select name, min(sequence)[min], max(sequence)[max] from
    (select *,
    sequence-ROW_NUMBER() over (partition by name order by sequence) as grp
    from SequenceData)a
    group by name,grp