How I can do the next query with entities:
SELECT COUNT(W.EMP_ID) AS NRO FROM WEB_ACCESS W,EMPLOYEE E,USERS U WHERE W.EMP_ID = E.EMP_ID AND W.USER_ID = U.USER_ID AND W.ACCESS_STATUS = 'A' AND U.STATUS = 'A'
You can't do this using entities as you are COUNTing the rows in the table - the two things are kinda mutually exclusive...
Take a look at the documentation for Aggregate functions in scalar queries which will allow you do what you need.
Matt