Supposing you have an extra column called 6second: UPDATE cdr SET 6second=billsec+(6-mod(billsec,6) where 6second=0 if you want a decimal minutes column called billmin UPDATE cdr SET billmin=round((billsec/60)+0.5),1) where billmin=0 Vicky wrote: Thx and what would the sql query be ? . I plan to put additional field as 6second . |
_______________________________________________ --Bandwidth and Colocation provided by Easynews.com --
asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users