Question : What is the best way to find out what computer on your network may be sending out spam?

My company is currently in the process of being black listed and I think it is from one of your internal computers sending out spam. Most likely a virus or Trojan is the cause. What would be the best method of finding who is the culprit?

Answer : What is the best way to find out what computer on your network may be sending out spam?

Sub queries can only be used in SQL statements.  Since this case statement is in PL/SQL not regular SQL, you cannot do it.

Either select the id into another variable or somehow join the selects into a single select statement ot return the desired type_id.

What does the following return:

SELECT   WAVELENGTH_TYPE_ID
              INTO   P_WAVELENGTH_TYPE_ID
              FROM   LAYER1_WAVELENGTH_TYPE
             WHERE   WAVELENGHT_TYPE_NAME = TDP_LOAD_SUMMARY_REC.Customer and
TDP_LOAD_SUMMARY_REC.Customer IN
                      ('CNI-CD',
                       'CNI-00',
                       'CNI-TC',
                       'CNI-M',
                       'CNI-RH',
                       'CNI-XC',
                       'CNI-NP',
                       'CNI-RT')
and
P_PROGRAM_ID IN (SELECT   PROGRAM_ID FROM   LAYER1_PROGRAM WHERE PROGRAM = 'MSP/DMX');
Random Solutions  
 
programming4us programming4us