SQL & PowerBI Portfolio Project for Data Analysts

  Рет қаралды 150,300

Her Data Project

Her Data Project

Күн бұрын

Пікірлер: 390
@casafurix
@casafurix Жыл бұрын
For the termdate column error, run the following 4 queries and it'll work: UPDATE hr SET termdate = IF(termdate IS NOT NULL AND termdate != '', date(str_to_date(termdate, '%Y-%m-%d %H:%i:%s UTC')), '0000-00-00') WHERE true; SELECT termdate from hr; SET sql_mode = 'ALLOW_INVALID_DATES'; ALTER TABLE hr MODIFY COLUMN termdate DATE;
@vinodkumarhugar6418
@vinodkumarhugar6418 Жыл бұрын
It worked , Thanks 🤝
@herdataproject
@herdataproject Жыл бұрын
Nice, thanks!
@somranjan5810
@somranjan5810 Жыл бұрын
I stucked at this error and just found your precious comment, Thank you
@vigneshnaruto9777
@vigneshnaruto9777 Жыл бұрын
thanks man
@Zovic_Kiddies
@Zovic_Kiddies Жыл бұрын
Can this work in Microsoft SQL server management studio pls?
@mayanktiwari5069
@mayanktiwari5069 Жыл бұрын
This one is my first power bi report and this report will remain special forever in my life.
@simonoganga5956
@simonoganga5956 Жыл бұрын
Irene, amazing work, quite impressive, thank you for supporting the community with your knowledge
@herdataproject
@herdataproject Жыл бұрын
Thanks Simon. More projects coming soon
@simonoganga9535
@simonoganga9535 Жыл бұрын
@@herdataproject Wonderful news, I can't wait to follow them, I am currently doing an SQL course, as soon as I am done, I want to replicate this project to improve my skills.
@HaydenTheAnalyst
@HaydenTheAnalyst Жыл бұрын
You made it already!! Thank you so much!!! Extremely helpful!!! Keep up the videos plz your projects are unbelievably helpful for me right now as I’m work my on building a strong portfolio, I am sure you are helping many others also!
@herdataproject
@herdataproject Жыл бұрын
You're welcome. More videos coming soon. Thanks for watching!
@rumonseoexparts9697
@rumonseoexparts9697 Жыл бұрын
Thanks, Irene I was able to go through the tutorial and actually practice on it and I can say it is absolutely helpful to me as a beginner in the data industry. Thumbs up and keep up inspiring!! love from Bangladesh
@Lost_John
@Lost_John 8 ай бұрын
I want to say thank you for this video! It made it using Microsoft SQL server much more understandable because I understand that it is more advanced but using my SQL workbench requires a more hands-on approach to learning the basics. You showed how to manually change things in the best way possible! Also, I will support any future videos !! Keep up the good work!
@herdataproject
@herdataproject 8 ай бұрын
You're most welcome! I really appreciate the feedback and support
@ijeomajoseph1615
@ijeomajoseph1615 4 ай бұрын
​@@herdataproject Thank you for much for always ..However I got stuck trying to answer the first question ...It keeps returning an error message 'Incorrect DATE value:'0000-00-00'.. Here is my line of code ; Select gender, count(*) AS gender_count FROM hr WHERE age >= 18 AND termdate = '0000-00-00' GROUP BY gender; ..Please where am I getting it wrong ?
@herdataproject
@herdataproject 4 ай бұрын
You're welcome and thank you😊 What are the values of your term_date column?
@ijeomajoseph1615
@ijeomajoseph1615 4 ай бұрын
@@herdataproject They are in this format Ma, 0000-00-00, 2014-02-24 etc....
@dlucas527
@dlucas527 Ай бұрын
I love your explanations. Very clear and concise.
@herdataproject
@herdataproject Жыл бұрын
The dataset can be downloaded from Telegram or GitHub. On Telegram check the pinned message Telegram - t.me/+7ms4DzzAYVlhYmZk GitHub - github.com/Irene-arch/HR-Dashboard-MySQL-PowerBI Please leave any questions or requests in the comments
@akhileshkumarpatel3772
@akhileshkumarpatel3772 Жыл бұрын
Bhai data file nahi download ho raha hai
@jkschola1
@jkschola1 Жыл бұрын
Kudos, Great video! I thoroughly enjoyed it and found the SQL Data Analysis walkthrough to be quite accessible, especially on date formatting and conversion 👏🏽. However, for enhanced practicality, consider leveraging Power BI's DAX to calculate most measures after establishing a data model. This approach enhances interactivity and reusability in any project. Looking forward to more content like this! 👏🏽👋🏽💯
@herdataproject
@herdataproject Жыл бұрын
Thanks for the insights. I'm glad you found the video helpful. I'll be sure to show how to use DAX in the next PowerBI project. Stay tuned and thanks for watching!!
@anymjohnson1729
@anymjohnson1729 Жыл бұрын
@@herdataproject; When you begin the Video, what Application or program is that?? Is it Power BI, or SQL.
@herdataproject
@herdataproject Жыл бұрын
@anymjohnson1729 it's MySQL Workbench
@SahilSahil-vo1yw
@SahilSahil-vo1yw 7 ай бұрын
It's awesome!! I've watched n number of KZbin videos but i found this video is very useful especially at data cleaning and data analysis part as its crystal clear in terms of better understanding... Thanks so much ❤👍🤝.
@ruchamasurkar9255
@ruchamasurkar9255 Жыл бұрын
Thank you so much for this project🙏It was very clear and easy to follow😊Plz keep making these type of videos👍
@herdataproject
@herdataproject Жыл бұрын
You're most welcome. There's more to come! Thanks for watching
@mm1234bb
@mm1234bb Жыл бұрын
I’m so glad I found your channel! I really like learning through projects, will you be adding on more videos? Thanks so much!
@herdataproject
@herdataproject Жыл бұрын
You're welcome. Yes there'll be more videos soon. Stay tuned!
@gozieprince9530
@gozieprince9530 Ай бұрын
Thank you so much for this wonderful tutorial, you are so calm in teaching and it makes it very understanding. Please can you do more videos on SQL+Power Bi. I just started my learning journey as a Data Analyst. Please can you Mentor me
@itnasss
@itnasss Жыл бұрын
Thank you!!! This helped me soooo much with my own portfolio project. You're doing great!
@itnasss
@itnasss Жыл бұрын
PS - I was having issues with obtaining the data set, when I open the file that you've suggested excel doesn't read it as a table and there is an error report. I was able to find the same data set on kaggle (the data set did not include the negative age for one of the employees as shown in your video) and I was able to follow along thereafter.
@herdataproject
@herdataproject Жыл бұрын
You're most welcome. I'm glad you found the video helpful. Sorry for the hustle in getting the dataset. It's on Github and Telegram. So once you join Telegram, check the pinned messages and you'll be able to get the dataset
@EdemKlogo-e7t
@EdemKlogo-e7t 3 ай бұрын
Thank you for this video, truly. I learned so much from this video.
@herdataproject
@herdataproject 3 ай бұрын
You’re most welcome! I’m so happy to hear that
@sanketkalugade1076
@sanketkalugade1076 Жыл бұрын
To update age = '2060-01-01' AND birthdate < '2070-01-01'; The reason age is showing in negative is instead of 1960 it is mentioned as 2060 , so you can use DATE_SUB to subtract 100 years. Hope this helps thanks !
@yennhingo4936
@yennhingo4936 Жыл бұрын
Thank you!
@jayakrishnanvn
@jayakrishnanvn 7 ай бұрын
thanks mate ... very helpful...
@gnardi6928
@gnardi6928 26 күн бұрын
My youngest age is 22 , would this be because of insufficient data from import ?
@herdataproject
@herdataproject 26 күн бұрын
@gnardi6928 i think its due to the time youre doing the project unless you got an error during import. Since we’re using current date it is different from the one I used when recording the video
@sowjanyakake5720
@sowjanyakake5720 Жыл бұрын
Thanks for covering various scenarios using sql.. quite helpful
@herdataproject
@herdataproject Жыл бұрын
You're welcome. I hope you find the most recent project helpful as well
@alowismusodza
@alowismusodza Жыл бұрын
I just bumped into this amazing and well explained tutorial. Thanks so so much...
@herdataproject
@herdataproject Жыл бұрын
You're welcome!! Thanks for watching
@haohoangkim3247
@haohoangkim3247 Жыл бұрын
Thanks from Viet Nam. More other videos please. Hope to see them soon.
@herdataproject
@herdataproject Жыл бұрын
You're welcome. More to come!
@AyoRO88
@AyoRO88 9 ай бұрын
Amazing video! Wow. Wish I wouldve found it sooner. Wouldve saved me so much trouble
@herdataproject
@herdataproject 9 ай бұрын
Thank you so much!!
@charugera7654
@charugera7654 Жыл бұрын
Excellent tutorial. Many thanks. Can you please make similar projects using intermediate and advanced SQL concepts?
@herdataproject
@herdataproject Жыл бұрын
You're welcome. I will definitely do that
@sasitpiasai8152
@sasitpiasai8152 Жыл бұрын
thank you so much. I can adapt this project to make my project and learn to familiarize with data cleaning and analysis process.
@herdataproject
@herdataproject Жыл бұрын
You're welcome. Yes you can and keep practicing to master all the concepts
@meraki2090
@meraki2090 Жыл бұрын
Thank you for this video. It was really easy to follow and understand for me. And when I got stuck with a sql queries related with termdate, I could find solution in the comment as well..
@herdataproject
@herdataproject Жыл бұрын
You're most welcome. I'm glad you found it helpful
@gabesegun7966
@gabesegun7966 20 күн бұрын
This is what exactly I have been looking for. We'll made. Thanks ++. As I am just learning sql any suggestions on a good book to learn instead of only videos.
@gebidehun
@gebidehun Ай бұрын
Thank you for sharing
@MaabHussein-f7e
@MaabHussein-f7e 6 ай бұрын
I cannot thank you enough for this informative video
@khairunnisanada9124
@khairunnisanada9124 Жыл бұрын
very helpful, thankyou!!! will wait for your next update👍
@herdataproject
@herdataproject Жыл бұрын
Thank you, more coming soon!!
@francisonyango3868
@francisonyango3868 9 ай бұрын
Clear explanations....thank you so much
@herdataproject
@herdataproject 9 ай бұрын
You're most welcome!!
@onosemuodeikuesiri7620
@onosemuodeikuesiri7620 4 ай бұрын
Q6. How does the gender distribution vary across departments and JOB TITLES? 43:18 I think you ignored the "job title' part of this question. This was what I did. SELECT * FROM hr; SELECT department, jobtitle, gender, count(*) count FROM hr WHERE age >= 18 AND termdate = '0000-00-00' GROUP BY department, jobtitle, gender ORDER BY department;
@herdataproject
@herdataproject 4 ай бұрын
Heeeey, yes I did. I think it was coz of how varied they were so decided to just go with departments to have a general overview. Thanks for sharing your solution and keep up the amazing work!!
@Ganeshay-09
@Ganeshay-09 9 ай бұрын
Superb understanding easy way
@Hasindu_Randika
@Hasindu_Randika 6 ай бұрын
Thank you for your great tutorial. Keep it up!
@ashok_rawat_
@ashok_rawat_ Жыл бұрын
You are doing it great, keep going,,
@herdataproject
@herdataproject Жыл бұрын
Thank you!!
@skillrovertechnologies
@skillrovertechnologies Жыл бұрын
You did a very good job. Keep it up.
@herdataproject
@herdataproject Жыл бұрын
Thanks Daniel. I'm glad you found it helpful
@mohineshsharma335
@mohineshsharma335 Жыл бұрын
Thank you for such an amazing video full of information and knowledge 😊👍
@herdataproject
@herdataproject Жыл бұрын
You're most welcome! More to come
@mohineshsharma335
@mohineshsharma335 Жыл бұрын
@@herdataproject waiting for next
@yogeshmeshram1120
@yogeshmeshram1120 Жыл бұрын
Amazing work. Plz make Python data Analysis Project Video.
@herdataproject
@herdataproject Жыл бұрын
Thank you. Coming soon!
@giftcardseverywhere
@giftcardseverywhere 9 ай бұрын
wow great stuff so much value
@herdataproject
@herdataproject 6 ай бұрын
Thank you!
@AmalKrishnan-u2q
@AmalKrishnan-u2q 3 ай бұрын
Great Video. i'm confused why termdate
@herdataproject
@herdataproject 3 ай бұрын
The assumption is that termdate is the date the employment ended. So it wouldn't make sense to have it as a future date. That's why I made sure to use the termdate as less than more equal to the current date. Hope this helps!
@ZaremaDibirova
@ZaremaDibirova Ай бұрын
Thank you🌻
@MuftiHammadAhmedSpeeches
@MuftiHammadAhmedSpeeches Жыл бұрын
I have seen half of this video while even I couldn't know you are Male or Female. But video is osm fantastic ❤❤🎉🎉
@carolinaninobeltran6716
@carolinaninobeltran6716 Жыл бұрын
Thank you very much, i found this tutorial very usefull
@herdataproject
@herdataproject Жыл бұрын
You're welcome!!
@jamesthomas3959
@jamesthomas3959 Жыл бұрын
Please can I see all the data types for your columns when trying to upload the data into table.
@arindamsinha5857
@arindamsinha5857 Жыл бұрын
Need more industry level power bi projects end to end please.. I will pay also if required
@herdataproject
@herdataproject Жыл бұрын
Coming soon!!
@ntran04299
@ntran04299 Жыл бұрын
good suggestion. I would love to see near world data projects with various messy data sources. Would support with donation too!
@peace_321
@peace_321 Жыл бұрын
19:12 While using the query that you have used, the blank cells are not getting updated with '0000-00-00' .. What shall I do... Please reply..
@herdataproject
@herdataproject Жыл бұрын
Hello, it's okay if they remain blank. Mine are updating to '0000-00-00' because strict mode in my version of SQL has been disabled. Yours is not that's why they're not updating. The only thing you'll change in your queries while answering the questions is just writing 'termdate IS NULL' instead of 'termdate = '0000-00-00' But if you'd also like to disable strict mode on your version of SQL you can run this query SET SQL_MODE = ' '; Then run your queries. Let me know if it works!
@peace_321
@peace_321 Жыл бұрын
@@herdataproject thank you soooo much mam for relying I will try it .. Thank you for being sooo kind 🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻.. thank you for giving your valuable time. 🙏🏻🙏🏻🙏🏻
@peace_321
@peace_321 Жыл бұрын
@@herdataproject how you are soo expert in sql queries,, please please give some suggestions to me,, how can I be good SQL queries..
@herdataproject
@herdataproject Жыл бұрын
You're welcome. I'm not yet an expert but to be good you need to learn and always practise what you've learnt so that you don't forget. That way you build knowledge on a lot of concepts.
@peace_321
@peace_321 Жыл бұрын
@@herdataproject thank you mam 🙏🏻🙏🏻
@BeSweet-c4p
@BeSweet-c4p Жыл бұрын
Heloo Mam, why we need to analyse these data in sql instead of excel? we didn't connect that sql analysis in power bi then why we need to find that analyse in sql just simply use one tool like power bi and easy find that analyse in power bi .what the use in that analyse in sql? I don't know why please leave the answer mam🙏
@herdataproject
@herdataproject Жыл бұрын
It's just a preference. There are people who had requested to be shown how to clean and analyse data using SQL. You can use Excel or PowerBI from start to finish if that's what you prefer.
@BeSweet-c4p
@BeSweet-c4p Жыл бұрын
@@herdataproject Thank You very much mam👍Thanks for your reply mam✨
@terenceochuo701
@terenceochuo701 Жыл бұрын
Hello first and foremost thank you Irene for showing this project,as i was going through it using sql server microsoft i am stuck on changing the termdate data type anyone using ssms how did you go about it,i will appreciate for any help
@lukev730
@lukev730 Жыл бұрын
Amazing work Thank you
@herdataproject
@herdataproject Жыл бұрын
Thank you and you're most welcome!!
@saisrikanth9313
@saisrikanth9313 Жыл бұрын
Hi, thank you for helping me learn with this video, but I had a doubt, some of the answers I get are slightly different from yours for example I got slightly different values when I calculated the different age groups, could you please tell me why is that?
@saisrikanth9313
@saisrikanth9313 Жыл бұрын
I meant for Question 3 in analysis part
@μελέτη1
@μελέτη1 9 ай бұрын
27:19 , I am getting count as zero n all results as zero
@peace_321
@peace_321 Жыл бұрын
13:31 It shows Error code : 1292. Truncated incorrect date vale : '06-04-1991' What shall I do
@peace_321
@peace_321 Жыл бұрын
@@herdataproject thank you for responding.. Actually i was Using small y instead of Y I saw your coment then i understood..
@herdataproject
@herdataproject Жыл бұрын
You're welcome!
@whiteana9713
@whiteana9713 Жыл бұрын
Please, how did u get the Total count, Terminated count cause, hires, and termination cause it tells me the column doesn't exist
@herdataproject
@herdataproject Жыл бұрын
Those are derived columns from the inner query which will be run first
@VM-hw3qh
@VM-hw3qh 5 ай бұрын
Great Work🙌
@Rahuljadhav-nm2sc
@Rahuljadhav-nm2sc Жыл бұрын
thank you so much 👌👌
@ChipoMoyo-v8d
@ChipoMoyo-v8d Жыл бұрын
This is great, just a question, is the dataset you provided via GitHub the exact same as the one you used in the video? I noticed the values I'm getting in my analysis as I follow along are slightly different from yours, I'm worried i might be making mistakes in my queries.. I'm using SQL server by the way, the differences are minor but they do affect the results of the analysis for example for you, the lowest turnover rate was the marketing department and mine was the business development department.
@pimjaaadirektrakarn7898
@pimjaaadirektrakarn7898 11 ай бұрын
I’ve got the same problem as you😅
@avazbektolibjonov4035
@avazbektolibjonov4035 6 күн бұрын
great course
@MuftiHammadAhmedSpeeches
@MuftiHammadAhmedSpeeches Жыл бұрын
Bro please tell me update command not working in my SQL workbench since last 24 hours😭😭😭 I tried again and again Pls tell me where is fault, chatGPT speaks I apologise too
@AustinIC
@AustinIC 10 ай бұрын
Big thanks to you!!!
@tigerbojiteol
@tigerbojiteol Жыл бұрын
Thank you for the video. So you prefer skipping the data modeling and DAX at all?
@herdataproject
@herdataproject Жыл бұрын
Hello, I skipped the data modelling section because the data was already cleaned in SQL and didn't require advanced transformations like creating measures or calculated columns. But you could do the modelling if you're looking to make you report interactive
@thirdyako
@thirdyako Жыл бұрын
Thanks! It's been helpful. :)
@herdataproject
@herdataproject Жыл бұрын
You're welcome! Thanks for watching: )
@ezhil7942
@ezhil7942 5 ай бұрын
Thanks it working
@yasminibrahim9708
@yasminibrahim9708 Жыл бұрын
hi, thanks so much for this great video , i downloaded the dataset but it's cleaned how i can get the uncleaned one please
@herdataproject
@herdataproject Жыл бұрын
You're most welcome. You can download it from the Telegram group. I've pinned the original dataset
@chalanatyjostna2229
@chalanatyjostna2229 Жыл бұрын
when we are considering the term date 00000 to select the employees, what about the employees whose term date is in future?that means they are still in the company and we are not considering them
@herdataproject
@herdataproject Жыл бұрын
We can't verify that for sure so we assumed it was a data entry error and documented the same as limitation in our analysis.
@chalanatyjostna2229
@chalanatyjostna2229 Жыл бұрын
@@herdataproject thank you so much for the ans.
@kausarali9852
@kausarali9852 Жыл бұрын
very informative thanks
@herdataproject
@herdataproject Жыл бұрын
You're welcome!!
@FarhadKhan-xe4ft
@FarhadKhan-xe4ft 4 ай бұрын
can anyone explain the aim of this project mean why we make dishbord and i cant understand dishbord mean wht is the problem behind this that we make this typle dishbord
@herdataproject
@herdataproject 4 ай бұрын
This is an informational dashboard. It helps management understand the status of their employees at any point in time
@Mahesh717
@Mahesh717 Жыл бұрын
why did you past all the queries in diff excel files & then imported in power bi, instead of you can directly connect to power bi using import mode....
@herdataproject
@herdataproject Жыл бұрын
I'm sure that works too, I think it's a matter of preference
@AdityaSingh-mj2kh
@AdityaSingh-mj2kh 6 ай бұрын
i am not able import file into postgre sql it showing hiredate is out of range
@kapilak9530
@kapilak9530 Жыл бұрын
Hi 1292 truncated date error value…how to fix that sir ..while doing the query changing string to date format
@michellerosecruz4709
@michellerosecruz4709 Жыл бұрын
Hi, is this the correct way of utilizing databases for Power BI Visualizations? I mean we need to export the details as csv file then import it to Power BI? Or can we directly connect to database to get the data? Thanks
@herdataproject
@herdataproject Жыл бұрын
Hi, it's not the only way. You can also connect directly to your SQL database. Check Microsoft Learn website for more details.
@sia_ibk
@sia_ibk Жыл бұрын
When I export to PDF, the page gets zoomed in and the export cuts out a part of the right and bottom of the viz. How do I aviod this please?
@herdataproject
@herdataproject Жыл бұрын
Hi, you can try checking your zoom before exporting and also the orientation. It should be landscape instead of portrait
@aishwaryapattnaik3082
@aishwaryapattnaik3082 Жыл бұрын
Hello 👋 ! I was trying this in Power Query Editor for the data cleaning part for hire_date col. How can the null values be dealt with in this way, can you please help😅
@herdataproject
@herdataproject Жыл бұрын
Hello, try this. Hard to explain via text but hope it works Select the table or range that contains the column with null values. Go to the "Data" tab. Click on "From Table/Range" to open the Power Query Editor. In the Power Query Editor, find and select the column with null values in the "Query Settings" pane on the right. Go to the "Transform" tab in the Power Query Editor ribbon. Click on "Replace Values" from the "Any Column" group. In the "Replace Values" dialog box, enter "null" (without quotes) in the "Value to Find" box. Leave the "Replace With" box empty to remove null values from the column. Click "OK" to apply the changes. Once you've made all necessary transformations, click "Close & Apply"
@सुयशपाटील-ठ2ठ
@सुयशपाटील-ठ2ठ Жыл бұрын
Mamm the 10th question it shows me error To Termination invalid filed from HR
@herdataproject
@herdataproject Жыл бұрын
Kindly share the whole error as is
@RameshD-m5j
@RameshD-m5j Жыл бұрын
thank you so much for ur work.
@herdataproject
@herdataproject Жыл бұрын
You're most welcome!
@abhishekkumar-qi3is
@abhishekkumar-qi3is Жыл бұрын
please make vedio on orderback prediction and inventary management.
@herdataproject
@herdataproject Жыл бұрын
Noted!! I have added it to my list of projects
@milank465
@milank465 5 ай бұрын
Why do I get different values with the exact same code?
@herdataproject
@herdataproject 5 ай бұрын
Depends on the column you're referring to. For dates etc, you're running the code on a different date than I did. If that's not the case then please share a screenshot in the Telegram group to allow me to assist you further
@lakitajoseph3478
@lakitajoseph3478 10 ай бұрын
Hi there im slightly stuck with question 10, it comes up with error code unknown column 'termination' in field list, does anyone know why?
@herdataproject
@herdataproject 10 ай бұрын
Hi Lakita, I think the issue is the name of the column. Make sure it's the exact name of the column as is in the database
@lakitajoseph3478
@lakitajoseph3478 10 ай бұрын
Thank you! May I ask, what did you save your data cleaning file as from MySql? Or did you save it from somewhere else?@@herdataproject
@TeliahTalksData
@TeliahTalksData Жыл бұрын
Can I use Ms SQL?
@herdataproject
@herdataproject Жыл бұрын
Yes you can
@MuftiHammadAhmedSpeeches
@MuftiHammadAhmedSpeeches Жыл бұрын
While I'm writing same to same QUERY like you ❤❤😢😢
@herdataproject
@herdataproject Жыл бұрын
Hi, which exact command isn't working?
@MuftiHammadAhmedSpeeches
@MuftiHammadAhmedSpeeches Жыл бұрын
@@herdataproject Update command on birthday column, he reflects error like truncated incorrect date value 😭😭 I tired since 3 days not proceeding further 🙏
@adityabonde7310
@adityabonde7310 3 ай бұрын
At @28.34 im getting this error select gender,count(*) as count from hr where age >= 18 and termdate = '0000-00-00' group by gender LIMIT 0, 5000 Error Code: 1525. Incorrect DATE value: '0000-00-00' 0.00037 sec
@herdataproject
@herdataproject 3 ай бұрын
Are your date values blank or in that format?
@adityabonde7310
@adityabonde7310 3 ай бұрын
@@herdataproject no its not blank . i did the same as you did.
@herdataproject
@herdataproject 3 ай бұрын
@adityabonde7310 please share a screenshot on telegram. Link is in the description
@madcity2073
@madcity2073 Жыл бұрын
thanks for the video, very well explained, just one question if the original CSV file that you initially imported to SQL suffers any change lets say gets more rows added whitin the already existing categories would that get reflected on the MySQL values as well?
@herdataproject
@herdataproject Жыл бұрын
I'm not entirely sure what you mean. Are the rows added during the import?
@ELLIOT8209
@ELLIOT8209 Жыл бұрын
Search for duplicates
@saidhikshi1105
@saidhikshi1105 Жыл бұрын
17:19:17 UPDATE hr SET birthdate=CASE WHEN birthdate LIKE'%/%'THEN date_format(str_to_date(birthdate,'%m/%d/%Y'),'%Y-%m-%d') WHEN birthdate LIKE'%-%'THEN date_format(str_to_date(birthdate,'%m-%d-%Y'),'%Y-%m-%d') ELSE NULL END Error Code: 1411. Incorrect datetime value: '2012-01-01' for function str_to_date 0.012 sec Could you help me with this?
@herdataproject
@herdataproject Жыл бұрын
Hello use UPDATE IGNORE hr
@nileshraut9
@nileshraut9 4 ай бұрын
Remove or comment ELSE from query and then try hope this will work
@myvideos-uu6mj
@myvideos-uu6mj Жыл бұрын
Thank you but where do i get this sample data from in order to do the same on my own ?
@herdataproject
@herdataproject Жыл бұрын
Hello check the description for the Telegram link and once you join, check the pinned messages
@augustineemmanuel6897
@augustineemmanuel6897 Жыл бұрын
SELECT birthdate FROM hr; SET sql_safe_updates = 0; UPDATE hr SET birthdate = CASE WHEN birthdate LIKE '%/%' THEN date_format(Str_to_date(birthdate,'%m/%d/%y'),'%Y-%m-%d') WHEN birthdate LIKE '%-%' THEN date_format(Str_to_date(birthdate,'%m-%d-%y'),'%Y-%m-%d') ELSE NULL END; 03:00:08 UPDATE hr SET birthdate = CASE WHEN birthdate LIKE '%/%' THEN date_format(Str_to_date(birthdate,'%m/%d/%y'),'%Y-%m-%d') WHEN birthdate LIKE '%-%' THEN date_format(Str_to_date(birthdate,'%m-%d-%y'),'%Y-%m-%d') ELSE NULL END Error Code: 1292. Truncated incorrect date value: '06/04/1991' 0.000 sec please could you help me with this
@herdataproject
@herdataproject Жыл бұрын
First import the dataset again because the values have already become NULL and then run SET SQL_MODE = ' '; then run the update query. Hopefully it works
@maskman6372
@maskman6372 Жыл бұрын
​@@herdataproject birthdate becomes null
@esthernwaogu592
@esthernwaogu592 Жыл бұрын
Yes null
@chyonu
@chyonu Жыл бұрын
@@esthernwaogu592 pls have you been able to solve this issue?
@NgoJayE
@NgoJayE Жыл бұрын
HEllo, for the termdate column, I don't have the 0000-00-00 when the line is empty, I have nothing so I have an error when I want to convert the type text to a date.
@herdataproject
@herdataproject Жыл бұрын
There's another alternative you can use to convert the values from text to date UPDATE hr SET termdate = IF(termdate = '', NULL, str_to_date(termdate, "%Y-%m-%d %H:%i:%s UTC")) WHERE termdate IS NOT NULL; And in place of termdate = '0000-00-00 ' use IS NULL. Let me know if it works for you
@chalanatyjostna2229
@chalanatyjostna2229 Жыл бұрын
Hi, How can I apply filter on this csv files imported through sql query? i am unable to do.
@jameskalenga7546
@jameskalenga7546 8 ай бұрын
thanks for sharing
@herdataproject
@herdataproject 8 ай бұрын
Thanks for watching!
@AbigailNjambi
@AbigailNjambi 9 ай бұрын
I tried converting the birthdate format but it's not working for me can anyone help
@fransiscusnauli5469
@fransiscusnauli5469 Жыл бұрын
thank you for the video you created, it's an awesome project and the way you explain it makes the code syntax easier to understand. anyway, may i add this project to my resume?
@herdataproject
@herdataproject Жыл бұрын
Thank you, and thanks for watching. Yes you can for now but I'd advise finding your own dataset and working on it so that you can make sure you have mastered the concepts as well as the entire process. And also in case a recruiter came across this video they don't assume you just did copy and paste.
@fransiscusnauli5469
@fransiscusnauli5469 Жыл бұрын
@@herdataproject thank you again madam. I'll write your name on the description and perhaps the link to the video. After completing this project, i will start to build my own one.
@herdataproject
@herdataproject Жыл бұрын
I'm glad to hear that. Good luck and if you encounter any issues you can always reach out on the Telegram Community. Plenty of people willing to help
@PinessCodes
@PinessCodes Жыл бұрын
Thank you Ma@@herdataproject
@fransiscusnauli5469
@fransiscusnauli5469 Жыл бұрын
@@herdataproject thank you again mam and good luck for your next project as well, im joining right now.
@chiragvaljee4306
@chiragvaljee4306 10 ай бұрын
Hi there, I am getting an error on question 5. This is my code: SELECT AVG(DATEDIFF(termdate, hire_date))/365 AS average_length_of_employment FROM hr WHERE termdate =18; This is the error I am receiving: Error Code: 1525. Incorrect DATE value: '0000-00-00'. Any assistance would be appreciated. Thanx
@sembhaiamman9237
@sembhaiamman9237 9 ай бұрын
You should run the set sql_mode query first to sort this error
@902mayanksingh2
@902mayanksingh2 Жыл бұрын
why it is showing Error code : 1193. unknown system variable 'Age' , even after successful implementation of Age column ?
@herdataproject
@herdataproject Жыл бұрын
I'm not sure what the issue could be. You could post the screenshot of the query and the error on Telegram and then we could try to figure it out
@AustinIC
@AustinIC 10 ай бұрын
Please I tried to download the dataset from the link on the description box, but link can't be reach. Can you help please?
@herdataproject
@herdataproject 10 ай бұрын
Hi the link works. You can try it again here t.me/+7ms4DzzAYVlhYmZk If it doesn't work, try downloading from Github github.com/Irene-arch/HR-Dashboard-MySQL-PowerBI
@AustinIC
@AustinIC 10 ай бұрын
🙏 Am grateful, thanks I will explore the options
@ronipriyosejati5792
@ronipriyosejati5792 7 ай бұрын
ty a greate tutorial for me
@Lordarknesss
@Lordarknesss Жыл бұрын
Keep going. Nice!
@herdataproject
@herdataproject Жыл бұрын
Thank you!!
@gokilaharish6305
@gokilaharish6305 Жыл бұрын
I couldnt update termdate using PLSQL developer. STR_TO_DATE is not working. I tried using TO_CHAR(TERMDATE,'DD/MM/YYYY') , trunc(TERMDATE).. nothing works out. Datatype is Varchar 26. Plz help.
@gokilaharish6305
@gokilaharish6305 Жыл бұрын
I fixed it.. following syntax works out.. UPDATE tablename SET TERMDATE=cast(to_timestamp_tz(TERMDATE, 'yyyy-mm-dd hh24:mi:ss "UTC"') as date) WHERE TERMDATE IS NOT NULL;
@herdataproject
@herdataproject Жыл бұрын
Thank you so much for this. It will be very helpful for many other people using Oracle.
@afolayandamola6378
@afolayandamola6378 Жыл бұрын
for the birthdate update, i keep getting truncated incorrect date value '6/29/1984', how do i correct that error
@ChinweAirdrop
@ChinweAirdrop Жыл бұрын
Change y to capital Y
@chyonu
@chyonu Жыл бұрын
@@ChinweAirdrop the birthdate column becomes null Pls what's the solution?
@pruthviraj8474
@pruthviraj8474 10 ай бұрын
@@ChinweAirdrop Thank you so much
@adhytiamps622
@adhytiamps622 Жыл бұрын
i get trouble with this query, the output is error : SELECT GENDER, count(*) AS COUNT FROM HR WHERE AGE >= 18 AND TERMDATE = IS NOT NULL group by GENDER; because some part in termdate table is null? how can fix it?
@herdataproject
@herdataproject Жыл бұрын
Remove the = from TERMDATE = IS NULL. It should work
@samratkundu2799
@samratkundu2799 Жыл бұрын
Hi, it was a great video. I'm working on a HR Analytics Portfolio Project. The way You imported data in Power BI, can you please tell me how make this Dashboard Interactive ?
@herdataproject
@herdataproject Жыл бұрын
Hi,you can add slicers to the report to be able to filter by your fields of interest. That will make the dashboard interactive
@oluwasegunraimi3453
@oluwasegunraimi3453 Жыл бұрын
Some functions like describe, str_to_date isnt working on my system
@herdataproject
@herdataproject Жыл бұрын
Which SQL dialect are you using?
@oluwasegunraimi3453
@oluwasegunraimi3453 Жыл бұрын
MySQL
@inglestopia
@inglestopia Жыл бұрын
I think you made a mistake in minute 33:17, it should be THEN '45-54' and not 44-54 and you didn't correct it, but I think everything else is fine, thanks for the video.
@herdataproject
@herdataproject Жыл бұрын
Thanks for the feedback. I'm glad you found the video helpful
@eltoski01
@eltoski01 Жыл бұрын
Please i have a question... When i query for "what is the gender breakdown of employee in the company" and SQL returns the result table.....is there a way to save the result so that when I connect powerBI to the SQL database I will have access to the result table from the query rather than exporting each result as a CSV because imagine you are working with a large company and the result table from your query is 3million rows I don't think I will be able to export that into excel easily? Do you get me?
@herdataproject
@herdataproject Жыл бұрын
Yes I get you. I think what you're looking for is something like a database view. Create a database view with the SQL query logic. Power BI can then directly connect to this view and retrieve data without running the query every time. I have never tried to use it before with PowerBI or even Tableau but I think it would work. You can try it out and let me know.
@eltoski01
@eltoski01 Жыл бұрын
@@herdataproject I think you're right. Just did a quick Google search and I think database views might be the solution. Thanks for the reply
@ChinweAirdrop
@ChinweAirdrop Жыл бұрын
Thank you so much for this project When I try Update hr Set termdate = date(str_to_date(termdate, '%Y-%m-%d %H:%i:%s UTC')) Where termdate is not null and termdate != ' '; It shows error incorrect datetime value
@herdataproject
@herdataproject Жыл бұрын
Hello please refer to the pinned comment
@ChinweAirdrop
@ChinweAirdrop Жыл бұрын
@@herdataproject thank you 🤗
@poojaganguli4828
@poojaganguli4828 Жыл бұрын
Hello , UPDATE hr SET termdate = date(str_to_date(termdate, '%Y-%m-%d %H:%i:%s UTC')) WHERE termdate IS NOT NULL AND termdate != ' '; - This part is throwing error on mysql. Below is the response error- Response- Error Code: 1411. Incorrect datetime value: '' for function str_to_date
@poojaganguli4828
@poojaganguli4828 Жыл бұрын
@@herdataproject Error Code: 1411. Incorrect datetime value: '' for function str_to_date
@herdataproject
@herdataproject Жыл бұрын
So the error message suggests that you have an empty string ('') in your termdate column, which cannot be converted to a datetime value using the str_to_date() function. To fix this, you can add an additional condition in your WHERE clause to exclude empty strings: So add this condition as well to just take care of any kind of empty string in the column UPDATE hr SET termdate = date(str_to_date(termdate, '%Y-%m-%d %H:%i:%s UTC')) WHERE termdate IS NOT NULL AND termdate != ' ' AND termdate != '';
@casafurix
@casafurix Жыл бұрын
UPDATE hr SET termdate = IF(termdate IS NOT NULL AND termdate != '', date(str_to_date(termdate, '%Y-%m-%d %H:%i:%s UTC')), '0000-00-00') WHERE true; this will fix it
@princessiloh5091
@princessiloh5091 Жыл бұрын
@@casafurix Thanks
@PinessCodes
@PinessCodes Жыл бұрын
@@casafurix it's showing this error 1411 Incorrect datetime value: "for function str_to_date
How to Document Data Analysis Projects on GitHub the Right Way
41:37
Her Data Project
Рет қаралды 55 М.
📱 Mobile Usage Dashboard in Tableau 📊
58:14
CatchyData
Рет қаралды 44
The evil clown plays a prank on the angel
00:39
超人夫妇
Рет қаралды 53 МЛН
How LLMs Are Trained - A Gentle 5 Mins Introduction!
4:34
Pavan Belagatti
Рет қаралды 25
Learn 12 Basic SQL Concepts in 15 Minutes (project files included!)
16:48
How I Would Learn to be a Data Analyst
10:22
Luke Barousse
Рет қаралды 41 М.
🚨 YOU'RE VISUALIZING YOUR DATA WRONG. And Here's Why...
17:11
Adam Finer - Learn BI Online
Рет қаралды 290 М.