Display results Horizontally in SQL Server
Learn how to use SQL Server’s CTEs to display results in a horizontal format instead of the standard vertical format.
Learn how to use SQL Server’s CTEs to display results in a horizontal format instead of the standard vertical format.
Learn how to use excel to extract numbers from strings.
I recently had to use back end data from SQL Server to deliver several reports in excel. All of my SQL code gave me results in seconds; however, the users had distinct formatting requests. I would have to use a few excel tricks to get things just right in each report.
DateDiff is a great tool in SQL Server. But you have to extend DateDiff a bit to get things in a nicer format, such as HH:MM:SS. See what Rudy found on SQLServerCentral.com which saved the afternoon!