SQL Server 

SQL Server 


Output:

Click on RUN button to see the output