A database query is a piece of code (a query) that is sent to a database to get information back from the database.