Where clause

From Conservapedia
This is the current revision of Where clause as edited by EdBot (talk | contribs) at 22:15, April 1, 2008. This URL is a permanent link to this version of this page.
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

A where clause is used in Structured Query Language (SQL) to determine a subset records which should be returned from a larger whole. The where clause can function as a filter, selecting records that fit certain criteria, or it can be used to join related tables.

Examples

SELECT city WHERE population < 1000

Only small cities, having population less than 1,000 people, will be selected.