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://n7lj-g8dy.accessdomain.com/support/
http://n7lj-g8dy.accessdomain.com/support/viewtopic.php?f=41&t=4423