|
Reply #2 dino's post
ok tq
actually my query is like below, but still slow when display..so how to improve this...
select service_number,cdr_batch_num,(end_time - seize_time)as call_duration,dialed_digits,
to_char(created_date,'DD/MM/YYYY HH24:MI:SS')as created_date, f_get_leakage_name(leakage_code)as leakage_code,
to_char(seize_time,'DD/MM/YYYY HH24:MI:SS')as seize_time, to_char(end_time,'DD/MM/YYYY HH24:MI:SS')as end_time,
round(charge,2) as charge,r_data4,status,charge_differences, r_data1,
round(subid) as subid ,user_id,batch_date,record_src,is_action_taken,date_delete,delete_category, is_leakage,
data_status,f_get_calltype_name(call_type)as call_type ,f_get_direction_name(direction)as direction,
f_get_cdrtype_name(cdr_type)as cdr_type, imsi
from ra_call_leakage
where service_number is not null and data_status='0'
order by created_date DESC limit 10 offset 0 |
|