I'm using SQL Server 2005 and have written a query to be used in a 3rd party software package. I'd like to be able to either change the way the data displays, either by bolding it or changing the color, when a certain field is used. Is this possible?
This is part of the code. If the first condition of the CASE statement is true, I'd like the data to print differently from the other conditions.
Thanks for any help!
This is part of the code. If the first condition of the CASE statement is true, I'd like the data to print differently from the other conditions.
Code:
SELECT OpenJob.JobN, OpenJob.JobN as 'Job',
OpenJob.CustomerN as 'Cust',
OpenJob.JobDescription as 'Description',
convert(varchar(5),OpenJob.DueDate,101) as 'Due',
CASE WHEN (CT_OTD.FilesInA <> '1/1/1900 12:00:00 AM') THEN convert(varchar(5),CT_OTD.FilesInA,101)
WHEN (CT_OTD.FilesInR <> '1/1/1900 12:00:00 AM') THEN convert(varchar(5),CT_OTD.FilesInR,101)
WHEN (OpenJob.EarliestStartDate <> '1/1/1900 12:00:00 AM') THEN convert(varchar(5),OpenJob.EarliestStartDate,101)
ELSE ' '
END as 'File',
FROM {oj Company.dbo.OpenJob OpenJob LEFT OUTER JOIN Company.dbo.CT_OTD CT_OTD ON OpenJob.JobN = CT_OTD.JobN}
WHERE (CT_OTD.Late = ' ') AND (OpenJob.ProdPlanner=100)
ORDER BY OpenJob.JobN
Thanks for any help!