I am trying to insert data from 2 tables (tblContacts and tblPermission)into another table (tblUserPermissions). The columns to which I need to insert the data in tblUserPermission (ContactID, and PermissionID) make up its primary key. Can anyone help me with this? Nothing I have tried has...
I hope someone can point me in the right direction as I am a bit confused. I have an application that accesses SQL Server 2000 to validate app logins. Occasionally, the login process times out. This usually occurs when that login has not been used in some time. I used Windows System Monitor...
Can't thank you enough for the help Terry. The following query misses many of the sessions. Some dates are missed altogether. What I really need is a DISTINCT function on
T.UserTimeLogIn, but then I have to include it in the GROUP BY statement which screws the results up. Any ideas? Going...
Thanks for the help. I have tried the DATEDIFF function as shown below. It doesn't roll up different sessions. If I logged on 5 times in a day, it shows me the total time of each session. I want to see the total time for all sessions for a user/day.
SELECT T.UserTimeLogIn...
I am trying to calculate the total time a user has been logged on to an appilcation for the day. The beginnings of my query looks like this:
SELECT T.UserTimeLogIn,T.UserTimeLogOut, C.ContactFirstName, C.ContactLastName, T.ContactID
FROM T INNER JOIN C ON T.ContactID = C.ContactID
WHERE...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.