How to Use IF and CASE WHEN in MySQL Workbench SQL Tutorial
Вставка
- Опубліковано 3 січ 2021
- #mysql #case #if
alphabench.com/data/mysql-cas...
Please SUBSCRIBE:
ua-cam.com/users/subscription_...
Writing advanced queries in MySQL / SQL:
Using If and CASE WHEN THEN to make decisions in MySQL
Several applied examples using IF and CASE WHEN to do data analysis with MySQL
Download the data used: github.com/mjmacarty/mysql
Thank you so much for this! You got a talent for teaching.
Thank you. Glad it helped.
Thanks a lot my friend! I understood everything from this tutorial. Cheers!
Glad it helped
Impressive ...easy to understand ..Thank you Macarty..
Glad it helped!
Very well explained, thank you very much!
Thanks. Glad it helped.
Fantastic. Very easy to understand.
Thanks. Glad it helped
Thanks this helped me a lot
Glad it helped
I'm learning this for fun
Glad it helped
@@MattMacarty yeah I went from learning all your playlist, to trying to deploy the sakila database on planetscale and learned about scaling constraints with mysql and how vitess addresses it. Learned how to use DBeaver for data import and project management, I'm developing a website for a project and I was learning everything to do it in the right way from start. Thank You again :)
btw the function DAYNAME() would've give the day name in a string format and not a number ! great content as always ~
Thanks. For sure I would probably use DAYNAME, MONTHNAME in practice, but then I would not have been able to show CASE WHEN 😉
@@MattMacarty great content.
so, can we sort data with the use of dayname, monthname?
hey man i want if stock less than export_qty appear a message the stock is not enough ?
i try in mysql and sqlite3 but not work?
Not sure I understand, but it sounds like you might try using an IF function?
Hello, I can’t seem to find the stocks sql file on github . Could you put a link that leads to that directly, thanks
I named it data.csv: github.com/mjmacarty/mysql/blob/main/data.csv
where can i find the file to download?
Looks like I forgot to post the link: github.com/mjmacarty/mysql