Writing CASE WHEN Statements in SQL (IF/THEN)
HTML-код
- Опубликовано: 9 июл 2024
- Step-by-step tutorial shows you how to use the CASE WHEN statement in SQL to execute IF/THEN statements that customize your output!
Get the Northwind Database: • How to Load a Sample P...
Support the Channel:
1) Subscribe: www.becomingads.com/o/youtube
2) DataCamp:
3) Udacity: Наука
An afternoon binge-watching your SQL videos is time well spent! Thank you for taking the time to make them. Subscribed.
That's awesome Sarah!! So happy to have helped ya out!
I'm using your videos as quick (yet pretty comprehensive!) introductions to the topics you cover. For that, you go at a perfect pace and level of detail for me. And you are always to the point, with no excessive intros. Simplicity is great! The overall quality is also pretty good. Thanks a lot for all your work and enthusiasm. Please keep going! :)
Dude, you are legit the best. I have watched so many Coursera's and taken so many classes, and you by-far explain everything THE BEST. Keep on rocking.
Thank you! You’re a good teacher 🙏🏻
Just the tutorial I need. Thank you so much!🤩
i have gone through many videos on youtube but I find my solution here at the end. thanks for making this video.
Your videos have been so helpful. Thank you!!!
You are an excellent teacher. Thank you!
Your videos are amazing, thank you so much!!!
These videos were really helpful! Thanks a ton!
It was right to the point. Thank you for a wonderful lesson.
Just want to say thank u for this great mysql tutorials
*Y repentinamente un comentario en español* xD
Es justo lo que estaba buscando, te agradezco.
Este canal es extremadamente útil.
¡un saludo Nathan!
Thank you so much for such a great content . It really helped me a lot.
Amazing explanation, thank you this helped a lot
Thank u I watched all sql playlist u r the best
That you Nathan. You’ve earned a new subscriber
Your Video was perfect! Thank You
Thanks so much for the great video!
It's very helpful! Thank you.
Thank you for this very useful video!
Thank you so much for the help
Great explanation! Thanks
Thx a lot, it helps me a lot
great video, thank you!
Subscribed big time, thank you brother
Your videos are awesome!!! I'm currently taking a course and your second explanation is exactly what I need to understand the concepts better! Thank you! Please continue :) Already subscribed.
Very helpful video, thank you :)
Very clear, thanks
u r the man, thankxxxxxxx
Thank you... It's helpful
Good intro into Case, thanks.
Great explanation
please continue with the database videos, if you could do some on T-SQL and SSM it'd be great!
Thanks very useful
Supporting the excellent wrk:)
You're the best!
Hi Nathan, your videos are amazing. I watched all about sql and helped me a lot. I find you stop uploading new videos. Could you please do your video again. I am sure they help a lot of people on the planet of Earth.
Awesome thank you!
Is it possible to add multiple case statements in one query? How would I do that?
Thanks!
verry good content
Jurassic Park: We're gonna make a fortune with this script....
I have been engaged to Udemy couse on MS SQL server, but some explainations are hard to understand. Whenever I have doubt This is where I go to. Keep making videos please. Thanks
Thanks
Hey man, awesome tutorials. Is there anything coming on Window Functions?
thanks : )
waiting for new videos!!
good job
good tutorial, I am a bit confused about the sum(frieght) shouldn't the sum be increasing as we go down ?
right on man thanks very helpful and informative supplementation of my education when i dont understand them in how they describe it
btw im wondering, I am almost done my SQL and i heard that i could find a foot in the door kind of job with just SQL. Is this true? how do i find it?
thank kyu mr
Awesine series, can you do one on correlated subqueries?
Can the Then output be another column rather than a text?
Hello, I have a huge Case statement query that groups a column into buckets, I am trying to count how many patients are in each bucket, How do I do that?The case statement does let me use the count function. Thanks
more sql videos pls :)
DO MORE SQL VIDEOS PLEASE!!!!
Question: is it possible to then sort out your results so that all the customers within the same weight range are listed together? For example, all the "heavy" customers are ordered first, then all the "medium" customers, then all the "light" customers? All within the same output?
if you do order by freight it would effectively do what ur askin
Can you make video about solving complex sql problem
tomorrow is my final exam, thanks :)
how to Write a query to display EMPLOYEES having ID 101,102,103 as per the
below order: 1. 101, 2. 103, 3. 102 (Hint: Union Operator / Case Statement)
QUERY
interest!
thank you so much, did you stop posting videos?
Very Nice. Can I use logic after WHEN? let's say: WHEN (condition_A AND condition_B) THEN something.
Yes, you can.
I love your content but you should zoom in a bit.. too much empty space and we cannot see the letters without high definition when on mobile
SELECT UnitsOnOrder, CASE
WHEN UnitsOnOrder > UnitsInStock THEN 'a'
else 'test'
End as BestellingenStock
FROM Orders;
01:46:40 SELECT UnitsOnOrder, CASE WHEN UnitsOnOrder > UnitsInStock THEN 'a' else 'test' End as BestellingenStock FROM Orders LIMIT 0, 2000 Error Code: 1054. Unknown column 'UnitsOnOrder' in 'field list' 0.016 sec
I love your content but you should zoom in a bit.. too much empty space and we cannot see the letters without high definition when on movile
Where is the if condition?
Ok... but not if you do case when XYZ AND ABC then 1 else 0...
Need Help !!!!!!!!!!!
please use single quotes otherwise it won't work
Thanks
I love your content but you should zoom in a bit.. too much empty space and we cannot see the letters without high definition when on mobile