<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif"><p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">Dear all, </span></p><p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">I have an attribute table
(associated to a shape file).<span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">One of the field  is a string type field and his name is “DESCRIPTION”
, I need this field as an  INT number. <span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">The field “description” is formed by
25 different samples and around 350 records (so for every sample there are
different records with the same description).<span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">SO I create a new field “descriptionINT”
and I would like to fill the field with 25 numbers (1, 2, 3,.... 25) associated
to the 25 different sample and 350 records. <span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">How I can do? <span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">Till now, I was first selecting the
records related to the first sample and I was giving the number, for example 1
(with field calculator) to all the records related to the same sample. <span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">But I am doing this one by one..
that means every time a do a new selection and I give a new number with field
calculator. <span></span></span></p>

<p class="MsoNormal" style="margin-bottom:0.0001pt"><span lang="EN-GB">Do you know a faster way (query)  to do this ? <span></span></span></p></div><div><br></div><div><div class="gmail_default" style="font-family:tahoma,sans-serif">​thanks A.L. ​</div><br></div>-- <br><div class="gmail_signature"><div dir="ltr">Dr. Hydrogeologist <br>AZZURRA LENTINI<br>Expert of evaluation environmental hazards<br>GIS application <br>Haity Mobile Tel: 0050946057393<br>++++++++++++++++++++++++++<br>Italy Mobile Tel.: **(39) 338 24 40 676<br>++++++++++++++++++++++++++<br>SKYPE azzurrahydro<br>++++++++++++++++++++++++++<br><a href="mailto:azzurralentini@gmail.com" target="_blank">azzurralentini@gmail.com</a><br>++++++++++++++++++++++++++<br>*Par respect pour l'environnement,*<br><br>*n'imprimez ce mail qu'en cas d'absolue nécessité*<br><br> <br><br><br><br><br></div></div>
</div>