Monthly Transactions I | Leetcode 1193 | Crack SQL Interviews in 50 Qs

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

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

  • @learnwithchirag
    @learnwithchirag  8 месяцев назад

    Hey there! 👋 For more interesting content, tutorials, and updates, Feel free to connect with me on
    Instagram Handles :-
    @createwithchirag - instagram.com/createwithchirag/
    @learn.with.chirag - instagram.com/learn.with.chirag/
    LinkedIn: www.linkedin.com/in/chirag-sehgal-9200111b8/
    Let's stay connected and keep the creativity flowing! 💡

  • @ashutoshrastogi5381
    @ashutoshrastogi5381 Год назад +3

    Your videos are very informative, and good to learn and practice about the concepts of SQL....👍

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

      Glad to hear that! Keep supporting ❤️

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

      @@learnwithchirag 😇will the playlist get updated day to day? As the last update was 3 days earlier....☺

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

      ​@@ashutoshrastogi5381 Due to my exams this month, I've been uploading videos less frequently. However, starting from November 26th, I plan to upload videos daily. So Stay Tuned😄

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

    Nice explanation sir!!!!!

  • @yashiktaneja673
    @yashiktaneja673 19 дней назад

    As per sql queru execution order group by is executed before select so how is the aliased name month working with group by before the execution of select statement

  • @apoorvpradhan5125
    @apoorvpradhan5125 4 месяца назад

    Thank you bhaiya. 🙏🏻

  • @shreyaraj6791
    @shreyaraj6791 3 месяца назад +2

    Bhaiya, I tried writing COUNT( state = 'approved' ) as approved_count. But this doesn't work, only SUM works. Why is it so?

    • @mishrakartik100
      @mishrakartik100 Месяц назад

      I too have same doubt . Have you figured it out?

    • @AmartyaTalukdarch21b012
      @AmartyaTalukdarch21b012 25 дней назад

      Reason behind COUNT (state = 'approved') not working is because, state = 'approved' returns either 1 (true) or 0 (false), COUNT functions counts all types of NON-NULL values, meaning that both 0 and 1 will be counted in this case.
      Reason behing SUM working, is that it calculates the sum of the output (state = 'approved') provides. Hence 0 + 1 will give 1, whereas COUNT(0, 1) will give 2

    • @MR.CLEVERINDIAN
      @MR.CLEVERINDIAN 25 дней назад

      check your all commas that's it

  • @krishnabohidar7226
    @krishnabohidar7226 Месяц назад

    why did we use sum(state = 'approved') as approved_count
    not count function
    when I used count it gave me error, please make me understand this.

    • @MR.CLEVERINDIAN
      @MR.CLEVERINDIAN 25 дней назад

      just check your all commas is there or not if missing it won't work

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

    sir ek question ko kitne der tak time dena hota h before watching soln?
    kya sbse ek hi baar me solve ho jate h ya mujh jese logo ko sln dekan padta h jadatar?
    or kyi baar soln dekne k baad solve ho jata h fir vapis solve kre kafi time baad to nhi hota?

    • @learnwithchirag
      @learnwithchirag  8 месяцев назад +3

      yeh sabke saath hota hai !
      first read the question and try to understand it ! ....If you are not able to understand the question then watch my question explanation !
      after that try to solve query yourself first ! break the query in steps and try to solve it ! ......if not able to do then watch my solution and query explanation !.......
      also if you were finding it very hard to solve then bookmark the question and after completing the playlist go and try again that question !
      don't give more than 10-15 min on thinking a query ! ...you won't be getting that much time for SQL in interviews and online assessments.

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

    wow! thankss

  • @SajanKumar-ec2us
    @SajanKumar-ec2us 2 месяца назад

    not clear transction count