Had this question pop up at work today, to show all items without folders in SharePoint you will need to add the Recursive attribute to the SPQuery object.

 Here is an example, This can be done in Code:

 SPQuery.ViewAttributes += ” Scope=\”Recursive\””;

 Or as part of the CAML Query Markup

    <FieldRef Name=’ID’ /> 



   <ViewAttributes Scope=’Recursive’ /> 



Other query options are:

   <Folder>Name Of the Folder Here/</Folder>