• like this?

    SELECT

    snetworkname,

    REPLACE(sNetworkName,'.noc','')

    FROM WhatsUp.dbo.NetworkInterface

    RIGHT OUTER JOIN WhatsUp.dbo.device

    ON WhatsUp.dbo.NetworkInterface.nNetworkInterfaceID = whatsup.dbo.device.nDefaultNetworkInterfaceID

    WHERE REPLACE(sNetworkName,'.noc','') NOT IN (SELECT

    REPLACE(item_keya,'.noc','') AS snetwork

    FROM dbo.item

    WHERE item_keya IS NOT NULL

    AND item_keya <> '')

    Lowell


    --help us help you! If you post a question, make sure you include a CREATE TABLE... statement and INSERT INTO... statement into that table to give the volunteers here representative data. with your description of the problem, we can provide a tested, verifiable solution to your question! asking the question the right way gets you a tested answer the fastest way possible!