I'm a passionate Business Intelligence Developer, focusing on the mutual strength of Data, SQL, Power BI & Python to make data driven decisions and Improve lives! Over anything, I strongly believe in the power of self-learning and empowering others!
If you want to get in touch regarding any Business Intelligence or Data enquiries, you can reach me via my website:
Bravo Sir! 👏 What a valuable mini-project using SQL! 🎉 Comments: 1. MySQL: No need to specify INNER word in MySQL syntax (i.e. JOIN means INNER JOIN) 2. Type of JOINS: In the real world; INNER JOIN & LEFT JOIN are the most frequently used types of joins 3. Data Cleansing: Handling missing data (i.e. NULLs) using COALESCE (Column_ name, a specified value) function is a MUST. Congrats sir for such informative SQL demo! 🎉🎉🎉🎉
bro you are using older modules like pdfFileReader. This moduile is not available in today's time. and if available then particular functionality isn't working
The first two answers are incorrect and do NOT SHOW A RUNNING TOTAL IN ACCORDANCE TO ASCENDING MONTHS (just look at the answers). Since the Month field is a VARCHAR, you've ordered the running total alphabetically ('Apr' first month, 'Sep' last month). A solution as follows could be used to overcome that: SELECT *, SUM(Revenue) OVER (ORDER BY CASE WHEN Month= 'Jan' THEN 01 WHEN Month= 'Feb' THEN 02 WHEN Month= 'Mar' THEN 03 WHEN Month= 'Apr' THEN 04 WHEN Month= 'May' THEN 05 WHEN Month= 'Jun' THEN 06 WHEN Month= 'Jul' THEN 07 WHEN Month= 'Aug' THEN 08 WHEN Month= 'Sep' THEN 09 WHEN Month= 'Oct' THEN 10 WHEN Month= 'Nov' THEN 11 WHEN Month= 'Dec' THEN 12 END ASC) FROM Revenue
Nice trick, but it doesn't work when you have columns without data (i.e. sales for Aug/Sep/Oct/Noc/Dec when you are still in July) that are forced with "Show items with no data"
thankk you for this. I was searching for this. now i need to do something else per row get the absolute varainace/sum( total absolute variance column) how would you do that?
I am in tension how to achieve total and subtotal in sql query. But this video make me free from tension. I believe everything is possible in sql. Thanks
Has anyone tried this in 2024? I've tried to troubleshoot this for 30 mins and mine still isn't working >.< I think to do with google not allowing me to login using the SMTP? Thanks for any help.
Great Workaround. so simple. I have another challenge on advanced filtering and can't find a solution. I want to filter on certain phrases: e.g. "today is a great day" and "today is the best day". How can I filter on exactly these phrases if they're a part of a longer text block?
Very good content, nice and simple. I have a question regarding the email automation. If I want to send automatically every week an email, do I have to run the script or can I "program it" somehow for this to be sent without me running the script? Thanks in advance! :D
Solution 1 doesn't work, look at September column, it's still wider than others due to its header longer than 0000 value. It's easy to solve by adding more zeroes in that case where we have constant amount of 12 columns only, that' fine, however what it is not useful for tables with huge number of potential columns which may appear depending on page or visual filtering, when we don't exactly know, which header can be the largest one...