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
- Timestamps
- 0:00 Introduction
- 0:37 Why learn SQL?
- 1:49 What is SQL?
- 2:25 What is a database?
- 3:09 Relational database management systems
- 4:11 Install Microsoft SQL Server
- 6:51 Install SQL Server Management Studio
- 7:26 Connect to server
- 8:13 Object Explorer
- 9: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