• I added

    (Select Count(*) from Table)>0 in the where clause and it seemed to have worked