Please do not redirect me towards the other similar kinds of HQL in Stackoverflow, because they did not work for me. I really appreciate your direction on it. Thanks.
Reproducing this kind of query in Nhibernate with ICriteria API :
SELECT DISTINCT FileName From CustomerFile WHERE name = ' ' AND timeframe = ''