SQL Basics Tutorial For Beginners | Select + From Statements | 2/4

SQL Basics Tutorial For Beginners | Select + From Statements | 2/4

Introduction to Select and From Statements

In this video, Alex Freiburg introduces the select and from statements in SQL. He uses two tables, employee demographics table and employee salary table, to explain how these statements work.

Select Statement

  • The select statement is used to retrieve data from a database.
  • Using the select statement with "select * from" retrieves all columns and rows of data.
  • The "top" keyword can be used with the select statement to retrieve a specific number of rows.
  • The "distinct" keyword can be used with the select statement to retrieve unique values in a specific column.
  • The "count" function can be used with the select statement to count non-null values in a specific column.
  • The "as" keyword can be used with the count function to give a name to the derived column.

From Statement

  • The from statement specifies which table or tables are being queried.
  • Alex uses the employee salary table to demonstrate how max, min, and average functions work in SQL.

Changing Databases

  • When using multiple databases, it's important to specify which database you want to query in your from statement.

Overall, this video provides an introduction into using SQL's select and from statements. Alex explains how these statements work using examples that are easy for beginners to understand.

Sequel Basics

In this section, the speaker introduces the basics of SQL. The topics covered include the FROM statement, WHERE statement, GROUP BY statement and ORDER BY statement.

Introduction to SQL Basics

  • The speaker introduces the basics of SQL.
  • The speaker concludes by stating that they will cover more advanced concepts in future videos.
Video description

Take my Full MySQL Course Here: https://bit.ly/3tqOipr Learn how to use the Select and From Statement to choose what columns are returned and from what tables. In the next video we will go over the Where Statement to filter down your data. Create Table + Insert Into - https://www.youtube.com/watch?v=RSlqWnP-Dy8 Where Statement - https://www.youtube.com/watch?v=A9TOuDZTPDU Group By + Order By - https://www.youtube.com/watch?v=LXwfzIRD-Ds ____________________________________________ LINKS: SQL Server Management Studio: https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15 SQL Server: https://www.microsoft.com/en-us/sql-server/sql-server-downloads Github Scripts: https://github.com/AlexTheAnalyst/SQL-Code/blob/master/SQL%20Basics%20Create%20Table%20and%20Insert%20Into ____________________________________________ SUBSCRIBE! Do you want to become a Data Analyst? That's what this channel is all about! My goal is to help you learn everything you need in order to start your career or even switch your career into Data Analytics. Be sure to subscribe to not miss out on any content! ____________________________________________ AFFILIATE LINKS: Coursera Courses: Google Data Analyst Certification: https://coursera.pxf.io/5bBd62 Data Analysis with Python - https://coursera.pxf.io/BXY3Wy IBM Data Analysis Specialization - https://coursera.pxf.io/AoYOdR Tableau Data Visualization - https://coursera.pxf.io/MXYqaN Udemy Courses: Python for Data Analysis and Visualization- https://bit.ly/3hhX4LX Statistics for Data Science - https://bit.ly/37jqDbq SQL for Data Analysts (SSMS) - https://bit.ly/3fkqEij Tableau A-Z - http://bit.ly/385lYvN *Please note I may earn a small commission for any purchase through these links - Thanks for supporting the channel!* ____________________________________________ Websites: GitHub: https://github.com/AlexTheAnalyst ____________________________________________ *All opinions or statements in this video are my own and do not reflect the opinion of the company I work for or have ever worked for*