Being in the cloud does have many benefits, from lower administration to fast scaling but another “side effect” of operating in Azure SQL Database is the cloud first nature of changes. By this I basically mean new features always get pushed to Azure first before the classic on-premises version so some gems come to light.
Here is one for you. Have you ever wanted MySQL’s functinality to apply LEAST() and GREATEST() argument? Well, you can now, in Azure.
Check my build number / date, did something happen in October?
SELECT @@VERSION

Let’s run the below:
SELECT GREATEST (3,2,1) AS [Highest Num] SELECT LEAST (1,2,3) AS [Lowest Num]

Well, what a nice surprise, Christmas has come early.
Pingback: Azure SQL Database – Greatest and Least TSQL from Blog Posts - SQLServerCentral - Actu Tech
Pingback: GREATEST and LEAST in Azure SQL Database – Curated SQL
Pingback: Dew Drop – November 27, 2020 (#3327) | Morning Dew