I am using a software which doesn't have a feature on custom row number. In order to resolve my issue, I have to tweak it on my SQL and create a custom column for the custom row number. Here is what I want to do as my custom row number along with my select statement:
li{
list-style-type: none;
}
<ul>
<li>1.</li>
<li>2.</li>
<li>2.1</li>
<li>2.2</li>
<li>2.3</li>
<li>3.</li>
<li>3.1</li>
<li>3.2</li>
</ul>
I am using Microsoft SQL Server. I tried to use variables but it doesn't work the way I wanted to be. Here is my sample faulty output:
SELECT chart.col1,CASE
WHEN chart.CHART_LEVEL <= 2 THEN @no += 1
WHEN chart.CHART_LEVEL => 3 THEN CONCAT(@no,'.'@subNo += 1)
ELSE ''
END
AS 'RowNo'
FROM myTable chart
I am really sorry for giving insufficient details.