Are the queries correct?
Hi,1. I want the data of all log-in enabled users in Livelink. And I have executed the below query which is not giving the results expected. In a particular week, the unique logins data is 11(i have a separate query for that), whereas this query gives me only 2 user names for the login disabled users. When there are 11 unique logins in a week, how can be there no user with login-enabled account. Moreover it gives me data for disabled users which i don't want.Select auditid,auditstr,auditdate,userid, kuaf.name, value1,value2 from dauditnew, kuaf where dauditnew.userid=kuaf.id and auditid=10 and ((convert(varchar,value1) != '0' and value2 is null)) OR ((convert(nvarchar,value2) = '1001') and (convert(nvarchar,value1) is null)) and auditdate between '11-Jan-2009' and '18-Jan-2009' order by auditdate2. Also, I want the names of all users who have not been removed access from Livelink objects. The below query gives me data for the users added to a group along with group id for that week. But it doesn't give the data for all other users who are part of groups from before or earlier weeks what if they are not added to a group this particular week. Which means they had access earlier weeks and this particular week too though they are not added to a new group.Select auditid,auditstr,auditdate,userid, kuaf.name, value1,value2 from dauditnew, kuaf where dauditnew.userid=kuaf.id and auditid=30 and value2 is not null and convert(nvarchar,value2) != '1001' and auditdate between '11-Jan-2009' and '18-Jan-2009' order by auditdateOverall, I want data for all users who have the ability to access Livelink(login enabled, access available on objects) irrespective of whether they login or do not login.The above two queries will help me to do that.Please suggest what is wrong in the above queries so that i can correct and pull the required data from database. If you have any other way to achieve this, please do share with me.Many Thanks,Atiya.