Yes senthil suggested you correct as this is presentation issue.It will be very easy in front end and less effort for the system to workbut still if you want to make it by SQL its possibletry this - ;WITH CTE AS(SELECT Continent, Country, City, ROW_NUMBER() OVER ( Partition BY Continent, Country ORDER BY City ) RowNoFROM YourTable)SELECT CASE WHEN RowNo = 1 THEN Continent ELSE '' END AS Continent, CASE WHEN RowNo = 1 THEN Continent ELSE '' END AS Country, CityFROM CTE
Vaibhav TTo walk FAST walk ALONE To walk FAR walk TOGETHER