Databricks SQL and Migration from T-SQL

Migrate T-SQL workloads to Databricks SQL — map syntax differences, rewrite scripts for the lakehouse, and tune queries with warehouses, Photon, and Delta performance patterns.

databricks-sql-and-migration-from-t-sql

Advanced

Data Engineering

2 Days

Data Engineering

data-engineering

Online
On-site
Hybrid

Databricks SQL and Migration from T-SQL

Migrate T-SQL workloads to Databricks SQL — map syntax differences, rewrite scripts for the lakehouse, and tune queries with warehouses, Photon, and Delta performance patterns.

Duration:
2 Days
Rating:
4.8/5.0
Level:
Advanced
1500+ users onboarded

Who will Benefit from this Training?

Training Objectives

Build a high-performing, job-ready tech team.

Personalise your team’s upskilling roadmap and design a befitting, hands-on training program with Uptut

Key training modules

Comprehensive, hands-on modules designed to take you from basics to advanced concepts
Download Curriculum
  • Databricks SQL Workspace and Warehouses
    1. SQL editor, SQL warehouses, query history, and dashboards in the Databricks SQL workspace
    2. Warehouse types: Classic versus Pro versus Serverless — differences and when to use each
    3. How warehouse sizing and autoscaling affect interactive and scheduled SQL workloads
    4. Navigating query history to review past runs and share SQL with teammates
    5. Organising SQL assets for migration projects and recurring analytics
  • Connecting Clients to Databricks SQL
    1. Connection essentials: server hostname, HTTP path, and authentication options
    2. Personal access tokens versus other auth patterns for SQL clients
    3. JDBC and ODBC connectivity for desktop tools and applications
    4. Partner Connect and common BI tool patterns for Databricks SQL
    5. Checklist for secure, least-privilege access from migration source systems
  • Mapping T-SQL Syntax to Databricks SQL
    1. Side-by-side mental model: what stays familiar and what must change
    2. Row limiting: TOP versus LIMIT and ORDER BY pairing rules
    3. Case sensitivity for identifiers versus string comparisons
    4. Common migration gotchas that break scripts on first run
    5. Building a personal T-SQL to Databricks SQL cheat sheet during the course
  • Temporary Objects, Identity Columns, and Data Types
    1. Temporary tables: CREATE #temp versus CREATE OR REPLACE TEMP VIEW and session scoping
    2. IDENTITY columns versus GENERATED ALWAYS AS IDENTITY
    3. Data type mapping: NVARCHAR versus STRING, DATETIME2 versus TIMESTAMP, MONEY versus DECIMAL
    4. Choosing safe casts when rewriting typed T-SQL scripts
    5. Validating migrated DDL before rewriting dependent queries
  • Strings, Dates, Collation, and NULL Semantics
    1. Date and time functions: GETDATE() versus CURRENT_TIMESTAMP() and DATEADD equivalents
    2. String functions: LEN() versus LENGTH(), CHARINDEX() versus LOCATE(), ISNULL() versus IFNULL()/COALESCE()
    3. UTF8_LCASE collation for case-insensitive matching — syntax, use cases, and migration implications
    4. NULL comparison behaviour differences that change filter results
    5. Practical rewrite patterns for reporting queries that rely on T-SQL null and string defaults
  • Migrating CTEs, Subqueries, and Window Functions
    1. CTE and subquery compatibility notes when moving from T-SQL
    2. Window function syntax that ports cleanly versus patterns that need adjustment
    3. Preserving business logic while simplifying nested SQL for Databricks
    4. Testing migrated analytical queries for row-level parity
    5. Hands-on: Migrate a set of T-SQL scripts to Databricks SQL with guided corrections and testing
  • Query Execution, Photon, and the Query Profile
    1. How Databricks SQL executes queries: warehouse compute, Photon, and query compilation
    2. Reading the query profile: stages, tasks, spill, and bottleneck identification
    3. Linking profile symptoms to SQL and table-layout fixes
    4. Using query history metrics to prioritise optimisation work
    5. Baseline a slow query before and after each tuning change
  • Writing Efficient SQL on Delta Lake
    1. Avoid SELECT *: project only required columns to reduce scan width
    2. Predicate pushdown and filters that enable Delta file skipping
    3. Partition pruning: writing predicates that reduce data scanned
    4. Prefer built-in functions over UDFs for Photon compatibility and speed
    5. Use MERGE INTO carefully; know when a full overwrite is more efficient
    6. Avoid unnecessary DISTINCT and ORDER BY on large sets without LIMIT
  • Table Layout: Partitioning, Z-Order, OPTIMIZE, and VACUUM
    1. Partitioning strategy: column choice, cardinality, and anti-patterns
    2. Z-Ordering: choosing columns and running ZORDER BY to co-locate related data
    3. OPTIMIZE for the small-file problem — when to run and how to schedule it
    4. VACUUM: safe retention, time travel trade-offs, and scheduling
    5. Liquid clustering versus partitioning and Z-Ordering, plus a practical migration path
    6. Result cache and disk cache behaviour in Databricks SQL
  • Capstone: Migrate and Optimise a T-SQL Workload
    1. Rewrite a representative T-SQL script set to run correctly in Databricks SQL
    2. Validate functional parity for filters, joins, and aggregations
    3. Profile slow queries and apply layout or SQL fixes (Z-Order, OPTIMIZE, predicates)
    4. Document remaining risks: collation, types, and warehouse sizing
    5. Hands-on: Deliver migrated, profiled SQL ready for a Databricks lakehouse environment

Hands-on Experience with Tools

Training Delivery Format

Flexible, comprehensive training designed to fit your schedule and learning preferences
Opt-in Certifications
AWS, Scrum.org, DASA & more
100% Live
on-site/online training
Hands-on
Labs and capstone projects
Lifetime Access
to training material and sessions

How Does Personalised Training Work?

Skill-Gap Assessment

Analysing skill gap and assessing business requirements to craft a unique program

1

Personalisation

Customising curriculum and projects to prepare your team for challenges within your industry

2

Implementation

Supplementing training with consulting support to ensure implementation in real projects

3

Why this course

  • SQL on the lakehouse: Work natively in Databricks SQL warehouses, the SQL editor, and query history.
  • Confident T-SQL migration: Translate temporary tables, functions, types, and collation behaviour without guesswork.
  • Performance with Photon: Read query profiles and write SQL that leverages Delta file skipping and warehouse compute.
  • Production-ready tuning: Apply partitioning, Z-Ordering, OPTIMIZE, liquid clustering, and caching patterns.

Training objectives

  • Write and execute SQL queries natively in the Databricks SQL environment
  • Map key syntax differences between T-SQL and Databricks SQL with practical examples
  • Handle migration-specific challenges: temporary tables, case sensitivity, string collation, and date functions
  • Rewrite existing T-SQL scripts to run correctly and efficiently in Databricks SQL
  • Connect clients and BI tools to Databricks SQL using HTTP path, tokens, and JDBC/ODBC
  • Read and interpret query plans and the Databricks SQL query profile
  • Apply SQL optimisation techniques: partitioning, Z-Ordering, OPTIMIZE, liquid clustering, and caching
  • Apply best practices for writing performant SQL in a lakehouse environment

Who will benefit

  • Data Engineers
  • Data Analysts
  • Analytics Engineers
  • BI Professionals
  • Cloud Engineers
  • Data Platform Teams

Lead the Digital Landscape with Cutting-Edge Tech and In-House " Techsperts "

Discover the power of digital transformation with train-to-deliver programs from Uptut's experts. Backed by 70,000+ professionals across the world's leading tech innovators.

Frequently Asked Questions

1. What are the pre-requisites for this training?
Faq PlusFaq Minus

The training does not require you to have prior skills or experience. The curriculum covers basics and progresses towards advanced topics.

2. Will my team get any practical experience with this training?
Faq PlusFaq Minus

With our focus on experiential learning, we have made the training as hands-on as possible with assignments, quizzes and capstone projects, and a lab where trainees will learn by doing tasks live.

3. What is your mode of delivery - online or on-site?
Faq PlusFaq Minus

We conduct both online and on-site training sessions. You can choose any according to the convenience of your team.

4. Will trainees get certified?
Faq PlusFaq Minus

Yes, all trainees will get certificates issued by Uptut under the guidance of industry experts.

5. What do we do if we need further support after the training?
Faq PlusFaq Minus

We have an incredible team of mentors that are available for consultations in case your team needs further assistance. Our experienced team of mentors is ready to guide your team and resolve their queries to utilize the training in the best possible way. Just book a consultation to get support.

Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.