BubikolRamios
06-13-2011, 04:42 AM
a b c d
1 2 beta 2
1 1 alpha 1
1 3 gama 3
select a,min(b), c
group by a
result --> 1 1 randome_c
How would I get , insted of randome_c, exactly 'alpha' based on fact that
column d has minimum at that record ? 'alpha' is just sample, it is realy randome string.
1 2 beta 2
1 1 alpha 1
1 3 gama 3
select a,min(b), c
group by a
result --> 1 1 randome_c
How would I get , insted of randome_c, exactly 'alpha' based on fact that
column d has minimum at that record ? 'alpha' is just sample, it is realy randome string.