I have a SQL Query, although it is executing, but how should i verify if it is giving me the desired result. For example: My query
$query3 = "SELECT COUNT(DISTINCT(uid)) AS `num`
FROM `user_info`
WHERE date(starttime)='2011-10-10'";
In the above query i am trying to count the number of distinct user ID's(uid)
from the table named user-info
where date
is 2011-10-10.
How should i display the count which is calculated for the given date?.I need to know it and perform some further operations on it!