How to apply automated query after each insert with condition?
<p>If I have a table like that:</p>

<pre><code>id | name | points 
------------------
1  | Hala | 50
2  | Asa  | 60 
3  | Hala | 1000
</code></pre>

<p>How can I apply automated query that applied after each insert but with condition </p>

<p>like this query but only to apply on the latest item after it is inserted</p>

<pre><code>update points set points = points / 10 where name = 'Hala';
</code></pre>