An SQL result set is a set of rows from a database, as well as metadata about the query such as the column names, and the types and sizes of each column. Depending on the database system, the number of rows in the result set may or may not be known. Usually, this number is not known up front because the result set is built on-the-fly. Precomputations often impose undesired performance impacts.
A result set is effectively a table. The ORDER BY clause can be used in a query to impose a certain sort condition on the rows. Without that clause, there is no guarantee whatsoever on the order in which the rows are returned.
Famous quotes containing the words result and/or set:
“Nine-tenths of English poetic literature is the result either of vulgar careerism or of a poet trying to keep his hand in. Most poets are dead by their late twenties.”
—Robert Graves (18951985)
“When you have come into the land that the LORD your God is giving you, and have taken possession of it and settled in it, and you say, I will set a king over me, like all the nations that are around me, you may indeed set over you a king whom the LORD your God will choose. One of your own community you may set as king over you; you are not permitted to put a foreigner over you, who is not of your own community.”
—Bible: Hebrew, Deuteronomy 17:14,15.