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

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

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

  • @arhaam_val
    @arhaam_val 2 месяца назад +1

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

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

    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👍👏🙌

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

    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 9 месяцев назад +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🙏👌

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

    7:09 Emotional Damage🥹🥲

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

    Thank you bhai - ( for the Case statement )

  • @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 8 месяцев назад

      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

  • @user-gi7tz7ke6f
    @user-gi7tz7ke6f 6 месяцев назад +1

    Thank you bro .. Nice teaching

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

    Very nice and informative SQL videos
    Thank you very much

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

    Thank you so much sir

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

    maza agaya sir

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

    You made SQL easy bro!

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

    Really very good explanation bro

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

    well explained thanks for that

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

    Business Analyst Cours ka full tutorial bnay hindi me plz sir

  • @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

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

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

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

    Well explained Sir👍

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

    Thanks bro ❤

  • @fog2640
    @fog2640 9 месяцев назад +1

    finished watching

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

    good work. Keep it up

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

    Select sabkuch was 😅fun

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

    same like for loop in python

  • @Mr.tricks.
    @Mr.tricks. 8 дней назад

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

  • @SC-mx4wp
    @SC-mx4wp Месяц назад

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

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

    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

  • @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

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

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

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

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

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

      @@datalover120 thanks bro..

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

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

    • @RishabhMishraOfficial
      @RishabhMishraOfficial  Год назад +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

  • @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

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

    I am also Gareeb Customer🤣😂

  • @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 11 месяцев назад +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.

  • @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''. 😂😂

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

    Bhai odia ki?

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

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

  • @AkashKumar-jl3sw
    @AkashKumar-jl3sw Месяц назад

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