Take any size of the Stack Overflow database and check out the WebsiteUrl column of the Users table:
Sometimes it’s null, sometimes it’s an empty string, sometimes it’s populated but the URL isn’t valid.
Let’s say that along the way, someone decided to ask ChatGPT to build a function to check for valid website URLs, and then used that code to add a new IsValidUrl column to the Users table (and yes, this is inspired by a real-life client example, hahaha):
CREATE OR ALTER FUNCTION dbo.IsValidUrl (@Url NVARCHAR(MAX)) RETURNS BIT AS BEGIN DECLARE @Result BIT = 0 — Regex pattern