An ad hoc query is a query that cannot be determined before the moment the query is issued. It is created to get information when the need arises, and it consists of dynamically constructed SQL, which is usually constructed by desktop-resident query tools.
Read More
It is created in order to get information when need arises and it consists of dynamically constructed SQL which is usually constructed by desktop-resident query tools. Ad Hoc Queries are used intensively in the Internet. Search engines process millions of queries every single second from different data sources.