1️⃣ Functions in #SQL (User Defined Functions – UDF).
They are persistent objects in the database that encapsulate logic and return a result.
They should not modify data in SQL Server (they cannot do INSERT, UPDATE, DELETE).
They are used within queries (SELECT, WHERE, FROM).