hi
I have below query . I want to highlight a particular column. Is it pssoble
(SELECT 'A/C Bal.' 'Type',cast(getdate() as date) [Posting Date],'' [Document No],'' [Voucher No.],'' Line_ID,'ABC Bank Ltd' + ' ' +'('+' '+'Closing Bal.'+' '+'='+' '+cast(cast(ISNULL(SUM(S.Debit)-SUM(s.Credit),0.00) +(select sum(debit)-sum(Credit) from jdt1 where jdt1.refdate
Thanks
Cr BhargaviPosted Aug 15, 2023, 5:19 PM
Saravanan GanesanPosted Aug 14, 2023, 10:50 AM
Hi Ramco,
If you want to highlight a particular column in your query result, you cannot directly apply formatting or styles to the result set in SQL itself, as SQL only deals with data retrieval and manipulation. Formatting and styling are typically handled in the presentation layer, such as in your application's front-end code (e.g., HTML, CSS) or in reporting tools.
However, if you are retrieving this data and displaying it in a tabular format on a web page or application, you can apply CSS styling to that particular column using the HTML and CSS in your presentation layer.
Here's an example of how you might use CSS to highlight a specific column in an HTML table:
Replace
[Posting Date],[Particulars], and other placeholders with the actual values from your query result.Remember that how you apply CSS styling depends on where and how you are displaying the query result.