eo
MIS
- Apr 3, 2003
- 809
Hi,
SQL 2005 - My view does a UNION ALL. I have used the...
...logic to create a row id, but it does not give me a continious row id across the two union all sub queries.
I realise I could use the...
...option, but this delivers a long arbitrary code, and as the users are actually going to use this row id field in reports, such a long, albeit unique field, will be no good.
Any idea how I can obtain a simple row counter id to work in a continious manner across two union subqueries?
EO
Hertfordshire, England
SQL 2005 - My view does a UNION ALL. I have used the...
Code:
Row_Number() over (order by alias.field)
I realise I could use the...
Code:
newid()
Any idea how I can obtain a simple row counter id to work in a continious manner across two union subqueries?
EO
Hertfordshire, England