How to Write SQL with CTE | SQL With Clause | Common Table Expression

Поделиться
HTML-код
  • Опубликовано: 27 ноя 2024

Комментарии • 22

  • @harshalpatil6535
    @harshalpatil6535 Год назад +5

    One thing i liked the most from you Ankit, You covers single topic in very less time. So it is easy to watch as well as understandable. Keep going mate.

  • @KanchanChand-p9d
    @KanchanChand-p9d Год назад +1

    Just a suggestion you can move this video at top of the playist . I have been following your playist this is used quite a several time.

  • @varunl6948
    @varunl6948 11 месяцев назад

    Thanks for this!

  • @kartikkasat
    @kartikkasat 2 года назад

    Much awaited video..thanks!

  • @skblabla
    @skblabla Год назад +2

    Hi Ankit, what is max(avg_sal)?, wont avg_sal be a single value for the table.
    why do we need to find max(avg_sal) in that case?

    • @iffipifi1
      @iffipifi1 5 месяцев назад +1

      He said it doesn't make sense, it's just to point out that you can make ctes with other ctes

  • @ritudahiya6223
    @ritudahiya6223 Год назад +1

    Hi ankit.. Thank you so much for your efforts.. Can you please make more c
    Videos on how to use cte and view in real world data like how we work in a company. It would be really helpful.. Waiting for your reply

  • @hasanmougharbel8030
    @hasanmougharbel8030 2 года назад +1

    Hey there,
    God bless your efforts.
    I am new to sql language with a simple enquiry.
    How are ctes different than a cursor?
    Aren't they both considered as temporary result sets?
    Thanks for taking care of this.

    • @ankitbansal6
      @ankitbansal6  2 года назад +1

      Ctes are just subquery . Cursor is completely different concepts.

    • @hasanmougharbel8030
      @hasanmougharbel8030 2 года назад

      @@ankitbansal6 is there any main difference i can differentiate between both? Thanks for taking time on this

  • @kneelakanta8137
    @kneelakanta8137 11 месяцев назад +1

    Can we create a table in database using the cte result, if yes, how?
    I have faced this question in interview, pls share what we can say?

    • @ankitbansal6
      @ankitbansal6  11 месяцев назад +2

      Yes you just say create table tablename as
      With cte ()
      Select

  • @indergaming3053
    @indergaming3053 Год назад +1

    ankit bhai table b provide kar dia karo please

  • @bidhanry9740
    @bidhanry9740 7 месяцев назад

    Is join necessary, can we do it without join?

  • @HimSha07
    @HimSha07 Год назад

    can we do this without inner join?

  • @SantanuPuhan
    @SantanuPuhan 9 месяцев назад

    nice

  • @SACHINKUMAR-px8kq
    @SACHINKUMAR-px8kq Год назад

    Thankyou Sir

  • @abhishek_grd
    @abhishek_grd 2 года назад

    Great !

  • @vigneshnagaraj7137
    @vigneshnagaraj7137 2 года назад +1

    How about the data?