Is there anyway for this to be enhanced so that such a query will run faster in SQL?
----code below----
Insert Into bt_tmp(Clarent_pin,
service_code,
duration,
bill_type,
phone_number,
start_time,
disconnect_reason,
extended_reason_code,
ip_addr_egress,
ip_addr_ingress,
new_call_id,
dest_gateway_id,
source_gateway_id)
Select pin,
service_code,
duration,
bill_type,
phone_number,
start_time,
disconnect_reason,
extended_reason_code,
ip_addr_egress,
ip_addr_ingress,
new_call_id,
dest_gateway_id,
source_gateway_id
from Subscriber.GWUser.Billing_record
where pin in ('dadenegar01','pri','2515436094') and service_code not in ('A','C')
-------code complete-----------------
----code below----
Insert Into bt_tmp(Clarent_pin,
service_code,
duration,
bill_type,
phone_number,
start_time,
disconnect_reason,
extended_reason_code,
ip_addr_egress,
ip_addr_ingress,
new_call_id,
dest_gateway_id,
source_gateway_id)
Select pin,
service_code,
duration,
bill_type,
phone_number,
start_time,
disconnect_reason,
extended_reason_code,
ip_addr_egress,
ip_addr_ingress,
new_call_id,
dest_gateway_id,
source_gateway_id
from Subscriber.GWUser.Billing_record
where pin in ('dadenegar01','pri','2515436094') and service_code not in ('A','C')
-------code complete-----------------