SQL Tutorial for Beginners

1,994,752
0
Published 2022-03-22
In this step-by-step tutorial, learn how you can write your own SQL queries. You don't need any prior knowledge and we're going to use all free tools. By the end of this video, you'll know how to retrieve data from databases. At the end, I'll show you a neat trick to write some of the most complex queries with very little effort.

SQL stands for structured query language. It's a language that you can use to talk to your database. You can also use it to retrieve, filter, sort, combine, add, update, and delete data in a database. It's basically a language you can use to interact with the database. The great thing is that anyone can learn how to write SQL queries. You definitely don't need a degree in computer science. And once you know it, you'll have another superpower that you can use at work.

👋 Additional resources
- Download & install Microsoft SQL Server: www.microsoft.com/en-us/sql-server/sql-server-down…
- Download & install SQL Server Management Studio (SSMS): docs.microsoft.com/en-us/sql/ssms/download-sql-ser…
- Sample database to follow along: 1drv.ms/u/s!AmxrofZZlZ-whNsNYa3M9O0USq1WhQ?e=r06if…
- Sample data in Excel format including flat file and tables: 1drv.ms/x/s!AmxrofZZlZ-whNsGOcpx-aZS1RN2yA?e=My4Ot…
- SQL Functions: docs.microsoft.com/en-us/sql/t-sql/functions/funct…

⌚ Timestamps
00:00 Introduction
00:37 Why learn SQL?
01:49 What is SQL?
02:25 What is a database?
03:09 Relational database management systems
04:11 Install Microsoft SQL Server
06:51 Install SQL Server Management Studio
07:26 Connect to server
08:13 Object Explorer
09:26 Restore sample database
10:42 Tables
14:33 Primary keys
15:57 Database diagrams
17:57 Data types
18:30 Select
24:50 Filtering with where
32:02 Inner join & outer join
38:21 Order by
39:01 Functions including getdate, sum, count
41:02 Group by
41:20 Bonus: Query designer
44:09 Wrap up

📃 Watch related playlists
- Playlist with all my videos on SQL:    • SQL  

📩 NEWSLETTER
- Get the latest high-quality tutorial and tips and tricks videos emailed to your inbox each week: kevinstratvert.com/newsletter/

🔽 CONNECT WITH ME
- Official website: www.kevinstratvert.com/
- LinkedIn: www.linkedin.com/in/kevinstratvert/
- Discord: bit.ly/KevinStratvertDiscord
- Twitter: twitter.com/kevstrat
- Facebook: www.facebook.com/Kevin-Stratvert-101912218227818
- TikTok: www.tiktok.com/@kevinstratvert
- Instagram: www.instagram.com/kevinstratvert/

🎁 TOOLS AND DISCOUNTS
✅ 🎙️ Voicemod AI Voice Changer | 5% off | link.xsolla.com/KZBi89AY
✅ 🌐 Squarespace Websites | squarespace.syuh.net/XYaqYM
✅ 🔍 Grammarly | grammarly.go2cloud.org/SH3nL
✅ 🛍️ Shopify | shopify.pxf.io/XY9rPa
✅ 📋 Notion | affiliate.notion.so/rffva4tr71ax
✅ 🖼️ Figma | psxid.figma.com/lqjg97licpry
✅ 🤖 ElevenLabs Text-to-Speech | try.elevenlabs.io/taqepq60mptr

🎒 MY COURSES
- Go from Excel novice to data analysis ninja in just 2 hours: kevinstratvert.thinkific.com/

🙏 REQUEST VIDEOS
forms.gle/BDrTNUoxheEoMLGt5

🔔 SUBSCRIBE ON YOUTUBE
youtube.com/user/kevlers?sub_confirmation=1

🙌 SUPPORT THE CHANNEL
- Hit the THANKS button in any video!
- Amazon affiliate link: amzn.to/3kCP2yz

⚖ DISCLOSURE
Some links are affiliate links. Purchasing through these links gives me a small commission to support videos on this channel. The price to you is the same.

#stratvert #sql

All Comments (21)
  • @AniseedBalls
    Hi Kevin. I'm a retired software architect with lots of experience of SQL, and only watched the video to see what you were presenting to newbies. I wanted to let you know that it's an excellent introduction to something many might be hesitant about. Great job!
  • This is 2 of my university courses summarized in a 45 minute video. So impressive and so helpful! Thanks, Kevin
  • @chantelruss6063
    Kevin, please, please, please make more SQL content? I work in the database but there is so much more to learn. I just love your approach when it comes to learning new skills and your videos are so easy to follow. My goal is to become certified by the end of this year. Thank you so much for this!
  • @stormysurge9083
    16:08 If you're getting an error like I did, do the following: 1) Right click KCC and select properties 2) Select Files 3) On the row of "Owner:" select the "..." at the end 4) Browse -> check [sa] -> OK Now you should be good!
  • @anthonygikuri
    Kelvin, I never thought one day I'd ever think about SQL. I always knew it's for the IT guys!!! Everyone can learn it? I can only Believe this because I trust you!!! You present complex matters into a plan language. Thanks
  • @wildbouquet7941
    I’m a stay at home mom looking to learn some new skills and enter the work place. It’s been incredibly daunting and all the other SQL lessons I’ve taken skim over important information and don’t describe things clearly. This was SOOO helpful!!! Thank you so much!
  • @jeffmoden4332
    I'm an old, mostly self taught DBA/Database-Developer that started working with SQL Server in 1998. I'm also a former Navy Instructor that wrote and taught a 200 hour course on microprocessors and how to program them way back in 1977 and have been teaching a whole lot of different things, including a lot of things about SQL Server and T-SQL. With that, I'll also say that I'm not easily impressed. And, with that being said.... You probably hear this all the time but now I have to say it. This is an absolutely brilliant introduction to SQL and SSMS and the order of revelation is perfect. Having put together presentations on the subject, I also have a deep understanding of, even with the best of tools, how long it takes to put to craft, crop, and publish a video of such incredible content. Very, VERY well done, good Sir.
  • @mrericwonghk
    For those who are following along and could not open the database diagram: Right-click "KCC" in the Object Explorer, then select "Properties". Under "Select a page", select "Files". Enter "sa" in the owner field and click "OK". The problem should be solved! I made a typo in my comment a year ago, where "sa" was "as" due to autocorrect. However, that comment has since helped a lot of you with opening the diagram. YouTube wouldn't let me edit my comment cause it returned error. Kevin, if you see this feel free to re-pin this comment. Thanks!
  • @lionelblak
    You have a gift for making complex subjects look very simple. As a software specialist, I’m sure this video took quite a few hours to put together. You started with baby steps but by the end, there was some quite advanced material being covered and I learned a few things that I didn’t previously know. Something for everybody - thank-you!
  • @YammyBoh7
    Please do more SQL content!? Databases, everything. Something I'm trying to learn along with web development this year.
  • @blackgotham1176
    Out of all the tutorials available, this one is the most straightforward and user-friendly. Kevin, I appreciate you for generously sharing your expertise.
  • @udarexd4271
    To those who can not locate the KCC file when trying to add it in the Database. Copy paste or Move the File to the Backup folder which is located in Microsoft SQL server ---> MSSQL16.MSSQLSERVER ---> MSSQL. These files are located where you originally downloaded the whole software probably in Local disk C ---> Program Files. This will then automatically show the KCC file when you try to select it to add it in the Database like Kevin told in the video. Hope this helps.
  • I watched this 4 times already and I am going to watch at least 10 more to memorize all the queries listed in this video! Thanks so much Kevin for the awesome video and can't wait to learn more about SQL in your next videos!
  • Learning this for a job interview this week, thank you! It's a SQL heavy job, but I didn't put anthing SQL related on my resume and they still called me back so knowing the basics to mention in the interview will be a big help!
  • @cSchroederTV
    This explained the join process easier in 5 minutes than 2 full days of class in college. Nicely done.
  • @Stephen_A.
    OMG, from my work place I thought SQL looked too difficult so I abandoned trying to use it to find certain data. I had no idea that there was a query wizard that is actually easier to use than MS Access. This changes everything. THANK YOU KEVIN ! And yes, SQL training would be great.
  • @anti-fame
    This tutoral is straight to the point. Everything was explained perfectly - not too short which becomes confusing and not too long which becomes boring - just perfect! Thanks!
  • As a new student to SQL you've made things way too easy bro 😊 best training ❤
  • @sajikr3438
    Thanks for such a superb, easy to understand video. I'm new to SQL and never knew it was so beginner-friendly; your content was most helpful. Just 2 points I'd like to add for others who may be interested in checking this out too. 1. If you have trouble finding the KCC.bak file using Database restore, Goto SQL config manager and change the "Log On as" setting of the SQL Server to "Local System". 2. For some reason my Database Diagrams folder would not expand, couldn't figure out a fix, however the query design editor will show the tables & primary keys anyways. Thanks again!
  • @berrec2650
    Thanks Kevin, your attention to detail and delivery in all your videos is first class, very professional and as always so informative and easy to follow, your efforts make all our lives so much easier.