A query is a request made to a database to extract specific information such as details of all personnel over a certain age. Queries can be simple, using wildcard searches, or complex to interrogate the database and retrieve desired data. Creating a database allows for organizing and storing information that can then be queried.