SQL-Challenges - Improve your SQL Server Skills
  • Home
  • SQL Challenges
    • Level 200
    • Level 300
    • Level 400
  • Contact us
  • FAQ
Select Page
SQL Challenge #11 – inlined user defined functions

SQL Challenge #11 – inlined user defined functions

by Uwe Ricken | Mar 14, 2026 | Level 200, SQL Challenges

Problem Description / Requirement A developer has heard from the new feature “Scalar UDF Inlining” and he wanted to improve a stored procedure [dbo].[get_last_order_months].This stored procedure is called 10 to 100 times per hour by the marketing...
SQL Challenge #11 – inlined user defined functions

SQL Challenge #10 – when Database Settings impact performance

by Uwe Ricken | Nov 3, 2025 | Level 200, SQL Challenges

Problem Description / Requirement A customer is reporting a deterioration in the performance of all queries after the software vendor updated the database objects using a T-SQL script. After the vendor completed the updates, the customer discovered that the query row...
SQL Challenge #11 – inlined user defined functions

SQL Challenge #9 – When Estimates are wrong

by Uwe Ricken | Oct 22, 2025 | Level 200, SQL Challenges

Problem Description / Requirement This example comes from a software application that has strictly implemented its relational model. The challenge uses two tables linked by referential integrity. The [dbo].[marketsegments] table serves as a reference table for the...
SQL Challenge #3 – Case Sensitive Searches

SQL Challenge #3 – Case Sensitive Searches

by Uwe Ricken | Feb 2, 2025 | Level 200, SQL Challenges

Problem Description / Requirement The software manufacturer’s database uses the [SQL_Latin1_General_CP1_CI_AS] collation for the application. The development team wrote a custom function that can be used to find customers based on an address search. The...
SQL Challenge #11 – inlined user defined functions

SQL Challenge #1 – When the marketing department calls

by Uwe Ricken | Jan 20, 2025 | Level 200, SQL Challenges

Problem Description / Requirement The marketing department of db Berater GmbH is planning a private event for its 10 TOP customers. The marketing department provides the following guidelines for selecting customers: Only customers with at least 3 orders in the last...

SQL Challenges

  • SQL Challenge #11 – inlined user defined functions 2026-03-14
  • SQL Challenge #10 – when Database Settings impact performance 2025-11-03
  • SQL Challenge #9 – When Estimates are wrong 2025-10-22
  • SQL Challenge #8 – Overlapping Time Series 2025-07-07
  • SQL Challenge #7 – Dynamically added attributes 2025-04-07
  • Imprint
  • Data Protection
  • RSS

db Berater GmbH | | Büchenweg 4 | 64390 Erzhausen | Phone: +49 (0) 6150 5082955 | E-Mail: info@db-berater.de |    Umsetzung