Result Set

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:

    But this I know; the writer who possesses the creative gift owns something of which he is not always master—something that at times strangely wills and works for itself.... If the result be attractive, the World will praise you, who little deserve praise; if it be repulsive, the same World will blame you, who almost as little deserve blame.
    Charlotte Brontë (1816–1855)

    If nations always moved from one set of furnished rooms to another—and always into a better set—things might be easier, but the trouble is that there is no one to prepare the new rooms. The future is worse than the ocean—there is nothing there. It will be what men and circumstances make it.
    Alexander Herzen (1812–1870)