I would like to ask if there is a way to include the total number of rows, as an additional column, in the returned result sets from a TSQL query using also the Row_Nu
Via comments attached to the question it's clear that this question relates to paging. In that scenario, there are two broad approaches:
The first option works well if the total number of rows is measured in the thousands. If the total number is much higher, you best bet is to run the query twice.
This is a typical space/processing trade-off.
Your milage may vary - what works well for one situation may be terrible in another!