How to optimize this code?
Teradata Teradata Discussion Forums Teradata.com Discussion Forum
Visit Teradata.com
Home       Guidelines    Member List
Welcome Guest ( Login | Register )
        


This online forum is for user-to-user discussions of Teradata products, and is not an official customer support channel for Teradata. If you require direct assistance, please contact Teradata support.


How to optimize this code? Expand / Collapse
Author
Message
Posted 6/13/2008 2:15:17 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Today @ 12:27:03 AM
Posts: 24, Visits: 100
INSERT INTO ${ETLVMDB}.TMP_T245235B
(
ACCT_ID,
CALL_USAGE_CHRGS,
SRVC_AND_EQUIP_CHRGS,
OTHR_CHRGS,
DT_ID
)
SELECT
TB.ACCT_ID,
(ZEROIFNULL(WRLN_BILL_CT_NET_AM) + ZEROIFNULL(WRLN_BILL_CT_GST_AM)) ,
(ZEROIFNULL(WRLN_BILL_RC_NET_AM) + ZEROIFNULL(WRLN_BILL_RC_GST_AM)) ,
(ZEROIFNULL(WRLN_BILL_NRC_GST_AM)+ ZEROIFNULL(WRLN_BILL_NRC_NET_AM)),
ABSD.DT_ID
FROM
${ETLVMDB}.TMP_T245215 TB
INNER JOIN
${VMDB}.AGG_BILL_SUBTN_DT ABSD
ON
TB.ACCT_ID = ABSD.ACCT_ID;
Post #11839
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 0 ( 0 guests, 0 members, 0 anonymous members )
No members currently viewing this topic.


All times are GMT -5:00, Time now is 4:40am

Powered By InstantForum.NET v4.1.4 © 2008
Execution: 0.047. 8 queries. Compression Disabled.