
How to get the most from this course and apply what you learned , it is recommended you watch this lecture
A quick overview of how the resource links work
Sometimes the video player will get blurry due to adaptive streaming even though the course is recorded in 1080p HD, this lecture shows how to fix it permanently.
To code along in the course then you will need to download the free software from Microsoft. You can also download a Docker container for MAC.
Note: If you cannot install SQL 2019 then you can still use SQL 2014 and up.
Use the 2014 backup files offered in Section 8 and 22
What you will learn in this section and why it is important to understand these topics.
See why SQL Server is #1 with large (and medium) enterprises and what are the 6 key skills for Data Analysts and Business Intelligence Developers
Whether you are working in Business Intelligence (BI), Data Science, Database Administration, or Back-End development, you will have to extract information from a server storing large amounts of data and to do this you’ll need SQL !
Understand the components that make up the SQL Server technology rather than thinking of it a just a black box. Showcase your knowledge and impress at your interview.
How to navigate and use the SSMS features
How to organise your SQL files (Scripts) for easy reference and recall
When you installed SQL Server it created system databases, lets explore what each one is for.
What you will learn in this section and why it is important to understand these topics.
Discuss the structure of a relational database
Why is this so ? Why is it not a procedural language ? These questions are answered in this lecture.
The journey to retrieve data starts with the SELECT statement, let's explore what this is.
What you will learn in this section and why it is important to understand these topics.
Certain words (verbs) should not be used in certain places
CREATE,ALTER,DROP,TRUNCATE are DDL statements
INSERT,UPDATE,DELETE & SELECT are DML statements
BEGIN TRANSACTION,COMMIT,ROLLBACK are TCL statements
GRANT,DENY,REVOKE are DCL statements
What you will learn in this section and why it is important to understand these topics.
What is OLTP, DW and DM ? What about OLAP ?
A primer to working with Primary Keys and Foreign Keys in a database
What you will learn in this section and why it is important to understand these topics.
Create a database using DDL
A lab for you to practice with
Verify your work is correct
Add a table to your database using DDL
Now add a table to the database using DDL
Verify your work is correct
Lets get started with understanding the various data types and when to use them.
Explore the INSERT statement to add data to a table
You can add data to the table you previously created
Verify your work is correct
In this lecture you will learn to Update data and the WHERE clause is introduced
Update a data table and introduce WHERE to the DML
Verify your work is correct
Sometimes your database name needs to change as it evolves, how to do this with the DDL Alter Keyword. Impress with your knowledge at your next interview.
Try to rename the database yourself
Verify your work is correct
Add a new column to a table and introducing Identity field types
An exercise for you to add a new column
Verify your work is correct
Change an attribute of a column using DDL
Practice making a change to a table column
Verify your work is correct
What does Set Theory have to do with SQL anyway ? A lot actually ; so lets explore this is more detail
A deeper dive into the SET operators
What you will learn in this section and why it is important to understand these topics.
Backups are insurance protection for your hard work and data
Here we can duplicate a database easily (not using restore for this)
Here we see DDL and Object Explorer database deletion
Restore that database we deleted
Starting this section with an exercise to test your restore database knowledge, we'll use this database for subsequent sections so it is recommended that you proceed with the restore.
A step by step walk-through for you to check against
A quick summary of this database content. It is a large database with an excellent sample data set to work with.
What you will learn in this section and why it is important to understand these foundation topics.
Refresh with a basic Query first
Practice a basic select to display the gender name values from the gender table in Management Studio.
How to use the WHERE clause to declare what data you want
Extract engineer employee numbers from the employee position history by applying a select where filter to match the engineer position.
Verify your work is correct - lets explore lateral thinking in this scenario , a requirement for analysts at large
Using the AND operator in the WHERE condition and introducing Order By and a logical operator.
Practice using a select query with an and condition on the current personnel table to retrieve employees earning over 50,000 who are located in Beverly Hills.
Using the OR operator in the WHERE condition and introducing ORDER BY Ordinal and another logical operator.
Incorporating the AND make sure you get the precedence right or your results will look odd !
Check your skill with a slight variation to the question being asked! How will you respond to the exercise scenario , this tests lateral minded thinking?
Did you know you can replace the OR with IN & NOT IN operator ?
Validate that current personnel records have corresponding entries in the employees table using the Emp number as the key, via select in and not in.
Return rows that sit in a range that you specify
Query the HR data to return female employees hired between 2014-12-31 and 2016-12-31, including employee number, gender, first name, last name, and hire date, sorted by last name.
Build a base query selecting employees, profile the data, filter for female by gender, apply between on hire date between 2014-12-31 and 2016-12-31, then order by hire date.
How to handle NULL values in the query
Build a base SQL query to identify records with null sid_employee in the employee_location table, include sid_employee for validation, and verify the 114,612 row count to ensure data integrity.
Looking for patterns in the column value
Test you knowledge but there is a twist in this seemingly simple exercise , will you detect it ?
Build and run a basic employee query to select emp number, first name, last name, and gender. Filter for males and for names beginning with lv using the like operator.
Using comparison operators the return a Boolean data type
Test your knowledge and lateral thinking.
Did you deduce that we can use another method as well?
Removing duplicate rows from the rowset
Apply select distinct to retrieve unique first and last names from the employees table, and order results by first name and last name to fulfill the HR request.
Create a distinct list of first and last names from the employees table, ordered by first name and last name, removing duplicate rows with the distinct clause.
Using a column alias to rename an output column as well as using a table alias which is common to use in Joining tables
Extract cities and state provinces from the geography table, alias the state province as state, alias the output as dimGeo, and sort the list by country.
Build a query selecting city and state province name from geography, alias geography to dim geo, order by country region name, even if not in the select list, noting duplicates.
Limit the number of records returned from a query so that we do not impact performance when testing big queries
Test your query against the salary history table, measure execution time for a raw current salary select, then reduce the row set with top 50,000 and compare results.
The lecture demonstrates evaluating a salary history query's performance, showing around three seconds for nine hundred thousand rows and under a second for top 50,000, with mitigation and Q&A sharing.
What you will learn in this section and why it is important to understand these foundation topics.
How to build a CASE statement to bucket (Discretize) data, a common exercise in Data Analysis
Expand the previous salary status using a select case to classify salaries between 30,000 and 50,000 as junior and 50,001 to 99,999 as senior.
Apply the SQL case statement to assign paid jr. and paid senior statuses for salary ranges, verify results, and practice conditional logic in data analytics with Tableau.
Return a Year, Month, Day value from the selected date(s)
Convert dates to their integer parts and you'll be shown how to return text value from the date , there is a twist in this that often catches analysts out!
Use date part to break position from date into year and week. Then sort by year and week to list employees with emp number, position, and position from date.
Build a basic sql select from the employee position history, add emp number, position, and position from date, compute year and week, then order by year and week.
Finding the elapsed count between 2 dates
Explore how to use the datediff function to add a new field showing how long employees have been in their jobs, improving accuracy in HR data.
Calculating dates to define past and future dates
Filter the dataset for January through March using date part and between, then compute the previous pay date with date add by subtracting seven days.
Formatting your output is pretty easy
Use the format() function to format payroll amounts in UK pounds and dates in UK format, applying changes to next and previous pay dates, per the UK locale documentation.
Join 2 or more columns to form a concatenated string value to tell a story
Write a story line and recall a function shown briefly in an earlier lecture, this is a challenge to think outside of the box!
Please note, some of the resources in this course are located on Dropbox or GitHub, hence you will need to use the supplied URL to download files e.g. Software
Unlock Your Potential with Advanced SQL Data Analytics Skills!
In today's data-driven world, SQL is not just useful—it's essential.
Mastering SQL means you're capable of tapping into 90% of what's required for impactful data analysis.
But how do you present this data?
That's where our comprehensive SQL Data Analytics course comes in, covering everything from database design to data visualization with tools like Tableau.
Why Enrol?
Expert-led Curriculum: Learn from a top industry professional with real-world experience.
Hands-On Learning: Engage with extensive practice assignments and section quizzes that mirror real job scenarios.
Progressive Difficulty: Start with the basics and gradually advance to complex concepts.
Interactive Visualizations: Master creating compelling data visualizations to communicate insights effectively in Tableau.
Certification Ready: Equip yourself with the knowledge to ace interviews and secure that six-figure salary.
Whether you're starting from zero or looking to enhance your skills, this course offers a detailed path to becoming a proficient data analyst. My Udemy courses have already assisted over 130,000 students in achieving their learning goals.
Ready to Begin?
Explore the curriculum and see how this course stands out.
With a 30-day money-back guarantee, you have nothing to lose but all to gain in your professional journey.
Enroll now and start transforming data into decisions!
Looking forward to seeing you in the course.
Paul
Data Analyst and Visualisation Engineer