Hi i have the following query...
SELECT UserHistory.DateTime, Users.Name, Users.Surname, UserHistory.Type
FROM UserHistory INNER JOIN Users ON UserHistory.UserID = Users.UserID where UserHistory.Location = 'Warehouse' order by UserHistory.DateTime desc
This returns the following...
DateTime Name Surname Type
22/01/2007 14:26:00 Jim Brown In
22/01/2007 14:25:00 Stuart Jackson In
22/01/2007 13:38:00 Peter James Out
22/01/2007 13:30:00 Peter James In
I want to only display users who have not signed out of the warehouse, please can someone show me where i am going wrong?
Kindest thanks,
SHawkz
SELECT UserHistory.DateTime, Users.Name, Users.Surname, UserHistory.Type
FROM UserHistory INNER JOIN Users ON UserHistory.UserID = Users.UserID where UserHistory.Location = 'Warehouse' order by UserHistory.DateTime desc
This returns the following...
DateTime Name Surname Type
22/01/2007 14:26:00 Jim Brown In
22/01/2007 14:25:00 Stuart Jackson In
22/01/2007 13:38:00 Peter James Out
22/01/2007 13:30:00 Peter James In
I want to only display users who have not signed out of the warehouse, please can someone show me where i am going wrong?
Kindest thanks,
SHawkz