Practice Writing SQL Queries using Real Dataset(Practice Complex SQL Queries)

แชร์
ฝัง
  • เผยแพร่เมื่อ 25 ธ.ค. 2024

ความคิดเห็น • 376

  • @StefanoVerugi
    @StefanoVerugi 3 ปีที่แล้ว +48

    I'm a beginner and found these videos amazing.
    Everything is just what you need, no frills, no lengthy talking, right to the point, If I can follow, everybody can.
    Real examples of how to solve queries, proper use of screen space, with a strong support from his blog where you can delve into more if still hungry of it.
    All for free, I so much appreciate this work, first class.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +2

      This feedback made my day..
      thank you Stefano 🙏🏼
      Your feedback is so precise that I feel I am able to deliver what I wished to deliver..
      Thanks again and I am so happy you are able to follow this video 🙏🏼☺️

    • @rahulganga3274
      @rahulganga3274 ปีที่แล้ว

      You are beginner and you need short and real examples >> How examples in shorts ? Don't Lecture If you Don't Have Common sense.. He is doing Perfect..

    • @IndianHacker-hisBest
      @IndianHacker-hisBest ปีที่แล้ว

      You are awesome Taufiq bro @@techTFQ

  • @sudhap1555
    @sudhap1555 3 ปีที่แล้ว +20

    Thank You so much techTFQ. Your videos are sooo soo good. After learning window function by myself, the concept wasnt clear for me. It was after watching your video on window function I got a idea of how it works. Last month I had interview and questions were from SQL only. They asked different queries based on window functions and joins. The result came within a week and I am joining the company as Research Executive.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +4

      Amazing to hear this Sudha 👌
      Thank you for sharing your success story.. I am really happy to have contributed to your learning ..
      Wishing you all the very best with your new job 💐

    • @manojpatil2457
      @manojpatil2457 3 ปีที่แล้ว +2

      Kudos

  • @laurak5196
    @laurak5196 3 ปีที่แล้ว +4

    TFQ, it’s like you were reading my mind! This is exactly where I’ve been stuck, not only finding reliable datasets that are interesting, but not knowing how to properly load them into Postgres so I can play. I really want to thank you so much for your time and efforts. I’ve only seen your intro, but you can bet I’ll be returning to see how you’re importing this dataset and connecting it to Postgres. It seems like that would be an easy thing to do, but I’ve tried and it isn’t. You will be helping so many people with this video. And your explanations are better than most instructors I’ve seen. You have many talents, but you’re an excellent teacher. Thank you again, so glad I found you here on TH-cam! 🙏🏻😀

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Hi Laura ,
      Thank you for such an amazing feedback🙏🏼
      Taking your time to appreciate my work, I feel so happy to read each n every word you said.
      Am so glad you have liked my content and I am able to help you with your learning ☺️..
      Thanks again 🙏🏼

    • @laurak5196
      @laurak5196 3 ปีที่แล้ว +1

      @@techTFQ If I am able to make a career change as I hope to, it will be in no small part due to your efforts. I’m very grateful for your expertise and your ability to explain tricky concepts and break them down easily for us. Not everyone can do this; you have a gift 🙏🏻!

    • @laurak5196
      @laurak5196 3 ปีที่แล้ว +1

      @@techTFQ PS I’m also going to try and solve all of your questions and I’ll be visiting your blog for more on that. Hopefully I won’t need any of your hints but still being new to SQL, I’m not so sure on this. All the time and effort you put into this is really appreciated. I hope next year at this time you have over 100K subscribers because you deserve it!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      That’s a very big complement Laura .. You’ve made my day by such kind words..
      I truly wish you get your dream job ..
      thank you once again 🙏🏼

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Wowww amazing.. 100k would be great.. I’ll remember this comment if that happens by next year 😃
      And yes try out solving all the queries .. after that hopefully you can come up with some queries of your own..
      good luck 👍

  • @nareshsachin7967
    @nareshsachin7967 ปีที่แล้ว +4

    I have to mention the mistake from your blog. You gave a solution query In your official blog. Problem NO. 10 you write a query for fetch all female count and male count with out removing duplicate records. So it return more number of users rather then the actual user count. Please verify all queries once. Your tutorial is very helpful thank you lot.❤

  • @deepakts8941
    @deepakts8941 3 ปีที่แล้ว +11

    Sir I saw all the sql videos it was really helpful. You are one of the best faculty and make concepts understand so easily.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you so much Deepak 🙏🏼
      Am so glad you have liked my videos 🙂
      And thank you for taking time to leave your feedback 🙏🏼

  • @ckarkhan
    @ckarkhan 10 หลายเดือนก่อน

    Thoufiq, I've been writing SQL for many years now but watching these and other videos by you takes me to a different level. What I've learned is to break the problem into smaller parts and solve them individually. Also, there is a huge boost in my confidence in SQL interviews and the elevated quality of my code is noticed by the interviewers. All this is thanks to you. If I may request something, please make some videos on use of the QUALIFY clause in window functions. Also a video on the use of CUBE and ROLLUP features would be awesome! Is that asking for too much? Now, although I can read up on all these topics, if I watch your video, I will be able to internalize it even better. You are the best. Keep it up!

  • @kswinny365
    @kswinny365 7 หลายเดือนก่อน

    I cannot overstate how helpful this was. I was at my wit's end trying to figure out how to resolve the rogue ' without editing the source file. Thank you!

  • @enriquembomio3686
    @enriquembomio3686 3 ปีที่แล้ว +42

    You made my day and that of many others’ learning SQL by sharing this amazing video! Please keep posting such valuable materials 👍

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +3

      Thank you Enrique 🙏🏼
      Am so glad to hear you benefited from this video 🙂

  • @PiyushBhisekar
    @PiyushBhisekar ปีที่แล้ว

    How do you explain everything so effortlessly! Best SQL resource on the internet!

  • @minalgupta7456
    @minalgupta7456 2 ปีที่แล้ว +1

    yur are the best teacher of sql, I am a big fan of u

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you Minal :)

  • @hibanazar13
    @hibanazar13 2 หลายเดือนก่อน

    great toufiq, your teaching and explanations are top ...you deserve more ..

  • @swatisinha3230
    @swatisinha3230 3 ปีที่แล้ว +1

    It feels like whatever I am looking for now a days I can find it here. Thankyou so much for this video 🙏🏻

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome Swati 🙏🏼

  • @manishgaurav84
    @manishgaurav84 2 ปีที่แล้ว +3

    Very nice set of questions.
    Query 3, at 26:12, If in interviews it is not allowed to use pivot functions then we can do it using CASE WHEN
    with medals as
    (select nr.region as country,
    (case when medal = 'Gold' then 1 else 0 end) as Gold,
    (case when medal = 'Silver' then 1 else 0 end) as Silver,
    (case when medal = 'Bronze' then 1 else 0 end) as Bronze
    from olympics_history oh
    join olympics_history_noc_regions nr on nr.noc = oh.noc
    where medal 'NA')
    select country, sum(medals.Gold) as gold, sum(medals.Silver) as silver, sum(medals.Bronze) as bronze
    from medals
    group by country
    order by gold desc, silver desc, bronze desc;

    • @BeastFromPahad
      @BeastFromPahad 2 ปีที่แล้ว

      thanks, Manish i found this easy

    • @rushikesh3363
      @rushikesh3363 11 หลายเดือนก่อน

      You are right i think
      also check my answer plz
      with cta1 as
      (select country, count(*) as Gold from OLYMPICS_HISTORY oh join OLYMPICS_HISTORY_NOC_REGIONS nr on oh.noc=nr.noc WHERE medal='Gold' GROUP BY country)
      with cta2 as
      (select country, count(*) as Silver from OLYMPICS_HISTORY oh join OLYMPICS_HISTORY_NOC_REGIONS nr on oh.noc=nr.noc WHERE medal='Silver' GROUP BY country)
      with cta3 as
      (select country, count(*) as Bronze from OLYMPICS_HISTORY oh join OLYMPICS_HISTORY_NOC_REGIONS nr on oh.noc=nr.noc WHERE medal='Bronze' GROUP BY country)
      select country,gold,silver,bronze
      from cta1,cta2,cta3 where cta1.country=cta2.country and cta2.country=cta3.country;

    • @rushikesh3363
      @rushikesh3363 11 หลายเดือนก่อน

      also
      select nr.region as country,
      sum(case when medal = 'Gold' then 1 else 0 end) as Gold,
      sum(case when medal = 'Silver' then 1 else 0 end) as Silver,
      sum(case when medal = 'Bronze' then 1 else 0 end) as Bronze
      from olympics_history oh
      join olympics_history_noc_regions nr on nr.noc = oh.noc
      where medal 'NA'

  • @lucianlackman8103
    @lucianlackman8103 2 ปีที่แล้ว

    This is the kind of video been looking for ages

  • @jeevankumarthadikonda7151
    @jeevankumarthadikonda7151 2 ปีที่แล้ว

    The last query explanation was just mind-blowing the best part of your explanation is dividing the problem into small parts and solving it step by step

  • @msateeshkumar6902
    @msateeshkumar6902 2 ปีที่แล้ว

    You are like god ( teacher ) for me .🙏

  • @VsK3Bal
    @VsK3Bal 2 ปีที่แล้ว

    Your are the best! Thanks a lot for this class, now I know all the data sources and how to practice!

  • @sachinjagtap3220
    @sachinjagtap3220 ปีที่แล้ว +1

    Your videos are actually giving me practical training on sql , very well explained with logics and prgani

  • @bharathkumar.m9542
    @bharathkumar.m9542 2 ปีที่แล้ว +3

    You're the best man..main part is you explain how to write queries by dividing the question and even the format part you follow..excellent quality. Thanks for guiding so many of us through your valuable content ❤️🙏..it would be great if you do more videos of query optimization and tuning in stored procedures your way of teaching would make it simple to understand them.

  • @shobhareddy4159
    @shobhareddy4159 2 ปีที่แล้ว +1

    Yours are the best videos that I have ever found on you tube …. Keep going Toufiq

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad you like them Shobha!

  • @AhmerJamil
    @AhmerJamil 3 ปีที่แล้ว +5

    You are doing Amazing job, keep on doing the good work!!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Jamil 🙏🏼
      Glad you liked it..

  • @hieutruong1769
    @hieutruong1769 3 ปีที่แล้ว +2

    I have learned so much from your series. Thank you so much sir !!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you :)
      So glad to hear this..

  • @zeeshanahmed2594
    @zeeshanahmed2594 ปีที่แล้ว

    Thank you very much Sir, for this tutorial. Got more clearity and new perspectives to approach a problem.

  • @tushardaund3836
    @tushardaund3836 2 ปีที่แล้ว

    You are such an inspiration . the way you are helping me understand clearly what
    want is just amazing. Your efforts are seen and appreciated as well.
    i tried to solve question no 5 in my way please look once
    with cte as (
    select games , noc from OLYMPICS_HISTORY group by games ,noc )
    select noc ,count( noc) from cte group by noc having count(noc)=(select count( distinct games) from OLYMPICS_HISTORY );
    ;

  • @Ganeshay-09
    @Ganeshay-09 3 ปีที่แล้ว +3

    awesome👍👏👍👍👍👍👍👍👍👍👍👍

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Ganesh :)

  • @vishalsonawane.8905
    @vishalsonawane.8905 2 ปีที่แล้ว +1

    Hello God Gifted sir👑,
    I think you is one of the TH-camrs for best content to teaching SQL
    Your video is really amazing and we alll students shares your all videos to our college and teachers also refer your video....
    Please keep it up sir and make more videos for related SQL.... please please ..

  • @agrim8863
    @agrim8863 2 ปีที่แล้ว +2

    Thoufiq first of all the video is very insightful, and meticulous I reallly learnt a lot of new concepts hands down your tutorials on SQL are one of the I have ever come across. Please upload more such videos in future as well.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you Agrim :)
      I am glad to know you have benefited from these videos :)

  • @iitian2012
    @iitian2012 3 ปีที่แล้ว +6

    Your sql query brings lots of clarification to the approach of solving. It would e of great help if you could take a step more further considering the real time scenarios where we have large number of tables inter related and we have to write queries out of those table. The main issue we face in such cases is the approach to join the certain set of tables and in using the window functions as well.If you can guide for such cases.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +2

      Thank you Aditya 🙏🏼
      Prior to this video, I had already posted another video where I covered solving complex SQL queries where I used window functions and JOINS.. perhaps you can check that video out.. link below:
      th-cam.com/video/FNYdBLwZ6cE/w-d-xo.html

  • @poojamahesh8594
    @poojamahesh8594 2 ปีที่แล้ว +1

    really sir, u are doing a great job..please keep helping us!!!!
    really very very usefull

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you :) Glad you liked it Pooja

  • @sandeepbhonsle8118
    @sandeepbhonsle8118 ปีที่แล้ว

    This has actually helped me a lot in understanding the SQL
    Thanks and keep posting such videos.

  • @bayrambayramov4842
    @bayrambayramov4842 3 หลายเดือนก่อน

    Hello Thoufiq, I have been watching your videos and they are really helpful in understanding complex concepts. There is alternative solution to query 1:
    select * from
    (select sport, count(games) count
    from (
    select * from (
    select sport, games from olympics_history where season='Summer'
    )
    group by sport, games)
    group by sport) x
    where x.count = (select count(distinct games) from olympics_history where season='Summer');

  • @manishgaurav84
    @manishgaurav84 2 ปีที่แล้ว +2

    Similarly for Query 4, at 40:17,
    with medals as
    (select oh.games as games, nr.region as country,
    (case when medal = 'Gold' then 1 else 0 end) as Gold,
    (case when medal = 'Silver' then 1 else 0 end) as Silver,
    (case when medal = 'Bronze' then 1 else 0 end) as Bronze
    from olympics_history oh
    join olympics_history_noc_regions nr on nr.noc = oh.noc
    where medal 'NA'),
    county_wise as
    (select games, country, sum(medals.Gold) as gold, sum(medals.Silver) as silver, sum(medals.Bronze) as bronze
    from medals
    group by games, country
    order by games, gold desc, silver desc, bronze desc)
    select distinct(games),
    concat(first_value(country) over(partition by games order by gold desc),
    ' - ', first_value(gold) over(partition by games order by gold desc)) as Max_gold,
    concat(first_value(country) over(partition by games order by silver desc),
    ' - ', first_value(silver) over(partition by games order by silver desc)) as Max_silver,
    concat(first_value(country) over(partition by games order by bronze desc),
    ' - ', first_value(bronze) over(partition by games order by bronze desc)) as Max_bronze
    from county_wise
    order by games;

  • @shaikusman536
    @shaikusman536 3 ปีที่แล้ว +1

    WOW...(7,611) views, (402) likes 0 (Dislike) achived in 16 days (28-10-21 to 13-11-21); thats Awsome appreciation for your knowledge and skills brother.....Thanks a ton....

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Shaik :)
      I dint realize this like and dislike count until i saw this comment :)
      Glad this video is liked by so many.

  • @robertgatterai7269
    @robertgatterai7269 2 ปีที่แล้ว +1

    Man! I’ve been looking for something like this, thanks man

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      No problem buddy!
      glad this helped

  • @dimuthuathapaththu
    @dimuthuathapaththu ปีที่แล้ว

    Really appreciate your work. ❤❤❤

  • @tonydominic-ll4wi
    @tonydominic-ll4wi ปีที่แล้ว

    Bro your channel is Amazing I am officially a fan now 😀😀😀

  • @aapbeete9761
    @aapbeete9761 ปีที่แล้ว +1

    You made the first query very complicated. The simple solution is as follows:
    SELECT Sport
    FROM olympics_history
    GROUP BY Sport
    HAVING COUNT(DISTINCT Year) = (SELECT COUNT(DISTINCT Year) FROM olympics_history where Season='Summer');

  • @pveeranjireddy8959
    @pveeranjireddy8959 3 ปีที่แล้ว +1

    Thank you... thank you....for sharing and posting.to world

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome bro 🙏🏼
      Glad this helped

  • @pragyan11114
    @pragyan11114 2 ปีที่แล้ว +1

    great work .It is really very much helpful for beginners. Please do more videos for us.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you and will do

  • @girijashamak9142
    @girijashamak9142 3 ปีที่แล้ว +1

    Just came back to your channel. Very happy to see you with many more subscribers. More wishes young man. God bless 🙏

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you so much Girija :)

  • @SSRKFJ
    @SSRKFJ 3 ปีที่แล้ว +1

    Amazing...thanks a lot for sharing knowledge.. It means so much for learners lik me... Pls continue and post more content about sql for data analyst

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Jayanth 🙏🏼
      Glad to see your comment ☺️

  • @tamilanveeran4864
    @tamilanveeran4864 2 ปีที่แล้ว +1

    Today subscribed your channel and really amazing explanation , I would recommend this video to my friends , thanks toufiq

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Awesome buddy, glad you liked it

  • @sheebaparveen3630
    @sheebaparveen3630 3 ปีที่แล้ว +3

    You are such an inspiration and my role model . the way you are helping everyone understand clearly what they want is just amazing. Your efforts are seen and appreciated as well. Seriously so so so proud ❤️

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Cheeb for the support always :)
      Happy to receive your feedback 😍

    • @fudgiplantaud2108
      @fudgiplantaud2108 ปีที่แล้ว

      @@techTFQ how did you find the script to run on the database

  • @test-hj9lx
    @test-hj9lx 2 ปีที่แล้ว +1

    Very nice practicing videos

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you 🙏🏼

  • @amanahmed6057
    @amanahmed6057 2 ปีที่แล้ว +1

    Sir plz make a full-fledge course of 5-6 hours just like freecodecamp videos on SQL queries
    which covers
    from basic beginners to Advance
    Love from 21 yrs old boy
    congrats in Advance for 100k subs

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Haha thanks Aman ☺️☺️
      100k is far away but thanks for the wishes 🤩
      As for one long video, never thought about it but I’ll start considering it now

  • @shivsharma9153
    @shivsharma9153 3 ปีที่แล้ว +1

    thats what i call quality content

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thanks Shiv 🙏🏼

  • @BengaluruGuy08
    @BengaluruGuy08 3 ปีที่แล้ว +1

    Thanks for such a great videos....

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome Dhananjai :)
      glad this helped..

  • @shafi123
    @shafi123 3 ปีที่แล้ว +1

    Thank you so much Thoufiq. I learnt a lot from your channel

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome Shaik 🙏🏼
      Glad you liked it..

  • @karennguyen7083
    @karennguyen7083 2 ปีที่แล้ว +1

    I learned a lot from your SQL videos, please upload more videos about SQL and Python in the future. Thank you so much.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you, will do!

  • @abdulsamadibrahim4929
    @abdulsamadibrahim4929 3 ปีที่แล้ว +4

    Thank you so much TFQ! This goes a long way for me! Always learning new strategies to tackle SQL queries.👍🏻

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Ibrahim 🙏

  • @theaj199021
    @theaj199021 2 ปีที่แล้ว +1

    Great content !!!!

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you Amit

  • @fathimafarahna2633
    @fathimafarahna2633 3 ปีที่แล้ว +4

    Proud of you mate...God bless all your efforts and time to give out authentic and precise content👌🏻👌🏻👌🏻🙏

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you 😘

    • @murchhanabanerjee26
      @murchhanabanerjee26 10 หลายเดือนก่อน

      @ Taufiq sir where is your vlog link ? Can't find it

  • @amitshrestha1456
    @amitshrestha1456 3 ปีที่แล้ว +1

    Thank you so much. It's entertaining to watch and learn. This is the training video I've been looking for.
    I'm currently working with Oracle SQL Developer and can only insert partial data. It would be more fun if I could insert the entire data set.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome Amit 🙏🏼
      I am glad you liked it..
      Do you get any error when importing all the data ?

    • @amitshrestha1456
      @amitshrestha1456 3 ปีที่แล้ว +1

      ​@@techTFQ Thank you for responding. I fixed it. I accidentally checked the limit box, which is why only partial data were inserted. Importing a dataset was a lot easier than I expected on SQL developers. There's no need to write the entire Create statement. Thank you for the video once more. Continue making videos and motivating us. Happy New Year!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Great to hear Amit 👌
      Thank you and happy new year to you too 🎊🎉

  • @honestreview6900
    @honestreview6900 3 ปีที่แล้ว +1

    You are Great Dear

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you 🙏🏼
      Glad you like the content 🙂

  • @mbhazimangoveni3068
    @mbhazimangoveni3068 ปีที่แล้ว

    Man! I love your work

  • @alex45688
    @alex45688 2 ปีที่แล้ว

    God bless you brother, really loved your content so clear to the point, I am beginner concepts are getting clear , if you add more videos will learn and to become mastery in it

  • @amolberad4875
    @amolberad4875 2 ปีที่แล้ว +1

    Great and Thanks!!! Make more video like this for sql practice.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Glad you liked it and sure will do

  • @kanelanecaiphus5951
    @kanelanecaiphus5951 ปีที่แล้ว

    Earned my subscription 😎

  • @spbspb2413
    @spbspb2413 2 ปีที่แล้ว

    It indeed became quite complex by the end, but also very simple at the same time thanks to your reasoning

  • @karthickraja1026
    @karthickraja1026 2 ปีที่แล้ว

    Trust me guys, this series have worth more than 'n'thousand price for those who want master in sql.
    -Thankyou so much for your effort @techTFQ💯

  • @gianglearning3509
    @gianglearning3509 2 ปีที่แล้ว +1

    Thanks. Hope you can release more videos like this in the future ^^

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      I plan to Giang

  • @Motivation_Station_Neo
    @Motivation_Station_Neo 2 ปีที่แล้ว +1

    great explanation

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you 🙏🏼

  • @NirdeshM
    @NirdeshM 3 ปีที่แล้ว +1

    thanks alot, very well explained

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Glad it was helpful!

  • @pydjango9812
    @pydjango9812 3 ปีที่แล้ว +1

    Great video sir

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you 🙏🏼

  • @esperatbamgbose
    @esperatbamgbose ปีที่แล้ว

    Thank you ,for this amazing tutorial

    • @techTFQ
      @techTFQ  ปีที่แล้ว

      Welcome:)

  • @mdnazmulahasanmirdha8142
    @mdnazmulahasanmirdha8142 7 หลายเดือนก่อน

    we need more video sir love from 🇲🇾

  • @moulyanerella
    @moulyanerella 10 หลายเดือนก่อน

    I want to solve some queries in SQL but I don't find anywhere correctly.Thanks for the video by letting this know.

  • @seifedd8841
    @seifedd8841 ปีที่แล้ว

    Your superstar man ! thank you

  • @technicalraman8848
    @technicalraman8848 ปีที่แล้ว

    Sir Salute. Plz plz make case study on sql by taking different datasets and also do data cleaning using sql and use advanced sq; queries. Plz sir

  • @analystgabriel
    @analystgabriel 2 ปีที่แล้ว +1

    Great video

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      thank you Gabriel :)

  • @MD.ANISURRAHMAN-m9k
    @MD.ANISURRAHMAN-m9k ปีที่แล้ว

    subscribed to your channel, please give us more real-world SQL projects

  • @alicenmwangi8381
    @alicenmwangi8381 9 หลายเดือนก่อน

    good stuff! Thanks

  • @realmusic9624
    @realmusic9624 3 ปีที่แล้ว +1

    Your explanation is awasome AND plz make video on Root cause ANALYSIS

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Mushtak 🙏🏼

  • @apamwamba
    @apamwamba 7 หลายเดือนก่อน +1

    Looks like 51 unique olympics games are in the database but 52 olympic games by location are listed because the 1956 were held in two cities.The 1956 Summer Olympics, officially known as the Games of the XVI Olympiad, were an international multi-sport event held in Melbourne, Victoria, Australia, from 22 November to 8 December 1956, with the exception of the equestrian events, which were held in Stockholm, Sweden, in June 1956.

    • @apamwamba
      @apamwamba 7 หลายเดือนก่อน

      So you really need to undetstand the data as rightly advised!!

  • @mrrk6960
    @mrrk6960 11 หลายเดือนก่อน

    Hello sir, I am your big fan, and your videos helps me alot, For that Jazakallahu Khaira,
    Sir in your blog there's a slight problem, the expected output you showed is wrong somewhere I think, some of that I noticed and you can check the 18th problems expected output.
    Thankyou sir

  • @preyashthakur71
    @preyashthakur71 2 ปีที่แล้ว +1

    Hello sir, I have learned sql recently but didn't how to apply this skill and practice of the project , but your videos helped me to understand more about SQL and about the work of data analyst. I have a question ,can we show this project in LinkedIn ? if yes then how?

  • @indiafirst984
    @indiafirst984 2 ปีที่แล้ว +1

    Thanks bhai..

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Your welcome bro

  • @ATTI0822
    @ATTI0822 3 ปีที่แล้ว +5

    Amazing video! I'm a frontend guy, watching your videos help me widen my skills in an excellent way. Thanks! I have a question regarding the performance. I don't know too much about the performance of the partition by statement. In the last task, the partition by was used several times in the concat fns (5-6 times). What do you think regarding the performance in a production ready environment? Would it scale well by the time if total number of records grow?

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +2

      Hi, thank you 🙏🏼
      Glad you find these videos useful..
      As for performance, window functions are pretty good even if we use partition by.. they should not cause any performance bottlenecks but then it also depends on how you write your sql query.
      As for my query in this video, we had around 270k+ records and still the queries with multiple partition by hardly took a few milliseconds to run..
      Even with much more data I believe this won’t cause any performance issues but again it all depends on how you write your sql queries and how you create indexes on your tables and few other factors like table statistics etc.

    • @ATTI0822
      @ATTI0822 3 ปีที่แล้ว +1

      @@techTFQ thanks for the detailed answer 👍

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Your welcome bro 🙏🏼

  • @appleguru2827
    @appleguru2827 2 ปีที่แล้ว +1

    Good

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Thank you 🙏🏼

  • @rishigupta2342
    @rishigupta2342 3 ปีที่แล้ว +3

    Thanks!!! Make more video like this for sql practice.Also could you make a EDA video for python? You explain things very nicely.

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you Rishi 🙏🏼
      Yeah for EDA , I will plan to do it..

  • @djangoworldwide7925
    @djangoworldwide7925 ปีที่แล้ว

    25:00 instead of using this weird method, use R and use the slice_max function. slice_max(on_your_col, n = 5)

  • @reshmanbanu3711
    @reshmanbanu3711 3 ปีที่แล้ว +2

    Thank you ☺️

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome 🙏🏼

  • @ririraman7
    @ririraman7 2 ปีที่แล้ว +1

    Thank you brother.

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      Your welcome buddy

  • @anirvansen5024
    @anirvansen5024 2 ปีที่แล้ว

    Thank you so much for these question sets , I have just completed these questions sets , What do you recommend which type of questions should we do now ?

  • @divyasathish8853
    @divyasathish8853 8 หลายเดือนก่อน

    Thank you sir

  • @subhabratanath2075
    @subhabratanath2075 3 ปีที่แล้ว +1

    Hi brother your tutorials are the best.. can you please make a course alongwith problems so we can learn in-depth?

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Thank you Subhabrata 🙏 and I will make a complete SQL tutorial in a couple of months time.

  • @mahmoudsadiek9691
    @mahmoudsadiek9691 ปีที่แล้ว

    1st query
    select count(distinct games) as co , sport
    from events
    where events.Season = 'summer'
    group by sport
    order by co

    • @mahmoudsadiek9691
      @mahmoudsadiek9691 ปีที่แล้ว

      2nd query
      select top 5 count(medal) as "count medal" , name
      from events
      where events.medal ='gold'
      group by name
      order by "count medal" desc

  • @ELB_MohdShajar
    @ELB_MohdShajar ปีที่แล้ว

    Q6 query:
    select Sport, count(distinct(Games)) as count from athletes
    where season = 'summer'
    group by Sport
    having count= (select count(distinct(Games)) as count from athletes
    where season = 'summer')

  • @ohme_ohmaya_
    @ohme_ohmaya_ 3 ปีที่แล้ว +2

    Hi I've been watching your videos for a while and i love them. They're very helpful! But I wanted to let you know that I think there may be somehing wrong with your crosstab function (or maybe it's not reading the data correctly). For example, your response to question 18 shows that Paraguay has 17 bronze medals. They actually have 17 silver medals. I think the function my be classifying data into the wrong columns. I found that simply pivoting the medal data from rows to columns in MySQL did the trick! Just wanted to let you know. Have a great day!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Hi Maya ,
      Thank you for liking my contents 🙏🏼
      And thanks for highlighting this difference.. I am actually surprised,, I had tested it for a few countries data.. let me check this out tomorrow and correct it if needed..
      Thanks again 🙏🏼

    • @ohme_ohmaya_
      @ohme_ohmaya_ 3 ปีที่แล้ว +2

      @@techTFQ no problem!! You’ve helped me so much in developing my SQL skills. I really love and appreciate your videos! If you could do more of these types of videos where you display advanced SQL techniques using data on kaggle, that would be awesome. Thanks again and have a great day!

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Am glad to hear this Maya..
      Yes I plan to cover more such videos in the near future..
      Have a good day to you too..🙂🙏🏼

  • @ShubhashreeMunot
    @ShubhashreeMunot ปีที่แล้ว

    Hii Taufiq, Big fan, learner and admirer of your work here!! I'm one of the most benefitted person from your videos.
    I just wanted to inform, in query 12, as you have taken 'group by name and team' and because data is not so clean ...hence
    it has missed the name of athlete 'Birgit Fischer-Schmidt' from Germany who is among top 5 athletes by total number of medels won. her team is shown as 'Germay' as some places and 'East Germany ' at some places. you could have get even accurate results by grouping on id and name.

  • @Shivani-yk7tw
    @Shivani-yk7tw 9 หลายเดือนก่อน

    qus -14
    WITH CTE AS
    ( select n.region as countries,a.medal,count(*) as total from athlete a
    join noc_regions n
    on n.NOC=a.NOC
    where a.medal 'NA'
    group by n.region,a.medal )
    SELECT countries ,
    sum(case when medal='gold' then total end) as gold ,
    sum(case when medal='silver' then total end) as silver ,
    sum(case when medal='bronze ' then total end) as bronze
    from cte
    group by countries
    order by gold desc ,silver desc ,bronze desc

  • @dogancanuysal5994
    @dogancanuysal5994 ปีที่แล้ว

    When I import our table data, I was an encounter problems which has ERROR: invalid input syntax for type integer: it shows me this error;
    "1;A Dijiang;M;24;180;80;China;CHN;1992 Summer;1992;Summer;Barcelona;Basketball;Basketball Men's Basketball;NA"
    CONTEXT: COPY olympics_history, line 2, column id: "1;A Dijiang;M;24;180;80;China;CHN;1992 Summer;1992;Summer;Barcelona;Basketball;Basketball Men's Bask..."
    at the beginning part 07:48 Could you help me please?

  • @suchitaachari6615
    @suchitaachari6615 3 ปีที่แล้ว +2

    Thank you so much for this. I just have 1 doubt. In the question number 3, Can't we just use below query directly instead of with clause? Please do clarify my doubt. Select game,count(n.region) from history h
    join noc n on h.noc=n.noc
    group by game

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      You cannot because the output is wrong.. because history table has data for each athlete so there would be multiple athletes from each country corresponding to each olympic games so the counts would be way to more..
      For example, in 1896 games, 12 countries participated but from your query you would get 380 (which is the total athletes and not country)

    • @suchitaachari6615
      @suchitaachari6615 3 ปีที่แล้ว +1

      @@techTFQ Ahh Okay. Got it. Thank you 👏

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว

      Your welcome 🙏🏼

  • @abinsharaf8305
    @abinsharaf8305 3 ปีที่แล้ว

    19:45 i dont understand why this code isnt working on my system, im using MS SQL, using azure Data studio, im getting this error
    Msg 8120, Level 16, State 1, Line 8
    Column 'T2.Sport' is invalid in the select list because it is not contained in either an aggregate function or the GROUP BY clause.

  • @minalgupta7456
    @minalgupta7456 2 ปีที่แล้ว +1

    pls upload more videos related to sql

    • @techTFQ
      @techTFQ  2 ปีที่แล้ว

      noted, will do

  • @zeeshanahmed2594
    @zeeshanahmed2594 ปีที่แล้ว

    10:59 when I was importing the athlete_event table either the connection has been lost or import process is finished without importing a single row.
    (I can import all 230 rows of noc_regions table.)
    Sir how can I resolve this problem?

  • @jonathanbuenyen4679
    @jonathanbuenyen4679 2 ปีที่แล้ว +1

    Thank you sir.
    How do I load this same datasets on mysql?
    Could you help ?

  • @Kia_jamal
    @Kia_jamal 8 หลายเดือนก่อน

    Well sir,..🎉Why dont you continue this type of content...?

  • @BhanutejaKunduru
    @BhanutejaKunduru ปีที่แล้ว

    alternate way to solve query 14 ,
    select noc, count(
    case
    when medal="gold" then 1
    else null
    end ) as gold,
    count(
    case
    when medal="silver" then 1
    else null
    end ) as silver,
    count(
    case
    when medal="bronze" then 1
    else null
    end ) as bronze
    from olympics_history where medal'na' group by noc order by gold desc,silver desc,bronze desc;
    please let me know if there is any mistake.

  • @TheDisciplinedPoser
    @TheDisciplinedPoser 3 ปีที่แล้ว +1

    Hello, I'm a newly subscriber and I have been looking for channel like this for quite sometime. Thank you.
    For Query 2, I can just use limit 5 if ranking is not needed?
    select name, team, count(medal) as total_medals
    from olympics_history
    where medal = 'Gold'
    group by 1, 2
    order by 3 desc
    limit 5

    • @techTFQ
      @techTFQ  3 ปีที่แล้ว +1

      Thank you for liking my contents 🙏🏼
      Limit 5 will just fetch the first 5 records but if you look at the data there can be multiple athletes who won 9 gold medals or 8 gold medals so you need to fetch all of them..
      That is why ranking is required

    • @TheDisciplinedPoser
      @TheDisciplinedPoser 3 ปีที่แล้ว +1

      @@techTFQ looking forward to seeing your solution to other queries