Udemy
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn SQL Queries
Rating: 4.5 out of 5(1,054 ratings)
7,437 students

Learn SQL Queries

Learn about SQL queries quickly. Get up to speed with SELECT, FROM, WHERE, ORDER BY. BONUS: Stored Procedures!
Created byDave Merton
Last updated 12/2017
English
Danish [Auto],English [Auto],

What you'll learn

  • Learn how to INSERT, DELETE, UPDATE and QUERY from tables
  • Learn about many of the useful built in T-SQL functions (SUM, CNT, AVG...)
  • Learn about temp tables and table variables
  • Learn about the power of STORED PROCEDURES

Course content

7 sections • 67 lectures • 4h 24m total length
  • Course Description2:26

    Join this course to learn SQL Server queries from the ground up, covering select, from, where, order by, group by, and bonus modules on stored procedures and user defined functions.

  • * * SECTION DESCRIPTION * *2:03

    Explore the select statement across SQL dialects, including select star, distinct, count, max, average, and sum. Master concatenation, case statements, and common pitfalls, and prepare for a quiz.

  • SELECT *3:29

    Learn how to select from a table using select star to retrieve all fields in schema order, or name and reorder fields, and pick only the ones you need.

  • SELECT COUNT(*)3:05

    Count rows with select count(*) from a table and compare total rows to filtered results with a where clause, naming the count column with an alias.

  • SELECT DISTINCT3:53

    Learn how the distinct keyword returns unique records and how to use group by with count to report how many true or false values appear in a boolean field.

  • SELECT ISNULL()4:04

    Use SQL Server's isnull() to replace null values and influence sort order, then cast and concatenate text with numbers without nulls disrupting results.

  • SELECT SUM()8:02

    Discover how to use the sum function to total salaries, group results by department, and join employee and department data for meaningful payroll insights.

  • SELECT MAX()2:23

    Learn how to use the max aggregate function to find the highest salary in an employee table, and explore field aliasing and optional square bracket syntax in SQL queries.

  • SELECT MIN()1:13

    Learn how to use the min function to find the smallest salary from the employees table, including wrapping the field in square brackets to handle reserved names.

  • SELECT MAX() and MIN() Example1:44

    Explore min and max functions by querying an employee salary table to reveal lowest and highest salaries, and learn to name results with square brackets where as is optional.

  • SELECT AVG()1:37

    Explore the average function in sequel server by selecting salaries from the employee table, computing the average as an aggregate function, and naming the result with square brackets.

  • SELECT MAX(), MIN() and AVG() Example2:39

    Explore max, min, and avg aggregate functions on salaries in an employee table. Alias fields, apply the round function, and format money data to display min, avg, and max clearly.

  • Concatenation Example2:58

    Learn how to concatenate first and last names in SQL, using plus signs and spaces, alias the result as name, and cast numbers to text when combining fields.

  • SELECT CASE Example3:48

    Learn how to use the case statement in SQL to label six-figure salaries, select first name, last name, and salary, and populate a notes field with conditional notes.

  • SELECT CASE and Concatenation Example3:25

    Apply the select case statement and concatenating text in SQL to combine first and last names, and label salaries as six figures or jackpot when thresholds are met.

  • SECTION 1 - REVIEW QUIZ

Requirements

  • The student should have a basic understanding of databases.

Description

This is an in depth course about using and programming with SQL Server. It assumes that the student has at least a rudimentary understanding of database concepts and architecture and gets right into the meat of the subject.

This course will get you up to speed on executing queries. The final part of the course briefly touches on stored procedures and user defined functions.

Who this course is for:

  • Any technical person who wants to have an increased understanding of the real world uses of production database development.