I am using MySql 5.5.
I need to find the user id on a date with a specific IP address.
Fields: userid, ipaddress, startdate, enddate.
So, for example, I'm looking for a user ID with ip address 192.168.1.1 dated September 12, 2011.
the request will be similar to select * from database where ipaddress='192.168.1.1' and 2011-12-09 is in(startdate and enddate);
Any help aimed at identifying this logical error is welcome. Thanks.
source share