1. A method comprising: obtaining a database query statement, the database query statement specifying a join of a plurality of database tables in a database, a condition for selecting one or more data records from the database tables, and one or more data fields to retrieve from the one or more data records; determining a layout, the layout specifying that at least one of the database tables is a base table and that one or more other database tables of the plurality of database tables are related tables in a database, wherein the layout comprises an arrangement of the one or more data fields; identifying, from the one or more data fields, a searchable data field, including: identifying, from the one or more related tables, a related table as a searchable table based on a degree of separation between the related table and the base table, including identifying the searchable table when the degree of separation satisfies a threshold value, the degree of separation corresponding to a distance measured by a number of joins between the related table and the base table through one or more other related tables; and automatically identifying a data field of the related table that is specified in the database query statement as the searchable data field from the related table; receiving a search request separately from the database query statement, the search request including at least one search term; constructing a quick search query statement using the search term and the database query statement, including replacing the condition of the database query statement for selecting the one or more data records with a new condition that includes the search term and specifying the related table in the quick query statement; performing a search in the database by executing the quick search query statement; and providing a result of the search as a response to the search request, wherein the method is performed by one or more computers.