1. A method for authoring a database query by modifying a view of the results of the database query, the method comprising: generating a view of the results of a database query; providing a user interface for modifying the view to define the results of the database query; generating a query definition capable of returning the results of the database query defined in the view; and running the generated query definition on a database to perform the database query.