Home Page for the TeradataForum

Archives of the TeradataForum

Message Posted: Fri, 06 Feb 2009 @ 15:15:30 GMT

  <Prev Next>   <<First <Prev Next> Last>>  

Subj:   Re: Query with NOT IN and quotes
From:   Anomy Anom

<-- Anonymously Posted: Fri, 6 Feb 2009 15:05 -->

sorry all i typoed below - the statement i want in the 'not in' clause is

     SELECT InfoData FROM dbc.dbcinfo where InfoKey ='release'
     select *
     from dbc.accesslog
     where StatementText not in (
     'SELECT InfoData FROM dbc.dbcinfo where InfoKey ='release'')
     and logdate > date - 30
     and username = 'dbc' order by 1,2

  <Prev Next>   <<First <Prev Next> Last>>  
  Top Home Privacy Feedback  
Copyright for the TeradataForum (TDATA-L), Manta BlueSky    
Copyright 2016 - All Rights Reserved    
Last Modified: 27 Dec 2016