Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.tools -> Re: GROUP BY
In article <9i8O6.591$_ub.180023808_at_news.telia.no>, inger ruud
<iru_at_provida.no> writes:
>Hi!
>
>I would like to group my query by part of a field.
>
>Ex.
>
>25000000497670000000000
>27600000450947000000000
>57800000491818000000002
>57800000492500000000000
>
>I want to group by the 6 first characters.
>
>
>HELP!
>
>
Try "group by substr(colname,1,6) "