Writing CASE WHEN Statements in SQL (IF/THEN)

  Рет қаралды 93,134

Becoming a Data Scientist

Becoming a Data Scientist

Күн бұрын

Пікірлер: 81
@sarahemslie6105
@sarahemslie6105 4 жыл бұрын
An afternoon binge-watching your SQL videos is time well spent! Thank you for taking the time to make them. Subscribed.
@becomingADS
@becomingADS 4 жыл бұрын
That's awesome Sarah!! So happy to have helped ya out!
@ukaszk.8305
@ukaszk.8305 4 жыл бұрын
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! :)
@griffinwillig4329
@griffinwillig4329 2 жыл бұрын
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.
@goldr7198
@goldr7198 4 ай бұрын
Woah, thanks dude! This is way easier to digest than a couple of courses I just read. I don't even understand why they sometimes overcomplicate the examples just to show how advanced and smart the people who understand this topic are.
@ANUJYADAV-dj1iq
@ANUJYADAV-dj1iq 4 жыл бұрын
i have gone through many videos on youtube but I find my solution here at the end. thanks for making this video.
@sailoben
@sailoben 2 жыл бұрын
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
@stevencarv-buc3163
@stevencarv-buc3163 3 жыл бұрын
*Y repentinamente un comentario en español* xD Es justo lo que estaba buscando, te agradezco. Este canal es extremadamente útil. ¡un saludo Nathan!
@deadbrain1861
@deadbrain1861 3 жыл бұрын
Thank u I watched all sql playlist u r the best
@showutheworld
@showutheworld 4 жыл бұрын
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.
@MichaelFlenderson
@MichaelFlenderson 3 жыл бұрын
Thank you! You’re a good teacher 🙏🏻
@vaidehishah8867
@vaidehishah8867 Жыл бұрын
These videos were really helpful! Thanks a ton!
@max1qin927
@max1qin927 4 жыл бұрын
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.
@andrewkorneychuk586
@andrewkorneychuk586 3 жыл бұрын
Just want to say thank u for this great mysql tutorials
@embisonjones4996
@embisonjones4996 2 жыл бұрын
That you Nathan. You’ve earned a new subscriber
@anne7983
@anne7983 2 жыл бұрын
Just the tutorial I need. Thank you so much!🤩
@Hannah-iv6rm
@Hannah-iv6rm 6 ай бұрын
this is more helpful than my teacher's exp
@Yarunooo
@Yarunooo 3 жыл бұрын
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
@kanknw
@kanknw 4 жыл бұрын
Can you make video about solving complex sql problem
@krystianeotis6479
@krystianeotis6479 3 жыл бұрын
Your videos have been so helpful. Thank you!!!
@timothyhallbeck9853
@timothyhallbeck9853 2 жыл бұрын
Good intro into Case, thanks.
@serenereader
@serenereader 2 жыл бұрын
You are an excellent teacher. Thank you!
@anthonynorman1212
@anthonynorman1212 2 жыл бұрын
Your Video was perfect! Thank You
@alexg97343
@alexg97343 2 жыл бұрын
Great explanation
@christleiroezi8878
@christleiroezi8878 4 жыл бұрын
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
@charmalvarez9717
@charmalvarez9717 Жыл бұрын
thank you so much, did you stop posting videos?
@MohamedIbrahim-pg1rw
@MohamedIbrahim-pg1rw 5 ай бұрын
Group By 1 can u pls explain this
@LucHayman
@LucHayman 4 жыл бұрын
Awesome thank you! Is it possible to add multiple case statements in one query? How would I do that?
@wiktor18071
@wiktor18071 4 жыл бұрын
Supporting the excellent wrk:)
@becomingADS
@becomingADS 4 жыл бұрын
You're the best!
@valentinacoy7757
@valentinacoy7757 3 жыл бұрын
Your videos are amazing, thank you so much!!!
@higiniofuentes2551
@higiniofuentes2551 2 жыл бұрын
Thank you for this very useful video!
@butchdavis2062
@butchdavis2062 3 жыл бұрын
Subscribed big time, thank you brother
@montieeaster9883
@montieeaster9883 4 жыл бұрын
Can the Then output be another column rather than a text?
@simondreyfuss754
@simondreyfuss754 2 жыл бұрын
Jurassic Park: We're gonna make a fortune with this script....
@mazinmohammed6624
@mazinmohammed6624 4 жыл бұрын
please continue with the database videos, if you could do some on T-SQL and SSM it'd be great!
@96aditishah
@96aditishah 2 жыл бұрын
Great explanation! Thanks
@dawitworku821
@dawitworku821 9 ай бұрын
It's very helpful! Thank you.
@JoaoVictor-zq9tj
@JoaoVictor-zq9tj 4 ай бұрын
Really helpful!!
@xesiusprime9360
@xesiusprime9360 4 жыл бұрын
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?
@abdulsami5843
@abdulsami5843 4 жыл бұрын
good tutorial, I am a bit confused about the sum(frieght) shouldn't the sum be increasing as we go down ?
@ravinderthakur7973
@ravinderthakur7973 3 жыл бұрын
Thx a lot, it helps me a lot
@mishraadityaanandeavmjejdt265
@mishraadityaanandeavmjejdt265 3 жыл бұрын
Thank you so much for such a great content . It really helped me a lot.
@manavsaxena5579
@manavsaxena5579 3 жыл бұрын
Hey man, awesome tutorials. Is there anything coming on Window Functions?
@AngeloMendoza-e3p
@AngeloMendoza-e3p Жыл бұрын
Thank you so much for the help
@ashokandhra2268
@ashokandhra2268 8 ай бұрын
Thank you... It's helpful
@karlderkastn7012
@karlderkastn7012 3 жыл бұрын
tomorrow is my final exam, thanks :)
@kellensampson289
@kellensampson289 4 жыл бұрын
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?
@ViciousZeroEnder
@ViciousZeroEnder 4 жыл бұрын
if you do order by freight it would effectively do what ur askin
@BRAloni
@BRAloni 2 жыл бұрын
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
@12245Fred
@12245Fred 4 жыл бұрын
Amazing explanation, thank you this helped a lot
@danielmejia8530
@danielmejia8530 4 жыл бұрын
Very Nice. Can I use logic after WHEN? let's say: WHEN (condition_A AND condition_B) THEN something.
@vigneshiyer2424
@vigneshiyer2424 4 жыл бұрын
Yes, you can.
@itzyfan88
@itzyfan88 Жыл бұрын
Very clear, thanks
@jordanroywhite
@jordanroywhite 4 жыл бұрын
Thanks so much for the great video!
@ViciousZeroEnder
@ViciousZeroEnder 4 жыл бұрын
DO MORE SQL VIDEOS PLEASE!!!!
@MartinFaehrmann
@MartinFaehrmann 4 жыл бұрын
Very helpful video, thank you :)
@蔡佩儒-z5b
@蔡佩儒-z5b 4 жыл бұрын
good job
@FitzJeral784
@FitzJeral784 4 жыл бұрын
great video, thank you!
@attrinh8343
@attrinh8343 Жыл бұрын
verry good content
@pv6010
@pv6010 Жыл бұрын
u r the man, thankxxxxxxx
@gonzalomartinez1575
@gonzalomartinez1575 9 ай бұрын
Thanks very useful
@factorise001
@factorise001 3 жыл бұрын
waiting for new videos!!
@nunesburicato3199
@nunesburicato3199 4 ай бұрын
good work
@Leopar525
@Leopar525 2 жыл бұрын
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
@Leopar525
@Leopar525 2 жыл бұрын
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
@praji1202
@praji1202 2 жыл бұрын
Where is the if condition?
@andyn6053
@andyn6053 3 жыл бұрын
more sql videos pls :)
@languagesandotherstuffs3305
@languagesandotherstuffs3305 5 ай бұрын
Thank you
@KevinTempelx
@KevinTempelx 4 жыл бұрын
Thanks!
@Helloimtheshiieet
@Helloimtheshiieet 2 жыл бұрын
Ok... but not if you do case when XYZ AND ABC then 1 else 0...
@prasadkhairnar7915
@prasadkhairnar7915 3 жыл бұрын
thanks : )
@yotsusan_machi
@yotsusan_machi Жыл бұрын
thank kyu mr
4 жыл бұрын
Thanks
@BessieMartin-cl8sz
@BessieMartin-cl8sz Жыл бұрын
interest!
@mujtaba135
@mujtaba135 4 жыл бұрын
Need Help !!!!!!!!!!!
@harshavardhank9915
@harshavardhank9915 3 жыл бұрын
please use single quotes otherwise it won't work
@nextdoortechieaminfirnash6002
@nextdoortechieaminfirnash6002 2 жыл бұрын
It was right to the point. Thank you for a wonderful lesson.
@Leopar525
@Leopar525 2 жыл бұрын
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
@adityadalvi7884
@adityadalvi7884 Жыл бұрын
Thanks
How To Write SQL Server Queries Correctly: Case Expressions
15:01
Erik Darling (Erik Darling Data)
Рет қаралды 1,6 М.
SQL WITH Statements (Common Table Expressions - CTE)
5:40
Becoming a Data Scientist
Рет қаралды 102 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.
why are switch statements so HECKIN fast?
11:03
Low Level
Рет қаралды 440 М.
How to do Subqueries in SQL with Examples
8:20
Becoming a Data Scientist
Рет қаралды 180 М.
Learn 12 Basic SQL Concepts in 15 Minutes (project files included!)
16:48
SQL Tutorial - Nesting CASE statements
8:46
BeardedDev
Рет қаралды 21 М.
Clustered vs. Nonclustered Index Structures in SQL Server
8:04
Voluntary DBA
Рет қаралды 671 М.
SQL Case When Statement | Use Cases | #SQL Course #8
36:19
Data with Baraa
Рет қаралды 9 М.
Solving one of PostgreSQL's biggest weaknesses.
17:12
Dreams of Code
Рет қаралды 225 М.
Combine SQL Queries With UNION, INTERSECT, EXCEPT
5:04
Becoming a Data Scientist
Рет қаралды 51 М.
Сестра обхитрила!
00:17
Victoria Portfolio
Рет қаралды 958 М.