
Explore SQL for data analysis, learn to query databases and clean data, and apply an 80-20 approach focusing on 10% of topics.
Install SQL Server 2022 Express on Windows 11, set up SQL Server Management Studio, and restore AdventureWorks 2022 OLTP, then ensure Trust Server Certificate and automatic startup.
Install SQL Server 2019 Express, SQL Server Management Studio, and the Adventure Works sample database on Windows 10, then connect and verify the installation.
Install SQL Server Management Studio, connect to the database with Windows authentication, and write a hello world query to verify setup and begin the course.
Download and restore the Adventure Works 2019 sample database in SQL Server Express, creating a realistic data environment for practicing data analysis with SQL Server Management Studio.
Explore the basics of databases, the difference between a database server and databases, and how SQL Server Management Studio helps navigate tables and schemas in Adventure Works.
Learn to save and reopen your SQL queries in SQL Server Management Studio by using Save As, selecting the SQL file extension, and opening saved files, with Ctrl+S for quick saves.
Learn how sql interacts with relational databases by writing select statements to retrieve specific columns from a table, exploring sql server dialects and top row limits.
Alias columns to rename cryptic database names into readable labels for business users. Apply techniques using as, or new_name = old_name, and use brackets for spaces.
Explore including custom data in query outputs by adding a hard-coded column, aliasing values, and distinguishing text strings from numeric data in SQL Server queries.
Export data from SQL Server Management Studio to Excel or text files for business users. Copy with headers to Excel or save results as csv or tab-delimited text.
learn handy sql tips for testing and prototyping, such as using select star to view all columns, limiting columns for production, and running multiple queries in sql server management studio.
Apply criteria with the where clause to filter rows in select queries, using numeric and text criteria with single quotes and combining conditions like salary flag equals one.
Explore how to filter records using not equal to, handle null values with is null and is not null, and combine criteria with and/or.
Learn to filter data using multiple criteria with and, or, and in SQL Server. Build concise queries using where clauses to combine conditions and efficiently handle large data sets.
Master how to combine and and or in SQL queries with parentheses. This clarifies order of evaluation and shows salary flag equals one or job title equals senior tool designer.
Explore range-based where clauses to filter numerical values using greater than, less than, and between, including inclusive endpoints; apply to sales quota and total due examples, including open-ended ranges.
Learn to query text with patterns using wildcards in SQL Server, including the percent sign and bracket ranges, to flexibly match names and other fields with like and not like.
Sort query results with the order by clause to bring the largest totals to the top in descending order. Reference columns by alias or position and sort by multiple columns.
Extract unique values with select distinct for a single column or multiple columns. Use order by to reveal duplicates and confirm unique combinations.
Explore SQL text functions like left, right, len, and replace to derive fields such as area codes from phone numbers and empower flexible where criteria.
Learn how to safely concatenate first, middle, and last names using the concat with separator function in SQL Server, which gracefully handles null values and scales to many fields.
Learn time-saving SSMS tips, including autocomplete and tab completion, to quickly insert functions and derive columns like first name length, boosting daily coding efficiency.
Learn to wield nested text functions in SQL Server, using len, left, and right to derive usernames from emails and pad with leading zeros, and use replace to clean punctuation.
Learn date math in SQL to add or subtract time with dateadd and to measure elapsed days with datediff, using getdate for dynamic ranges like last seven days.
Explore core sql data types, including text, numeric, and date, and learn to cast between them with cast, covering implicit conversions and casting date time to date.
Learn to format data in SQL Server with the format function to render numbers as percentages, currency, and dates, using format codes and culture arguments; note it returns a string.
Use the isnull function to replace nulls with friendly fallbacks, such as 'no title' or zero in sales quotas, and prepare for advanced output with the case statement.
Master the mighty case statement in SQL Server to transform data, create derived fields, bucketize text and date values, and control logic with when, then, and else.
Explore stacking rows with union to combine orders from customer and vendor tables into a single dataset, and contrast with joining columns from different tables for integrated analysis.
Explore why data normalization in SQL reduces redundancy by splitting information into players and teams tables, using primary keys and foreign keys to establish one-to-many relationships in relational databases.
Discover how to join related tables in SQL Server by aliasing tables and using on to link business entity ids between sales and person tables.
Explore how to extend sql joins by adding multiple tables, linking on territory and city IDs, filtering with where clauses, and understanding inner versus outer joins in practical data analysis.
Learn how to combine inner and outer joins in a single query, choosing join types strategically, handling nulls, and applying criteria to left joins to preserve non-matches.
Explore entity relationship diagrams to visualize the structure of relational databases and the relationships between tables, including one-to-many joins and key guidance, with practical Adventure Works examples.
Format SQL code for readability by breaking lines, indenting blocks, and capitalizing keywords; use web-based formatters like poor sql to tailor style while weighing time costs.
Develop the ability to extract data from a relational database with surgical precision, apply sophisticated transformations for non-technical audiences, and build a foundation for artificial intelligence in tech.
Learn to use aggregate functions like count, sum, min, max, and avg. Compare count(*) and count(column), handle nulls, group by, and use number * 1.0 to avoid integer division.
Group by produces one row per unique value combination, enabling aggregate calculations like count and sum on fields such as job title and gender.
Apply the having clause after group by to filter aggregated groups, such as total sales by product, and distinguish where from having for correct SQL query ordering.
Discover how to use the string_agg function in SQL Server 2017+ to concatenate multiple subcategories into a single string per category, with a delimiter, using a join and group by.
Master precise prompt design to guide ai tools like ChatGPT and Claude in sql. Craft clear prompts that specify data, column names, constraints, and output structure for accurate results.
Apply few-shot prompting to teach with example input-output pairs and create a reusable task template. See how unpivoting in SQL Server transforms wide amount columns into rows for analysis.
Be bold and experimental with AI, mastering prompt engineering through iterative questioning, fresh conversations, and trying different assistants to improve responses for data analysis tasks.
Structure prompts with XML style tags to create clear, hierarchical delimiters that separate context, data, instructions, and output format for better AI responses.
Balance concise prompts with room for AI insight, starting with broad questions to analyze monthly sales data in sql server without overfitting your requests.
Explore the role reversal prompting strategy, where the AI asks one clarifying question at a time to craft a monthly revenue by product category SQL query in Adventureworks.
If you spend a lot of time extracting, transforming, or analyzing data from databases, - or you're aiming for one of the many highly paid career paths that rely heavily on this skill - then this course is for you.
Learning to query databases with SQL is a substantial part of highly paid careers such as Data Analyst and Business Intelligence Analyst, but also provides a strong foundation for even more exotic roles like that of a Data Scientist. Experienced Data Scientists will tell you that the majority of their time isn't spent tuning machine learning algorithms, but rather preparing and cleaning data for use by those algorithms - something SQL does exceptionally well.
In this course, I have tried to avoid simply regurgitating an encyclopedia of facts about SQL, an approach that is all too common in introductory books and courses on programming. Instead, I carefully curated certain concepts and techniques that I have found to provide the most "bang for your buck" over my decade of experience as a data professional.
This enabled me to condense a complete course on SQL into just 36 instructional videos, averaging less than 10 minutes in length. So if you can commit to a video a day, in just over one month you’ll have added an extremely valuable and lucrative skill to your arsenal (and just as importantly, your resume!).
And to make sure all that knowledge sticks, I’ve included exercises...LOTS of exercises. Unlike most courses, which only feature sporadic opportunities to practice what you’ve learned, this course has practice problems after almost every video - so you can reinforce concepts right away.
Take it from someone who has built their career almost entirely on self-taught technical skills: it’s worth the effort. Several recent surveys have shown that SQL is actually the MOST in-demand tech skill sought after by recruiters!
In short, learning SQL can change your life, if you put in the work Let me be your guide to this next step in your career - I think you’ll find the journey a lot less daunting, and maybe even a little more fun, than you would have ever expected.