Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 9159

Re: Query to find the user ID create date and locked date

$
0
0

hi Use

 

SELECT max (T1.[USER_CODE])UserCode, max (T1.[U_NAME])Name, (select max (a.[createDate]) from ausr a where T1.[USER_CODE] = a.[USER_CODE])CrateDate , max(T1.[lastLogin])LastLogin,  T1.[Locked] FROM AUSR T0  INNER JOIN OUSR T1 ON T1.[USER_CODE] = T0.[USER_CODE] GROUP BY T1.[Locked] , T1.USER_CODE

 

 

Regards

 

Chetan


Viewing all articles
Browse latest Browse all 9159

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>