table-- t_id_with_data_and_count
column - f_id , f-data , f_count
its a many to many map table (any id can have any number of records(with f_id and f_data set being unique in nature))
SELECT * FROM t_id_with_data_and_count where f-data IN ('PHP','JAVA') GROUP BY 1 HAVING COUNT(*)= 2 AND f_count >=17
Expected result : i am expecting it should return me all ids who are having php and java and count of php , java >= 17
results getting now: getting all the ids with both php and java , but count it is checking for java only, if the count of java is >= 17 it throws me the result.
but i am looking for it should also check for count of php