
Discover how SQL and AI merge in DP-800: learn secure, optimized database design with advanced SQL and AI capabilities using embeddings and external models in Azure SQL.
Build a strong SQL foundation with AI integration for the DP-800 exam, covering design, security, optimization, and AI capabilities through hands-on labs.
Learn core sql basics in azure, including servers, databases, schemas, DDL, DML, DCL, and writing select statements. Compare OLAP and OLTP and explore AI integration and retrieval augmented generation.
Explore the differences between SQL and T-SQL, including flavors, Microsoft extensions, and Azure SQL, and learn when to use advanced features like stored procedures, common table expressions, and try-catch.
Deploy an Azure SQL server and an Azure SQL database within a resource group on portal.azure.com, configure authentication and networking, and prepare for labs using SQL Server Management Studio.
install sql server management studio 2022, connect to an azure sql server and the udemy bp800 sql database, and configure firewall and authentication to enable access.
Access the public GitHub repository dp800-sql-ai-developer for the labs, featuring markdown instructions and code snippets. Follow along with the videos and copy commands to apply the learnings.
Explore Azure SQL offerings from IaaS to PaaS, including Azure SQL Database and Managed Instance, with serverless and provisioned compute, vCore, and DTU options.
Learn to choose effective data types for SQL tables during ddl operations, considering numeric, string, datetime, binary, JSON, XML, and unique identifiers, with attention to precision, length, constraints, and performance.
Understand how the star schema model uses dimension and fact tables to enable scalable data analysis. See how primary and foreign keys link dimensions to facts to form relationships.
Apply practical labs as an ESG consultant to model carbon emissions in scope 1–3 using sql, build a structured ESG database, and practice data modeling, indexing, querying, and ai-assisted insights.
Create an esg schema and four tables (companies, emissionrecords, energyconsumption, sustainabilityreports) using ddl, establish primary and foreign keys, and populate with data via dml inserts.
Create and visualize a database diagram in SQL Server Management Studio to map primary and foreign keys across four tables—companies, emission records, energy consumption, and sustainability reports.
Gain hands-on experience with SQL select queries, filtering, grouping and aggregations on the ESG schema in SQL Server Management Studio, including update and delete operations.
Explore SQL joins, including inner, left, right, full, semi, anti, and cross joins, to combine data from tables, including fact and dimension tables in star schemas, to derive business insights.
Master SQL join operations in a hands-on lab that builds a carbon targets table, populates data, and executes inner, left, right, and full outer joins with aggregates.
Explore how SQL indexing speeds queries by row store versus column store data layouts and clustered versus non-clustered indexes for OLTP and OLAP workloads.
Explore how to create clustered and non-clustered indexes, and how the SQL engine uses them through index seek, index scan, and table scan to speed query processing.
In this hands-on lab, you build a table with 20,000 rows and compare clustered and non-clustered indexes in Azure SQL, observing index seek, execution plans, and performance.
Explore specialized table types in Azure SQL Database, including in-memory optimized, temporal, external, and graph tables, and learn decision criteria based on workload, data size, and read or write priorities.
Learn to implement temporal tables with history tracking and system-versioning in Azure SQL Database, then build graph tables with node and edge tables for the supplies to relationship.
Enforce data integrity by defining primary key, foreign key, not null, unique, check, and default constraints in Azure SQL databases, ensuring valid, traceable data across tables.
Explore data partitioning in Azure SQL Database to speed up filter queries on billions of records by using yearly partitions and aligned indexes for data skipping and easier maintenance.
Demonstrates implementing data partitioning in Azure SQL by creating a partition function and scheme on emission_date, populating partitions, and adding an aligned non-clustered index for faster lookups.
Learn how views in Azure SQL Database solve data duplication and complex transformations by offering non-materialized and materialized views, with runtime versus cached results and clear use cases.
Learn to implement basic views in SQL, including creating non-materialized views, joining tables, computing total emissions, and classifying emission levels with case statements.
The lab compares materialized versus non-materialized views in Azure SQL Database, showing cached pre-computed results with a clustering index, refresh logic, and execution plans.
Explore stored procedures as a standardized, pre-compiled, and parameterized SQL object that centralizes complex query logic, improves performance via cached execution plans, and supports flexible result sets.
Develop and run stored procedures in this Azure SQL lab, including get companies, get emissions by company and by date, and calculate totals with input and output parameters.
Explore scalar functions in Azure SQL, which standardize calculations by returning a single value, accept parameters, and integrate in a select statement, unlike stored procedures.
Create and test scalar functions in Azure SQL Database, including getEmissionLevel and calculate carbon tax, then use them in selects and filters to derive emission insights.
Explore table-valued functions in Azure SQL, learning inline and multi-statement TVF, their use in select statements, and how they return reusable, read-only result sets.
Perform a hands-on lab on implementing table-valued functions in Azure SQL, covering inline and multi-statement table-valued functions, cross-apply usage, and joining results with company data.
Explore how SQL triggers in Azure SQL Database respond to data and schema changes with DDL and DML triggers, enabling real-time auditing, logging, and enforced rules.
Learn to implement SQL triggers in Azure SQL, including DML and DDL triggers, by building an audit log table and recording insert and update history on emission records.
Explore common table expressions (CTEs) to break complex queries into readable, modular blocks within a single query, and compare non-recursive and recursive CTEs with table valued functions.
Practice implementing common table expressions in SQL, including non-recursive and recursive cte patterns, to calculate total emissions, rank companies by emissions, and filter high emitters.
Explore window functions in SQL, focusing on ranking, aggregation, and range. Learn how to apply row_number, rank, dense_rank, and ntile, and create running totals with sum, over partition, order by.
Explore window and aggregation functions in Azure SQL by calculating the running total of CO2 emissions and moving averages within each company, and ranking with rank, row_number, and dense_rank.
Master window functions such as lag, lead, first value, last value, percent rank, and cumulative distribution to compare rows, detect trends, and analyze data across partitions like product category.
Explore hands-on trend analysis with analytical window functions in sql: lag, lead, first_value, last_value, percent_rank, and the cumulative distribution function across company-scoped emission data.
Perform a hands-on lab to manipulate json data in Azure SQL using built-in functions, extracting esg rating and score, and parsing nested objects with openjson.
Practice matching patterns with regular expressions in Azure SQL Database using T-SQL to identify and repair corrupted email, phone, and tag data, and extract domains.
Explore string similarity concepts and fuzzy matching in Azure SQL, using Levenshtein similarity ratio and edit distance, plus jarrow-winkler distance, for enterprise data and rag-based chatbot use cases.
Apply fuzzy string matching in a hands-on T-SQL lab to find and standardize similar sounding company names using Levenshtein distance, similarity ratio, and Jaro-Winkler on ESG.companies.
Explore graph databases in SQL Server by building node and edge tables, populating a graph dataset, and writing traversal queries to identify suppliers, customers, and contract values.
Explore correlated subqueries in advanced T-SQL through hands-on labs, comparing rows by company emissions against averages, with inner joins, exists, top-n results, and 150 percent thresholds.
Explore try-catch in T-SQL to prevent partial updates by logging errors to ESG.errorlog and rolling back transactions on error for an ACID-compliant audit trail.
Learn to implement custom error handling in T-SQL on Azure SQL, using throw and raise error with formatted messages and a stored procedure to guard against negative emissions.
Explore GitHub Copilot licensing plans, set up Copilot in your GitHub account, and manage subscriptions and settings across IDE, CLI, and mobile, with security options for business and enterprise.
Set up GitHub Copilot in SQL Server Management Studio using your GitHub profile, enable AI assistance, and interact via chat to access Copilot features for Azure SQL databases and queries.
Explore configuring the MS SQL extension in VS Code to connect to an Azure SQL Server, and write queries using GitHub Copilot in notebooks.
Configure GitHub Copilot for SQL by creating instruction files in a VS Code repository, including co-pilot-instruction-files.md and prompts for index creation, to steer T-SQL queries with guardrails in a workflow.
Explore the three encryption layers in Azure SQL—transparent data encryption at rest, column-level encryption, and always encrypted, detailing the column encryption key, column master key, and Azure Key Vault.
Explore dynamic data masking and row-level security to protect PII like phone numbers and salaries, and compare table-level versus view-level masking for tailored access.
Implement dynamic data masking on a sensitive Azure SQL Database table, apply column masking for email, phone, credit rating, and revenue, and test unmasking for support and finance roles.
Learn to implement row-level security in Azure SQL Database using a predicate function and security policy to restrict data by company ID.
Explore how Data API Builder exposes Azure SQL database objects via REST, GraphQL, or MCP routes with a single configuration file, enabling secure, scalable APIs without heavy coding.
Set up the Data API Builder, initialize a project, and expose esg tables via REST and GraphQL APIs, including esg.company and esg.energyconsumption entities.
Learn to expose database entities via REST and GraphQL with the data API builder, and define many-to-one relationships between emission records and companies, then run and query a local server.
Trace the evolution from artificial intelligence to generative AI and large language models, powered by transformer architectures, probabilistic function, and foundational LLMs used in chat GPT, Copilot, and Google Gemini.
Learn the core generative ai jargons, including tokens, system and user prompts, and chat completions api, and compare unimodal and multimodal models for practical ai applications.
Explore the Microsoft Foundry ecosystem for building artificial intelligence agents and retrieval augmented generation chatbots with a model catalog, enterprise knowledge, and secure Azure sql integration.
Deploy a Microsoft Foundry resource in portal.azure.com, create a Foundry project in a single resource group in Sweden Central, then explore the model catalog, deployments, agents, and guardrails.
Deploy a GPD 4.1 chat completions model in Microsoft Foundry, test with a chat playground, and prepare to build an enterprise chatbot over Azure SQL data.
Explore GenAI deployment types in Microsoft Foundry—global standard, global provisioned, global batch, data zone and standard regional variants—and how data processing location and billing models influence use cases.
Register Foundry deployed models as external models in Azure SQL Database, enabling authenticated T-SQL calls via managed identity or API key, and retrieve vector embeddings.
Set up the ragschema and the esg text data table, including fields for company id, name, review text, sustainability report, and created at, with sample data.
Create an API key and managed identity credentials for LLM API calls, configure database scope credentials with a master key, grant endpoint access, and assign Cognitive Services OpenAI user role.
Learn to call a large language model API from SQL using a data-based scoped credential, build system and user prompts, and extract the assistant response from the JSON.
Learn to encapsulate LLM API calls in a standardized SQL stored procedure, including prompt payloads, system and user prompts, credentials, error handling, and returning responses for display.
Perform a lab to add sentiment analysis and summarization columns to an ESG text data table by calling a Foundry deployed LLM via API and populating results with stored procedures.
Explore vector embeddings and how they represent words and sentences as 1536-dimensional numerical vectors to capture meaning. Apply them in Azure SQL with foundry for enterprise chatbots.
Deploy the vector embedding engine TextEmbeddingAda002 from Microsoft Foundry to power course labs, configure global standard deployment with 250,000 tokens per minute, and access its API key and API endpoint.
This hands-on lab demonstrates registering an external model in azure sql for vector embeddings and using ai generate embeddings to create 1536-dimensional embeddings for review text and sustainability reports.
Explore embedding maintenance methods for azure sql database: table triggers, change tracking, change data capture, and azure function apps with sql trigger bindings to refresh vector embeddings.
SQL is no longer just about querying data — it’s becoming a powerful foundation for building AI-driven applications.
In this course, you’ll learn how to combine traditional SQL development with modern AI capabilities to build intelligent, production-ready solutions using Microsoft technologies. Whether you’re preparing for the DP-800: Microsoft Certified SQL AI Developer Associate exam or looking to upgrade your skillset, this course is designed to give you both depth and practical experience.
We start with core SQL concepts and quickly move into advanced topics that power real-world AI scenarios. You’ll learn how to work with JSON, graph queries, stored procedures, and advanced querying techniques to model complex data. From there, we introduce AI integration — including embeddings, external models, and Retrieval-Augmented Generation (RAG) — all implemented directly using SQL.
What makes this course unique is its hands-on, lab-driven approach. You won’t just learn theory — you’ll build solutions that simulate real enterprise use cases, including secure data handling using encryption, masking, and access control, along with performance tuning using indexing and query optimization.
By the end of this course, you will be able to design and implement AI-powered database solutions, understand how SQL fits into modern AI architectures, and confidently approach the DP-800 certification.
If you’re ready to move beyond traditional SQL and step into the future of SQL + AI, this course is for you.