Assuming that the columns user, status and unit are int , the following should give you wanted. SELECT * FROM your_table WHERE user=1 AND status=2 AND unit=1 AND [date] = '2015-01-01'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)