Link to home
Start Free TrialLog in
Avatar of MikeM670
MikeM670

asked on

Format Output of Select Statement

MS SQL 2014

Is it possible to format the output from a select statement?

Below is a simple select of the LastName field.  I want the results to be displayed with the underline.

Last Name

Select LastName as 'Last Name'
From mydatabase

The end result of the query will be displayed in a browser.
ASKER CERTIFIED SOLUTION
Avatar of Jim Horn
Jim Horn
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of MikeM670
MikeM670

ASKER

Okay thanks.

Your answer pointed me in the right directions.
This works for me.

select nm.PersonID as '<p style="font-weight: bold; text-decoration: underline;">Person ID</p>',