sql

wITH A AS (SELECT *
  FROM TABLE(SIG_ETL_RPT.protocolList('2,6/', '1,0/', ''))) (SELECT 1503 as TASK_ID,
                                                        5 as OBJECT_TYPE,
                                                        1 as OBJECT_ID,
                                                        '' as OBJECT_NAME,
                                                        tn.PROTOCOL_TYPE,
                                                        tn.PROTOCOL,
                                                        '' as PROTOCOL_NAME,
                                                        UP_PACKETS,
                                                        DOWN_PACKETS,
                                                        UP_BYTES,
                                                        DOWN_BYTES,
                                                        NEW_FLOWS,
                                                        CUT_FLOWS,
                                                        SEQ_FLOWS,
                                                        STAT_TIME,
                                                        2
                                                   FROM a,
                                                        SIG_ETL_RPT.FL_TF_UR_AR_1_H7 tn
                                                  WHERE a.PROTOCOL_TYPE =
                                                        tn.PROTOCOL_TYPE
                                                    AND a.PROTOCOL =
                                                        tn.PROTOCOL
                                                    AND AREA_ID = 1
                                                    AND STAT_TIME >=
                                                        1314892800
                                                    AND STAT_TIME <=
                                                        1314979199
                                                    AND (DOWN_BYTES > 0 OR
                                                        DOWN_PACKETS > 0))

你可能感兴趣的:(sql)