Create report from notes by date

Which file can I query to generate a report of contact notes? Also, what syntax should be used to generate the report by date and active contacts only?
Thanks
Thanks
Support for SeedCode
http://archive.seedcode.com/support/
http://archive.seedcode.com/support/viewtopic.php?f=41&t=4423