Home Page for the TeradataForum
 

Archives of the TeradataForum

Message Posted: Wed, 19 Jun 2013 @ 13:05:00 GMT


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


Subj:   Re: Query to find users not logged in since long days
 
From:   Gupta, Vipin

Hi,

Following query can be useful:

     sel username,
         logdate(char(12))
     from dbc.logonoff
     where logdate>date-60
       and event ='logon'

     union

     sel username,
         'Never Logged'
     from dbc.users
     where username
        not in ( sel username
                 from dbc.logonoff)
     order by 2 desc ;

Thanks,

Vipin Gupta



     
  <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: 15 Jun 2023