Hey thanx for that Marnus . Thats&nbsp;working&nbsp; just exactly  how i wanted :)&nbsp;.&nbsp;Damon&nbsp;i&nbsp;actually&nbsp;came&nbsp;up&nbsp;with&nbsp;same&nbsp;row/60+0.5&nbsp;then&nbsp;roundup&nbsp;trick&nbsp;when&nbsp;i&nbsp;was&nbsp;doing&nbsp;something&nbsp;same&nbsp;in&nbsp;excel&nbsp;sheets&nbsp;:)&nbsp;and&nbsp;its&nbsp;useful<br>for&nbsp;billing&nbsp;in&nbsp;1&nbsp;minute&nbsp;roundup&nbsp;(&nbsp;60&nbsp;sec&nbsp;pulse&nbsp;)&nbsp;but&nbsp;i&nbsp;failed&nbsp;to&nbsp;get&nbsp;it&nbsp;working&nbsp;for&nbsp;6&nbsp;second&nbsp;pulse&nbsp;&nbsp;.&nbsp;
<br>Marnus's&nbsp;sql&nbsp;query&nbsp;is&nbsp;perfect&nbsp;..&nbsp;now&nbsp;suppose&nbsp;charge&nbsp;is&nbsp;1.5&nbsp;cent&nbsp;/min&nbsp;then&nbsp;i&nbsp;can&nbsp;used&nbsp;6&nbsp;second&nbsp;round&nbsp;up'd&nbsp;value&nbsp;and&nbsp;multiple&nbsp;by&nbsp;0.15&nbsp;&nbsp;to&nbsp;get&nbsp;call&nbsp;bill&nbsp;in&nbsp;cent&nbsp;and it can also be used for 30 second pulse or any other value&nbsp;with&nbsp;small&nbsp;modification ..&nbsp;Thx&nbsp;. 
<br><br><div><span class="gmail_quote">On 14/11/06, <b class="gmail_sendername">Marnus van Niekerk</b> &lt;<a href="mailto:m@mjvn.net">m@mjvn.net</a>&gt; wrote:</span><blockquote class="gmail_quote" style="margin-top: 0; margin-right: 0; margin-bottom: 0; margin-left: 0; margin-left: 0.80ex; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; padding-left: 1ex">
<div bgcolor="#ffffff" text="#000000"> Supposing you have an extra column called 6second:<br><br> UPDATE cdr SET 6second=billsec+(6-mod(billsec,6) where 6second=0<br><br> if you want a decimal minutes column called billmin
<br><br> UPDATE cdr SET billmin=round((billsec/60)+0.5),1) where billmin=0<span class="q"><br><br><br> Vicky wrote: <blockquote cite="http://midff95c3730611131151y20af13a9q2300d845d8d0d191@mail.gmail.com" type="cite">Thx and what would the sql query be ?&nbsp;.&nbsp;I&nbsp;plan&nbsp;to&nbsp;put&nbsp;additional&nbsp;field&nbsp;as&nbsp;6second&nbsp;.&nbsp;
<br> How&nbsp;can&nbsp;i&nbsp;make&nbsp;billsec&nbsp;of&nbsp;values&nbsp;of&nbsp;whole&nbsp;table&nbsp;get&nbsp;rounded&nbsp;and&nbsp;filled&nbsp;in&nbsp;field&nbsp;&quot;6second&quot;<br> Sorry i am a noob with mysql :D <br><br><div><span class="gmail_quote">On 14/11/06, <b class="gmail_sendername">
James Coberly</b> &lt;<a href="mailto:james.coberly@xmc.com" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">james.coberly@xmc.com</a>&gt; wrote:</span>   <blockquote class="gmail_quote" style="border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 0.80ex; padding-left: 1ex">
<div> sum(duration+(6-mod(duration,6) for summary of seconds divisible by 6,&nbsp; /60 for minutes<span><br></span></div></blockquote></div></blockquote><br></span></div><br>_______________________________________________<br>--Bandwidth and Colocation provided by 
<a onclick="return top.js.OpenExtLink(window,event,this)" href="http://Easynews.com" target="_blank">Easynews.com</a> --<br><br>asterisk-users mailing list<br>To UNSUBSCRIBE or update options visit:<br> &nbsp; <a onclick="return top.js.OpenExtLink(window,event,this)" href="http://lists.digium.com/mailman/listinfo/asterisk-users" target="_blank">
http://lists.digium.com/mailman/listinfo/asterisk-users</a><br><br><br></blockquote></div><br>