SQL Portfolio Project - Part 2 - Zomato | Analytics | Ashutosh Kumar

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2022
  • The best technique of learning a skill is completing a project which is based on real life scenario and when it comes to analytics , SQL is the one of the most asked skillset in all the interviews, so friends in this video i have created an end to end project on data analysis using SQL, thi will be relevant to all those people who want to make a career into data analytics, business analytics ,data science , in this video i have analysis on zomato dataset . You can find the code attached below -
    drop table if exists goldusers_signup;
    CREATE TABLE goldusers_signup(userid integer,gold_signup_date date);
    INSERT INTO goldusers_signup(userid,gold_signup_date)
    VALUES (1,'09-22-2017'),
    (3,'04-21-2017');
    drop table if exists users;
    CREATE TABLE users(userid integer,signup_date date);
    INSERT INTO users(userid,signup_date)
    VALUES (1,'09-02-2014'),
    (2,'01-15-2015'),
    (3,'04-11-2014');
    drop table if exists sales;
    CREATE TABLE sales(userid integer,created_date date,product_id integer);
    INSERT INTO sales(userid,created_date,product_id)
    VALUES (1,'04-19-2017',2),
    (3,'12-18-2019',1),
    (2,'07-20-2020',3),
    (1,'10-23-2019',2),
    (1,'03-19-2018',3),
    (3,'12-20-2016',2),
    (1,'11-09-2016',1),
    (1,'05-20-2016',3),
    (2,'09-24-2017',1),
    (1,'03-11-2017',2),
    (1,'03-11-2016',1),
    (3,'11-10-2016',1),
    (3,'12-07-2017',2),
    (3,'12-15-2016',2),
    (2,'11-08-2017',2),
    (2,'09-10-2018',3);
    drop table if exists product;
    CREATE TABLE product(product_id integer,product_name text,price integer);
    INSERT INTO product(product_id,product_name,price)
    VALUES
    (1,'p1',980),
    (2,'p2',870),
    (3,'p3',330);
    select * from sales;
    select * from product;
    select * from goldusers_signup;
    select * from users;
    ----------------------------------------------------------------------------------------------------------------------
    Check out some more relevant content here
    👉 SQL Portfolio Project Indian Census- Part 2
    • SQL Portfolio Project ...
    👉 SQL Portfolio Project - Shark Tank India
    • SQL Portfolio Project ...
    👉 How to Learn SQL
    • How to learn sql for b...
    👉 Complete playlist on Sql Interview questions and answers
    • HackerRank SQL problem...
    👉 Top free and best resources to learn analytics -
    • Free and Best resource...
    👉 How to become a data analyst complete roadmap-
    • Data Analyst Complete ...
    👉 Data analytics internships and job stipend-
    • 70,000 + per month dat...
    👉 Top 3 you tube channels to learn sql for free for beginners
    • Video
    👉 How to get data analytics internships-
    • How to apply for data ...
    👉Check out the roadmap to become a business analyst - • Business Analyst Compl...
    👉All about analytics playlist-
    • All about analytics
    👉 Top 3 you tube channels to learn excel for free for beginners
    • Top 3 you tube channel...
    ____________________________________________________________________
    Fill the form below to subscribe yourself to the analytics jobs mailing list to receive regular job opening updates - docs.google.com/forms/d/e/1FA...
    Why you should definitely fill the analytics job updates google form - • Job Openings into busi...
    _______________________________________________________________________
    Connect with me
    📸Instagram - / ashutoszh
    💻Linkedin- / ashutosh.analytics
    _____________________________________________________________________
    Comment down if you have any doubts
    Please leave a LIKE 👍 and SUBSCRIBE ❤️ to my channel to receive more amazing content in data analytics and data science.
    _____________________________________________________________________
    🏷️ Tags
    sql,
    sql for analytics,
    sql tutorials for beginners,
    portfolio project sql,
    sql portfolio project,
    portfolio project on sql for resume,
    sql interview portfolio project,
    sql interview questions and answers,
    sql for data analytics,
    sql data science,
    interview questions on sql,
    sql hard questions,
    sql problem solving,
    ashutosh,
    ashutosh kumar,
    ashutosh kumar analytics
    🏷️ HashTags
    #sql #portfolio #project

Комментарии • 91

  • @AshutoshKumaryt
    @AshutoshKumaryt  Год назад +4

    SQL Portfolio Project - Part 1 - Zomato - ruclips.net/video/BlN4U7GF704/видео.html

    • @arnabmaity751
      @arnabmaity751 4 месяца назад

      please provide the dataset along your video

    • @AshutoshKumaryt
      @AshutoshKumaryt  4 месяца назад

      @@arnabmaity751 check pinned comment or description box for the dataset

  • @Rachel-ds5bm
    @Rachel-ds5bm 9 дней назад

    Thankyou so much for this. Learnt a lot from you. Keep doing more such videos

  • @reelsbeelz
    @reelsbeelz Год назад +2

    Thank u sir.. I have learned alot from this project.. Thanks alott.. 🤗

  • @udayan5
    @udayan5 11 месяцев назад +1

    its a wonderful session that i had.

  • @muskanverma9038
    @muskanverma9038 Год назад +1

    Thanks ashutosh, you are doing great work, wishing you success at this .

  • @lilyfullery4779
    @lilyfullery4779 Год назад +1

    thanks need more video like this with big data and more complex questions

  • @sambitpati6129
    @sambitpati6129 Год назад +4

    GReaT job DUDE !!! heart full of thanks ❤❤❤❤❤

  • @tempestking4624
    @tempestking4624 Год назад +1

    Thanks a lot this really helped as I made a last minute project it revised my concepts plus I was able add it in. my portfolio, really awesome please get us more videos like this

  • @Livefree103
    @Livefree103 10 месяцев назад +1

    Amazing project. got to learn a lot. Thankyou sir

  • @ceilingfan2031
    @ceilingfan2031 Год назад +2

    So many people can't find the dataset because they fail to listen... I'm surprised you have the patience to deal with all these comments lol. These videos were a great way to showcase understanding of important SQL concepts. Really well explained video! Keep up the good work

  • @kiranpkulkarni6877
    @kiranpkulkarni6877 Год назад

    I learnt few things from this project. Thanks

  • @tharunprabu1230
    @tharunprabu1230 Год назад +1

    Nice, keep up the good work.

  • @user-ce3ry1jp3v
    @user-ce3ry1jp3v Год назад +1

    Thanks a ton, Ashutosh

  • @suharshac4021
    @suharshac4021 Год назад +1

    very helpful for beginners for understanding concepts and projects.waiting for new projects

  • @user-rn8ji1pn3n
    @user-rn8ji1pn3n Год назад +2

    Hi Ashutosh, thank you for your great efforts. One suggestion I would like to share is please share the queries through ctes instead of sub-queries as ctes are more easy to understand and more readible

    • @AshutoshKumaryt
      @AshutoshKumaryt  Год назад +1

      hey that's correct , its fast also , there are many ways to solve a problem

  • @harshshah9006
    @harshshah9006 Год назад +1

    Thank u so much !!

    • @harshshah9006
      @harshshah9006 Год назад

      Bhaiya plz make a video on how to add files to github (sql) plz

  • @Motivational_Greek
    @Motivational_Greek Год назад +1

    Thank you...

  • @vaidiksirsate6776
    @vaidiksirsate6776 Год назад

    thank you so much

  • @VinayYadav-gu4xb
    @VinayYadav-gu4xb Год назад +1

    Thank u sir

  • @sumitrathod6962
    @sumitrathod6962 Год назад +1

    Hi Ashutosh, I think in the question 10th, you've not considered the total no. of orders purchased by those customers in one year of span after becoming gold members.

  • @nishantnandkeolyar13289
    @nishantnandkeolyar13289 Год назад +1

    Thank you so much 👌

  • @jameammarijr.2248
    @jameammarijr.2248 10 месяцев назад

    Thanks!

  • @user-ec6ez5kx1b
    @user-ec6ez5kx1b 11 месяцев назад +1

    Thanks a lot for this video, I Just want to know if I can add this to my resume? as a fresher looking for jobs

  • @saurabhpathak7463
    @saurabhpathak7463 Год назад

    in question 12, if we order created_date in ascending order, i am getting first zeroes then 6, 7 at last for userid: 1 how to make them 1 and 2?

  • @thatgoanguy4427
    @thatgoanguy4427 Год назад +1

    How to create a dashboard of so many questions? Is there a better way?

  • @SBS-2030
    @SBS-2030 6 месяцев назад +1

    Thanks to share concept of rank ()

  • @ayushsahu632
    @ayushsahu632 Год назад +1

    how to add this project in our portfolio?

  • @pragyatigga5340
    @pragyatigga5340 Год назад +1

    I used workbench to create database and query it.
    For 10th scenario created_date

    • @latestlaunchesandreviews5489
      @latestlaunchesandreviews5489 9 месяцев назад +2

      In Postgre SQL , I had to use , created_date BETWEEN gold_signup_date AND gold_signup_date + INTERVAL '1 year'

  • @SaiKumar-ss8id
    @SaiKumar-ss8id 11 месяцев назад

    in question 7, question is about the latest product before gold member so all the three customer will be present so is it correct to use inner join? may be using left join can be correct noe? plz reply and correct me if im wrong.

  • @adityatomar9820
    @adityatomar9820 Год назад +1

    Sir please make a video on how to add this project on github !!!

  • @shwetamishra1497
    @shwetamishra1497 4 месяца назад

    Content is really good. Please improve video quality it's quite difficult to see the query. Otherwise sql queries are really awesome. Thanks for the video

  • @DaughterOfGodJG
    @DaughterOfGodJG Год назад

    in ques 6, a is for sales, b : goldusers-signup, c & d ??

  • @dhruveshbandivadekar9986
    @dhruveshbandivadekar9986 Месяц назад

    IN THE 10TH QUESTION,YOU ALSO HAVE TO USE GROUP BY CLAUSE AS THEIR CAN BE MORE THAN ONE ORDERS,SO U NEED TO FIND THE TOTAL PRICE OF ALL THE ORDERS TO CALCULATE THE POINTS

  • @starbonegaming9980
    @starbonegaming9980 5 месяцев назад

    sir i have one query in 10 question we have apply datediff library to replace a dateadd library

  • @parvezshaikh9712
    @parvezshaikh9712 Год назад +1

    Thankyu bhai plzz aur projects lao aise

  • @rishabhmehta2294
    @rishabhmehta2294 Год назад

    dateadd function not giving the output as it shows column 'year' dose not exist.

  • @sachinok113
    @sachinok113 Год назад

    how to do this project in mysql?

  • @jayasriammu4112
    @jayasriammu4112 10 месяцев назад

    hi sir i have one doubt 9 qus y u div by amount and points pls explain it

  • @nitishpandey7741
    @nitishpandey7741 Год назад

    Hi Sir, Q8 is showing error as ambigous. column reference Price is ambigous.used exactly ur code

  • @user-bx3uk4wo2o
    @user-bx3uk4wo2o Год назад

    Couldn't able to understand q-9 how Zomato point distribution on p2

  • @narendrakumarchauhan8928
    @narendrakumarchauhan8928 Год назад

    Website aapne hta diya jis pr ye sabhi code lokhe the

  • @yash2k02
    @yash2k02 6 месяцев назад

    hello sir,
    I am unable to export these queries as tables into excel files, I wanted to create visualization on these data using power bi but I am not able to export the data as im facing "could not find object 'Query' error. Any response will be appreciated.
    Thanks

  • @sunnygawande5283
    @sunnygawande5283 Год назад +1

    Do we do same thing on job for data analytics??

    • @AshutoshKumaryt
      @AshutoshKumaryt  Год назад

      Not exactly but kind of, but good for learning purpose

  • @shrutibajaj7249
    @shrutibajaj7249 9 месяцев назад

    Hello Sir, In Question No 7: Why we are taking created_date

  • @vijinrajraj5746
    @vijinrajraj5746 8 месяцев назад +1

    Bro, Where can I find these data set and how to import, I am a beginner

    • @AshutoshKumaryt
      @AshutoshKumaryt  8 месяцев назад

      Bro check the description box of the video for the code and just copy paste the code in ssms

  • @samosagaming9476
    @samosagaming9476 Год назад +2

    i have done it in sqllite and I got it without cast()

  • @unpredictable_307
    @unpredictable_307 Год назад

    Sir use both Hindi+ English language

  • @kavinchellamuthu2601
    @kavinchellamuthu2601 Год назад

    Sir can I use this in resume..

  • @khushboojain3883
    @khushboojain3883 Год назад

    Hi Ashutosh Sir,
    While solving the first problem statement @08:41 , I am getting wrong output even after I am using your code. My code and your code are giving same answers.
    The output:
    1|10-23-2019|2|09-22-2017|1
    3|11-10-2016|1|04-21-2017|1
    I used online SQL compiler to run it. Please help me.

    • @muskanjain6530
      @muskanjain6530 Год назад

      Yes i am also getting same

    • @muskanjain6530
      @muskanjain6530 Год назад

      What is the problem we are doing
      Have u come to know about the same ?

    • @abhinavreddy4327
      @abhinavreddy4327 Год назад

      i am also getting the same output, may be it is getting sorted by date instead of year

    • @vyshnavveeravalli2305
      @vyshnavveeravalli2305 9 месяцев назад

      @@muskanjain6530 try for "yyyy-mm-dd"

  • @mukeemshaikh6380
    @mukeemshaikh6380 8 месяцев назад

    Give the data and er diagram for project so pls send

    • @AshutoshKumaryt
      @AshutoshKumaryt  8 месяцев назад

      Data is provided in the description box , just cop the code and proceed

  • @phelelanimkhize4522
    @phelelanimkhize4522 Год назад +1

    WHAT IS THE POINT OF FOLLOWING ALONG THIS ENTIRE EXERSIZE IF THERE IS NO DATASET?

    • @AshutoshKumaryt
      @AshutoshKumaryt  Год назад

      Please find the code in the description box

    • @sabbatical786
      @sabbatical786 10 месяцев назад

      @@AshutoshKumaryt code not working

    • @aish000
      @aish000 2 месяца назад

      ​@@sabbatical786it is working.

  • @farazahmad4002
    @farazahmad4002 Год назад

    bhai this time again its showing wrong date format in SQL work bench

    • @davidrajajames6898
      @davidrajajames6898 Год назад

      exactly MySQL workbench following different date formats and mssql sever following other time format

  • @miniverma2768
    @miniverma2768 Год назад +1

    Please improve your video quality.

    • @AshutoshKumaryt
      @AshutoshKumaryt  Год назад

      Thanks a lot , please let me know what exactly, it will help me to improve

  • @panther_.gaming
    @panther_.gaming Год назад

    select c.userid,sum(zomato_points) from
    (select b.userid,a.*,
    ( CASE product_name when 'p1' then price/5*2 when 'p2' then price/10*5 else price/5*1 end) as Zomato_Points
    from product a
    inner join sales b
    on a.product_id=b.product_id) c
    group by userid
    order by userid
    Can anyone say can i find answer of 9 with this code??....coz what i get and what shown in this video is different answers and if you manually calculate you will get this answer