Content List

In the JCR query for the content list, I need to ignore certain folders that has unneeded content. I tried to use NOT LIKE, LIKE but no success.
So basically, I want all the elements under a site, but excluding any items under the training/ test pages.

thanks
Manvinder

Via:
http://www.day.com/specs/jcr/1.0/8.5.2.2_Pseudo-property_jcr_path.html

Have you tried the following:

jcr:path LIKE '/books/%' AND NOT jcr:path LIKE '/books/%/%'

Thanks Jitendra…this did help. You are great!!!

manvinder