Sort:  

SQL server 2022 i used to execute the code. Thanks for visiting. Best of luck.