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:

    “The feeling of being hurried is not usually the result of living a full life and having no time. It is on the contrary born of a vague fear that we are wasting our life. When we do not do the one thing we ought to do, we have no time for anything else—we are the busiest people in the world.”
    —Eric Hoffer (1902–1983)

    “When parents fail to set appropriate limits, children may feel more vulnerable at night: the aggressive urges that have not been “tamed” by day may be terrifying to a small child alone in the dark.”
    —Cathy Rindner Tempelsman (20th century)