SQL Case Statement/Expression with Examples | WHEN THEN ELSE in sql | SQL Tutorial in Hindi 15

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

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

  • @Khan-mc3gi
    @Khan-mc3gi Год назад +4

    I am non i.t background i was thinking sql will be difficult for me to learn then i start watch your video u made us sql very easy and explain outstanding way to sql u are great person thanks alot sir👍👏🙌

  • @arhaam7
    @arhaam7 6 месяцев назад +1

    Thank you so much for this tutorial! 3 weeks of SQL done, started 4th week today. 🎉

  • @mahidubey633
    @mahidubey633 7 месяцев назад +5

    7:09 Emotional Damage🥹🥲

  • @rithikahuja8203
    @rithikahuja8203 Год назад +4

    Greatest and easiest explanation of every topic ❤❤thank you rishabh bhaiya for this tutorial

  • @kaminibobade6539
    @kaminibobade6539 Год назад +4

    You have explained it in superb way , thank you so much and please share more projects of sql

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

    good explain thank you rishabh sir .sql kabhi sikhi nhi thi abhi kafi kuch sikh gaya apki simple tariko se kafi simple lag raha hai thank you for all🙏👌

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

    Thank you bhai - ( for the Case statement )

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

    Very nice and informative SQL videos
    Thank you very much

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

    You made SQL easy bro!

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

    hello Rishabh, firstly I would like to say thank you for all the videos that you have uploaded regarding SQL, I have learned lots of things from here, my problem is I am unable to recognize which query I should use for which scenario . do you have any suggestion for that ??

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

      Yes, it happens in the beginning. Solution is easy practice more sql questions

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

      i have the same problem. i started learning sql 5 days ago (I'm from a non-tech background).. i think i understand the basic concepts but when i try to solve problems, i get confused about which query to use and I often don't remember the syntax so i have to look at the solution all the time.. is this common for beginners or i need to do anything else? @@RishabhMishraOfficial

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

    Really very good explanation bro

  • @ApurvGolatgaonkar
    @ApurvGolatgaonkar 10 месяцев назад +1

    Thank you bro .. Nice teaching

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  10 месяцев назад

      Glad you liked ✅️

    • @GauravSalunkhe-u2v
      @GauravSalunkhe-u2v Месяц назад

      Hi could you please make the video where can we build the logic for sql in product based organisations

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

    Thank you so much sir

  • @dr.nehachaudhry3526
    @dr.nehachaudhry3526 Год назад +1

    Well explained Sir👍

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

    well explained thanks for that

  • @Aligarh_pahalwan
    @Aligarh_pahalwan Месяц назад +1

    Thanks sir 🙏

  • @nishikantanayak7797
    @nishikantanayak7797 6 месяцев назад +1

    maza agaya sir

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

    good work. Keep it up

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

    Thanks bro ❤

  • @virendrakashyap4588
    @virendrakashyap4588 3 месяца назад

    7:07
    jo log gareeb hai hum logo ki tarahh 🤣😂🤣
    kya baat hai sir itna sach nhi bolna tha😅

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

    SO i want to ask that what is requirement of case statement if we can get values from case expression
    please tell me , i have become ur fan

  • @turkeyjobsprovider
    @turkeyjobsprovider 2 года назад +4

    Business Analyst Cours ka full tutorial bnay hindi me plz sir

  • @guddy23k
    @guddy23k 7 месяцев назад +1

    Select sabkuch was 😅fun

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

    Thanks for aplaod these awesome lectures but please also drop link of data set in description.

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

    finished watching

  • @fit_tubes_365
    @fit_tubes_365 Месяц назад +1

    Thanks

  • @SC-mx4wp
    @SC-mx4wp 5 месяцев назад

    BHAI, 99% APNE BOLA VAISE HI HOTA HAI 🎉🎉🎉😂❤

  • @AkashKumar-jl3sw
    @AkashKumar-jl3sw 5 месяцев назад +1

    07:09 jo bhi gareeb hai ham logo ki tarha, bhai kyu hamari le rahe ho RUclips pe😂😂

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

    Sir, how to write case statements using CTE?? please can you tell..

    • @datalover120
      @datalover120 10 месяцев назад +1

      with cte
      as
      (
      select *,
      case
      when quantity =3 and quantity

    • @biswajeetdhal5364
      @biswajeetdhal5364 10 месяцев назад

      @@datalover120 thanks bro..

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

    Ek table hai jisme ek age column hai usme query lagani hai jisse age smaller than 18 is child and age greater than 18 is adult ho

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

      U have to use case statement n update the values based on conditions (age > 18 , etc)
      Sample query:
      SELECT count(*), * FROM ( select case when age_c

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

    You have given END AS CustomerStatus but after query the column name comes in lowercase.Is SQL internally change to lower case in all alias cases?

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

      Yes most of the sql database are not case sensitive but it's good practice to follow case sensitive in queries as it helps to improve readability

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

    Can you please tell me how to wtite query when cust_id is null then cust_name should be 'not applicable'

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

      Easy,
      UPDATE table_name
      SET cust_name = 'not applicable'
      WHERE cust_id IS NULL

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

      @@RishabhMishraOfficial just want to display it in result set not in table

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

      @@RishabhMishraOfficial dont want to update in table

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

    Does this "case statement" stores the data temporarily? Because after this case i used only select * from ___. that case values didnt show up. what might be the error?

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

      If you want to store it then use update statement instead of select like update tableName set colName = Case When Amt >=500 then "Expensive product"
      End; try like this and after that use select for display it.

  • @SagarKumar-nh3no
    @SagarKumar-nh3no 2 года назад +1

    Sir, if possible, please upload the video on daily basis and complete this course..

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

      Hi Sagar, this course is almost complete only one last video is left on- CTE (imp topic in sql). Then we will practice advance/complex interview problems on sql

  • @onlysuhailff
    @onlysuhailff 8 месяцев назад +4

    I am also Gareeb Customer🤣😂

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

    sir its coming as syntax error in postgre sql 15 at when statement
    query i wrote is same as yours
    SELECT customer_id,amount
    CASE
    WHEN amount > 70 THEN 'Expense Product'
    WHEN amount = 70 THEN 'Moderate Product'
    Else 'Inexpensive'
    END AS Product,
    From payment

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

      there is a comma after amount in the select statement

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

      @@piali1234 yeah i solved it beo thanks

  • @DeepakV-jf3nb
    @DeepakV-jf3nb Год назад +1

    The kind of explanation is good ''Mehengawala'', ''Sastawala''. 😂😂

  • @harshamannem5006
    @harshamannem5006 5 месяцев назад

    Bro. I think you have confused difference between simple and searches case statements with difference of case statements and expressions. The concept you explained in this video is simple and searched case expressions

  • @Mr.tricks.
    @Mr.tricks. 4 месяца назад

    sir mera es baar error araha hai
    LINE 3: WHEN amount > 50 then 'expensive product'
    ^
    how to solve this error sir please reply

    • @mitheshshetty5842
      @mitheshshetty5842 2 месяца назад

      type 'then' in caps....see whether it works or not

  • @poojasarkar2300
    @poojasarkar2300 5 месяцев назад

    same like for loop in python

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

    Bhola not sab kuch it is all records...you are a real Bhola urf Tambola🤣🤣🤣

  • @satyamsingh3511
    @satyamsingh3511 2 года назад +2

    Bhai odia ki?