How to return empty cells for repeated values and keep only the cells which are different ?

Posted by Ashraf Bashir on Stack Overflow See other posts from Stack Overflow or by Ashraf Bashir
Published on 2010-04-30T11:09:44Z Indexed on 2010/04/30 11:17 UTC
Read the original article Hit count: 333

Filed under:
|
|
|
|

I have a query that selects some fields to display from a table

SELECT Field1, Field2, Field3, Field4 FROM table1

I want instead of returning :

alt text

To return:

alt text

How could I modify my SQL statement to return the second figure ? Or at least how to change the gridview properties of .Net to do so (if this is possible) ?

© Stack Overflow or respective owner

Related posts about sql

Related posts about sql-server