Merge 2 cells and show as 1 merged cell if value matches

How to merge 2 cells if value matches, just like lolocation column.

How to make that fixed for this column only.

I am generating the html code from sql.

Thanks in advance

Hello, Welcome to the freeCodeCamp Forum.

you could use a table rowspan. you can check it out. link is https://html.com/tables/rowspan-colspan/
or use another resource. have a nice day!