SQL Project | SQL Case Study to SOLVE and PRACTICE SQL Queries | 20+ SQL Problems

Поделиться
HTML-код
  • Опубликовано: 25 ноя 2024

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

  • @easycommerceclasses8241
    @easycommerceclasses8241 22 дня назад +1

    You are the best person I found on youtube to explain SQL queries so simply, clearly and correctly..please do keep making such videos and helping people like me..Thanks so much..

  • @hamantjagwan07
    @hamantjagwan07 10 месяцев назад +32

    I always consider you as my primary SQL mentor. 🙏😊
    Could you please provide us the answer key for the questions mentioned in the video? I would like to solve those questions

    • @techTFQ
      @techTFQ  10 месяцев назад +4

      Thank you ☺️
      The solutions are already provided in my blog. You can find the link in video description

  • @Pravin33unique95
    @Pravin33unique95 10 месяцев назад +7

    Its great for freshers who wants to improve their problem solving skills

  • @leonmadara3903
    @leonmadara3903 10 месяцев назад +11

    This guy is amazing!!! The stuff I have learnt from you is infinite, God bless!!! And please, make more video!!! Make it longer, tackle all the questions, we are hear to learn!!! SIMPLY AMAZING!!! THANKS

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

      Thank you so much :) Much appreciated.

  • @SOURABHJHA-cp5px
    @SOURABHJHA-cp5px Месяц назад +1

    As a fresher I'm feeling good that i have learned how to upload multiple file into databse using this simple python script in a few seconds 😀

  • @frankedwin1183
    @frankedwin1183 10 месяцев назад +3

    This guy is so smart ... I'm dicovering incredible tricks in SQL. Amazing.

  • @debacle-stylings7505
    @debacle-stylings7505 5 месяцев назад

    i never leave comments on youtube but have to say that your videos are by far the best ive found ( after extensive searching )in regards to learning data analysis thank you very much!

  • @Sai-nk1vd
    @Sai-nk1vd 8 месяцев назад

    This is pretty straight forward, precise and crisp. Good content explained in a great way. So helpful. Thank you.

  • @mohsinmanzoor2483
    @mohsinmanzoor2483 10 месяцев назад +5

    Can we use groupby in question 10.
    How it is different from day in (‘sunday’,’monday’)

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

    superb affords. really hats of to you.please start a playlist videos for data engineers.which will help lots of techies

  • @yashwanthrasamala5933
    @yashwanthrasamala5933 10 месяцев назад +3

    Wait for more such kind of videos

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

      will look into it. thank you

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

    You are really perfect mentor for postgray sql, Thanks a lot 😍👍👍

  • @NjabuloDlamini-g6l
    @NjabuloDlamini-g6l 10 месяцев назад +1

    Thank you for this one. I hope I'm not asking too much as I would like you to do another one covering the remaining questions.

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

    hi thoufiq, great video. I just wanted to point out that in the third query the desired output should be country:USA and city: New York, Washington. The country USA has most no of museums and the cities New York and Washington (in USA) have the most no of museums. Other cities ie London and Paris should not be included in the output.

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

      Exactly! That's my confusion too. I assumed that we need to show the cities with max museums in countries with the max museums. Maybe it's the phrasing of the question that's throwing me off. Thoufiq....would you care to explain please..?

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

    Much awaited😍As always, best of the best 👍

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

      Thank you :)

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

    Your videos always inspires to dig more into subject. Can i get the detailed SQL sessions from basics to advance and also with real time scenarios.

  • @-TechLearning
    @-TechLearning 7 месяцев назад +6

    Bro, I am not able to connect MySQL to Python and load the data into my database table. can you please help me? I have tried different methods but am still unable to make this happen.

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

    Excellent and very informative, learned a lot of new things in SQL and python from this video. Thanks.

  • @Lokeshna83
    @Lokeshna83 10 месяцев назад +6

    Hi Thoufiq,
    Thank you for all your vedios.
    Is there any possibility that you can provide training personally by taking the charges?
    It would be highly helpful.

  • @sam-uw3gf
    @sam-uw3gf 10 месяцев назад +1

    The data can be imported in Mysql easily than writing code of this much but I came to know about this way 👍👍

  • @debapriyabehera7146
    @debapriyabehera7146 10 месяцев назад +2

    Waiting for this kind project 😊

  • @okechukwuezinne6236
    @okechukwuezinne6236 7 месяцев назад

    I enjoyed the video cos you teach so well.
    Thanks, man.

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

    Amazing query has learnt from you. Thanks

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

    You are Genius Man.🙌

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

    Yes sir plz make more. Plz make some interviews specific ones

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

    Excellent tutor,

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

    Awesome... please make such more videos

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

    Thanks a lot. You are amazing as always. Great content! 🥰

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

      Your welcome 🙏

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

    Thank you so much sir, this is very helpful video ❤🙏

  • @mymother6983
    @mymother6983 14 дней назад

    I found your video very helpful. Thank you for putting so much effort to teach us.

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

    🎉🎉 this is a blessing 🙌

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

    Hii... instead of Python can we use SSIS to load data into the respective tables.??
    Kindly respond PLZ.
    Thank you for the efforts and the information. I learnt so much from your videos.

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

    Very interesting video. Please make some more such case study videos. Thanks in advanced

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

    Nicely explained sir. One question - What if we just want to add/append the data in the existing table using python?

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

    Great video! I really appreciate the part about Python since I always thought that it was really hard. However, you showed that with a few lines of code, you can achieve a lot even without being a programmer or something. Very useful! I have one question, maybe too about the solutions: Do we need any type of grant permission to run df.to_sql()?

  • @abisheks.p6223
    @abisheks.p6223 10 месяцев назад

    Thanks a lot. Your content is amazing Sir. Hope to learn lot of things from you Sir. A small request, can you please post videos on performance tuning in SQL.

  • @shaikiliyaz3004
    @shaikiliyaz3004 3 месяца назад

    Hi toufiq, thanks for such a useful content for us im throughly following your veduos and posts.
    May i know where can i get the remain problem as shown in this project. I would like to practice remain problems.

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

    Thank you for this tutorial. Please what connector can i use for MySqQL

  • @PraveenKumar-ic1to
    @PraveenKumar-ic1to 9 месяцев назад

    My sql mentor😊😊😊😊😊

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

    Hey Thoufiq, Thank You. I have a question, you have made a video for practicing sql from different website can you please help us with python, where we can practice python specifically for Data Analysis

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

    You are the best sir

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

    And this video is so so superb!💝😍

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

      Thank you

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

    Very nice content!

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

    Hi Thoufiq! I am using MQLWork bench instead of Postgresql. Is the process the same for connecting to the database?

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

    Finally wait is over

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

    Hi TFQ!!!Could you please make videos on MsSQL

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

    I have one question, are you create the tables before?

  • @imtiazali-xu8gw
    @imtiazali-xu8gw 2 месяца назад

    uploading datasets on sql should be preferred because studying datasets on python is more convinced but we can't study large datasets on python so learning sql for large sets must be preferred

  • @industryrule-4080
    @industryrule-4080 10 месяцев назад

    In problem 15, you finished with a subquery and where rank = 1 statement. Would a simple limit 1 have worked the same?

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

    Great video. Is there chance for you to make video on pyspark as well?

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

    For question 10 can it also be WHERE day = ‘Sunday’, ‘Monday’ or Where day IN (‘Sunday’, ‘Monday’)?

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

    Superb explanation 👌 👏 👍

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

      Thank you 🙂

  • @KarthickUdaiy21
    @KarthickUdaiy21 3 месяца назад

    Which ide are you using? For sql

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

    I would like to see a similar video for MongoDB

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

    Wonderful content 👏👏👏

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

    facing issues as no module as pandas , could you make a video on python installation and configurations

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

    sir I want to add this as a project in my resume , however, I am new to it , Could you briefly tell me how to mention (as in what key points to mention)?

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

    May Allah also make me master in Sql like u....❤

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

      Aameen

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

    Tried problem 10 using CTE, more complicated maybe : )
    with cte as(
    select * from museum_hours
    where day in ('Sunday', 'Monday')
    ),
    cte2 as(
    select museum_id, string_agg(day, ', ') as days_comb
    from cte
    group by museum_id
    )
    select museum.name, museum.city
    from cte2
    left join museum on cte2.museum_id = museum.museum_id
    where cte2.days_comb = 'Sunday, Monday';

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

      How is this?
      WITH cte AS (
      SELECT museum_id, count(day) AS both FROM museum_hours
      WHERE day in ('Sunday','Monday')
      GROUP BY museum_id
      )
      SELECT name, city FROM museum M
      JOIN cte C
      ON C.museum_id = M.museum_id
      WHERE both = 2

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

    At 34:15 you could have also used GROUP BY Country instead of doing all distinct and string agg for that.

    • @techTFQ
      @techTFQ  10 месяцев назад +2

      there are always multiple ways to solve a problem in SQL. However I am not sure what you exactly mean but I am sure there are other solutions too

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

      34:06 since the countries were getting repeated, you could have only used GROUP BY Country instead of using another string agg.

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

    Want to learn sql from scratch from you.Are there any classes conducted by you? could you please show the path?

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

      Following as I would be interested

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

      He has a sql class. You can check his blog. I took his class last year and it really improved my sql skills

  • @AnalysisWithVinay
    @AnalysisWithVinay 10 месяцев назад +2

    Thanks

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

    Thank you for another nice video.

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

      Thank you too!

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

    Thnk u so much toufique please one migration project scenario from python to snowflake how it's behavs and how it wil done pls make an video

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

      I have already done one project using python and snowflake. may be check that out. linke below:
      ruclips.net/video/GHtX0QXfi6g/видео.html

  • @nazlıcerenkoç
    @nazlıcerenkoç 8 месяцев назад

    Hi! Thank you for great video! Is the procedure is same for uploading the csv from Python to MySQL? (I have zero knowledge of Phyton:)

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

      No , db_url method will be different

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

    Hi, please grant my request. Could you please make a video about sql triggers or dcl?

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

    Sir when join two CTEs, why do we need to use CROSS JOIN? Why can't we simply use a comma? Like
    SELECT *
    FROM t1,t2

  • @malaksoni3027
    @malaksoni3027 5 месяцев назад +1

    sale price means discounted price from regular price thank you

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

      there is no sell price its sale so it is discounted

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

    All set to do this.. 😊

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

    Can we use LIMIT clause in Q no. 15 instead of Rank function ?

    • @sanskargarg8558
      @sanskargarg8558 3 месяца назад

      i also used limit in last two queries . worked absolutely fine

  • @imrankhan-c3b
    @imrankhan-c3b 4 месяца назад

    can i import data with the given method for mysql? python to mysql

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

    Thanks!

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

      Thank you ❤️

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

    Awesome

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

    @techTFQ pls how should i approach' to_timestamp' in MSSQL

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

    Hi, can wecuse anaconda for python instead of visual basics

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

    Can we do this with SQL server with same python script?

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

    I never even heard about exists. Can query 1 be done in another way?

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

    good video

  • @Ankit-rv2my
    @Ankit-rv2my 9 месяцев назад

    Hello Thoufiq , will the same line of code work for sql server too as I am working on it

  • @nagasuresh-r5m
    @nagasuresh-r5m 10 месяцев назад

    What if in case, I need to upload files from an s3 or from source other than local machine. how can I upload it to DB using python?

  • @thepeopleshub.24
    @thepeopleshub.24 3 месяца назад

    Is this put in resume?

  • @skthenmozhi3142
    @skthenmozhi3142 27 дней назад

    can i use pycharm?

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

    Hi
    If you could share the PowerBI project on Information Security.

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

    Thank you in advance

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

    --we can also solve q10 from this way
    Select
    m.name,
    m.city,
    m.state,
    m.country
    from
    museum m
    join
    museum_hours mh
    on m.museum_id = mh.museum_id
    where
    mh.day = 'Sunday'
    Intersect
    Select
    m.name,
    m.city,
    m.state,
    m.country
    from
    museum m
    join
    museum_hours mh
    on m.museum_id = mh.museum_id
    where
    mh.day = 'Monday'

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

    Sir please create sql course for college students
    We don't much more money
    Please create udemy course
    Thanks sir❤

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

    Can you please help me with converting time from varchar to time datatype in MSSQL server. thank you

  • @KishanSingh-tk6sg
    @KishanSingh-tk6sg 7 месяцев назад

    Hi you are going to start SQL batch where will i get link for that

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

    Hi Thoufiq,
    I tried different way, but could not find altrenative to to_timestamp() function for mysql, is there any?

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

    How load data into database

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

    Hi,
    Postgres did not allow my query to run, is there any database permission issue, I tried to run the same Python script and also created a "painting" database, with no error from the Python script but unable to see any database changes.

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

    sir can you explain Q-14 query, please

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

    Thank you

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

    I am really having a hard time connecting to the postgres with python, the code is refusing to work, frustrated

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

    why do we need to send the datasets to sql any more while we can use pandas to read them ?!

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

    Assalamu alaikum warah.
    Taufiq, can you please do an SQL video on time series analysis?

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

      Walaikum salaam ,
      sure, let me consider it.

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

      Thanks. Waiting 😊.

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

    how can we show this as a project like writing a report or what?

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

    Hi Toufiq,
    I am trying to connect to the PostgreSQL using the python script you have provided but I am getting the Syntax error at the initial step itself. Please help me if possible.
    Thanks in advance

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

      Before doing his method, create virtual environment and then install pandas, sqlalchemy, pyscopg2 and then follow him

  • @kirandarshanooj9716
    @kirandarshanooj9716 7 месяцев назад

    I am unable to see any CSV file in the Document path

  • @rajeshkumar-lo7te
    @rajeshkumar-lo7te 10 месяцев назад

    can you please explain on how to do it in mysql ?