To find out more about the database schema use the Schema Browser.
For an introduction to the Structured Query Language (SQL), please see
the SQL Intro help page. In particular,
please read the Optimizing Queries
section in that document. If your query is timing out or running much slower than you
think it should, please see also the
the BookMark Lookup bug section of the SQL Intro.