• Thanks.. its working !

    can you let me know why you have used

    HAVING COUNT(*) = 4