
This course includes our updated coding exercises so you can practice your skills as you learn.
See a demo
Learn to create SQL select statements using select, from, where, group by, having, and order by clauses, save results with views and procedures, and export to Excel.
Learn how to navigate the Udemy video player, adjust playback speed and volume, access course content and resources, and use notes, Q&A, announcements, ratings, and certificates.
Open SQL Server Management Studio and create a new database named essentials. Open a query window, switch to essentials, and run a T-SQL query to confirm success.
Discover how the select clause prints results, aliases columns with as, and accepts spaces with brackets, while noting Oracle differences and optional semicolons.
Learn to use Udemy in-course labs for SQL practice, navigate the integrated video and practice environment, complete tasks with schema-qualified queries ending in semicolons, and view results.
Master the from clause by sourcing data from tables, aliasing fields with as, and joining sis.objects and sis.columns using on conditions, including inner and left or right joins.
Learn to filter data with the where clause in SQL Server, using equals, not equals, in, between, and like patterns, including string literals and date formats.
Discover how the group by clause summarizes data using aggregate functions (count, sum, min, max), include non-aggregated columns in group by, and use distinct as an alternative.
Learn how the having clause filters grouped results by applying conditions after a group by, distinguishing it from where, and see a practical example with count(id) >= 10.
Explore how the order by clause sorts results after the select. Use aliases, ascending and descending order, and multiple fields to refine the final output.
Learn to create a view from a select statement, name and save it, refresh object explorer and IntelliSense, and run or modify the view with where and order by.
Create a procedure to run a select statement, modify it with parameters, and execute it with exec, understanding how procedures differ from views and how to alter and run them.
Import data from SQL Server into Excel by establishing a live connection via external data from SQL Server, selecting the database and a view, and enabling automatic refresh.
Master the six principal clauses of the select statement—select, from, where, group by, having, and order by—to read, filter, join tables, and sort data.
Do you want to learn SQL Server quickly?
Please note: This course is not affiliated with, endorsed by, or sponsored by Microsoft.
Reviews
Melisa says: Explanations are very clear! I recommend this course.
Monde says: Its was nice the lecture made clear to the point examples and I could make sense of what he was explaining example was making sense about all the aggregate clauses such as SUM, MIN, COUNT and AVG and MAX he was too good I like him
Jay says: I learned SQL years ago, and I needed a refresher on the basic syntax. This course was perfect for that purpose!
In this course, we will look in an hour at the SELECT statement.
There are six constituent clauses in this statement:
SELECT - this is akin to the Print statement in other languages, and
FROM - this shows your data source,
WHERE - this filters down your data source,
GROUP BY - this enables the results to be summarised,
HAVING - this filters the summary, and
ORDER BY - this sorts your results.
We will then look at saving your code using both views and procedures.
Finally, we'll export your reports into Excel, both statistically (copy and paste) and dynamically (so that you always have the latest reports).
In just an hour, you'll be able to create your own SELECT statements, so you can use them in SQL Server (SSMS, SSRS and SSIS) and in Excel. This is all you need to start writing and using your own code. Quick and easily.
If you have not already got SQL Server installed on your machine, this course includes a link to a video which shows you how you can install for free SQL Server Developer edition, together with SQL Server Management Studio (SSMS). These can be installed on your laptop or desktop to use for learning purposes for as long as you need.
Knowledge of this will also help with the DP-300 and DP-600 exams.