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

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

$
0
0

Try this

 

SELECT T0.[USER_CODE], T0.[U_NAME], Case when Isnull((Select Min(T1.updatedate) from Ausr T1 where  T0.USERID = T1.userSign), '') <> '' then (Select Min(T1.updatedate) from Ausr T1 where  T0.USERID = T1.userSign) else T0.[updateDate] end 'Creation date', T0.[lastLogin],  T0.[Locked] FROM [dbo].[OUSR]  T0


Viewing all articles
Browse latest Browse all 8712

Trending Articles



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