HI,
I have 15 columns... in my result set.
I have two columns which are:
COLA COLB
JOHN 23
JOhn 0.1
Jack 15
James 1000
James 34
James 0.1
So i need to create a new column and searches through col a, and where the value occurs more than once in the new column put a 1 next to the row with the highest value and 2 for all others. If it occurs just once put just a one.
I am getting a little lost about how to do this. All other columns need to be returned in the query but mustst be effected.
Thanks.
I have 15 columns... in my result set.
I have two columns which are:
COLA COLB
JOHN 23
JOhn 0.1
Jack 15
James 1000
James 34
James 0.1
So i need to create a new column and searches through col a, and where the value occurs more than once in the new column put a 1 next to the row with the highest value and 2 for all others. If it occurs just once put just a one.
I am getting a little lost about how to do this. All other columns need to be returned in the query but mustst be effected.
Thanks.