Query is another word for question. In fact, outside of computing terminology, the words "query" and "question" can be used interchangeably. For example, if you need additional information from someone, you might say, "I have a query for you." In computing, queries are also used to retrieve information. However, computer queries are sent to a computer system and are processed by a software program rather than a person.

One type of query, which many people perform multiple times a day, is a search query. Each time you search for something using a search engine, you perform a search query. When you press Enter, the keywords are sent to the search engine and are processed using an algorithm that retrieves related results from the search index. The results of your query appear on a search engine results page, or SERP.

Another common type of query is a database query. Databases store data in a structured format, which can be accessed using queries. In fact, the structured query language (SQL) was designed specifically for this purpose. Users can create SQL queries that retrieve specific information from a database. For example, an human resources manager may perform a query on an employee database that selects all employees in a specific department that were hired between 11 and 12 months ago. The results might be used to provide the department head with current candidates for an annual review.

While you may not always notice them, computer queries are happening all the time. For instance, most dynamic websites query a database each time you visit a new page. Software applications often contain background functions that perform queries based on your input. While many types of computer queries exist, their basic purpose is the same — to receive an answer to a question.

NOTE: The word "query" can be used as either noun or a verb. For example, you can "perform a search query" or "query a database." Both examples are correct uses of the word "query."

Updated May 13, 2011 by Per C.

quizTest Your Knowledge

Which of these image formats is likely to introduce artifacts into the image?

Correct! Incorrect!     View the Artifact definition.
More Quizzes →

The Tech Terms Computer Dictionary

The definition of Query on this page is an original definition written by the TechTerms.com team. If you would like to reference this page or cite this definition, please use the green citation links above.

The goal of TechTerms.com is to explain computer terminology in a way that is easy to understand. We strive for simplicity and accuracy with every definition we publish. If you have feedback about this definition or would like to suggest a new technical term, please contact us.

Sign up for the free TechTerms Newsletter

How often would you like to receive an email?

You can unsubscribe or change your frequency setting at any time using the links available in each email.

Questions? Please contact us.