It is somewhat wrong that SQL databases will execute whatever crap unindexed bloated query you happen to send to them without ever questioning your lack of senses.
SET QUERY_GOVERNOR_COST_LIMIT in SQL Server.
https://learn.microsoft.com/en-us/sql/t-sql/statements/set-query-governor-cost-limit-transact-sql?view=sql-server-ver16
Please Login to reply.
🤯