Hi
In below query it is showing like below
Group 5A 2
SELECT [GroupName],
CASE
WHEN GroupID = 2 THEN
CONCAT('', [GroupID], '')
END AS Grp
FROM
[[Group]
Thanks
Hi
In below query it is showing like below
Group 5A 2
SELECT [GroupName],
CASE
WHEN GroupID = 2 THEN
CONCAT('', [GroupID], '')
END AS Grp
FROM
[[Group]
Thanks
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Cr BhargaviPosted Aug 16, 2023, 10:51 AM
Hi Ramco, Please use
htmlspecialcharsfor the safe data and loop through results, applying formatting within table cells. It will help you with the delivering the SQL indivually so that you would be able to get the appropriate resultsSaravanan GanesanPosted Aug 16, 2023, 9:42 AM
The provided SQL query uses a
CASEstatement to format specificGroupIDvalues with red and bold styling. To safely display this, fetch results using your preferred programming language, like PHP. Usehtmlspecialcharsfor data safety and loop through results, applying formatting within table cells. Ensure to manage HTML rendering separately from SQL for security and organization.Tahir AnsariPosted Aug 15, 2023, 6:21 AM