Tips on writing CAML
Scenario: You need help on writing CAML for your web part
Solution:
1. Create a view in your list on how the items in the list should appear.
2. In the URL use -> http://servername/sitename/_layouts/oneview/caml.aspx?view=full-path-to-view
For example: http://sharepointdemo/department/_layouts/oneview/caml.aspx?view=Lists/List%20of%20Products/AllItems.aspx