I want to do a select that will pull all four rows in a table of two columns (a and b) but tagged on the end is a rowcount. For example:
select * from table:
a b
---- -----
ca cal
wa was
fl flo
or ore
Desired select returns:
a b xcount
---- ----- -------
ca cal 1
wa was 2
fl flo 3
or ore 4
without cursors or temp tables does anyone know how to do this?