Query can refer to either a database query or a search query. Database query is a standardized statement that either displays some information from the database or performs some action upon the data in the database. Web search query is the text that a user types into search engine address/search bar.
Database query is a request for displaying/modifying information, delivered using the system of signs of a formal machine language, a.k.a. query language. The two main types of database queries are SELECT and ACTION queries. SELECT queries display some information from a database table or a number of tables, as a rule in a form of a table, similar to a Microsoft Excel table. An ACTION query can create, append, update and delete tables, as well as perform other actions.
Query language is the system of queries that allows working with database tables. The most popular and well-known query language is SQL (Structured Query Language). There are many other SQL languages that have the potential to display data not only in form of tables but in form of graphs and other complex forms of displaying data. Among other SQL languages, the most well-known ones are MySQL, SQL Server, MS SQL, OracleSQL.
Web search query is a query that a browser user types in the search browser field. Such queries require no special formatting. This simple query is executed once a user presses the ‘Enter’ key. Then, the search engine determines the most significant results based on the algorithm it uses and displays the SERP (search engine results page) to the user.
There are three main types of web search queries. They are:
Related terms: SQL, database, MySQL, browser, search engine.
References and further reading: