Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Formatting output so that data repeated between rows is not shown

$
0
0

Hi Everyone,

Here is a snippet of some sample data from a report that I have just written -

Notice above that the 'Item Code', 'Item Description', and 'Order Qty' all repeat for rows 2 and 3.

I would like to remove the repeated data (and ideally replace it with 'empty' cells), similar to the snippet below -

I am connecting to an MS SQL Server 2008 R2 database, and therefore I have come to believe I cannot use the IIF(...) function, as detailed in this link.

How can I go about formatting the data as indicated above?

Any help will be greatly appreciated.

Kind Regards,

David


Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>