Everything2
Near Matches
Ignore Exact
Full Text
Everything2

where

"where" is also a: user

created by KarmaThing

(idea) by novasoy (1.5 wk) (print)   ?   (I like it!) Fri Jan 18 2002 at 19:26:22

In SQL, the WHERE clause limits the processing of a query by defining the criteria each row must meet to be acceptable. It immediately follows the FROM clause. WHERE is one of the workhorse keywords in SQL because it is used so often in nearly every kind of query. SELECT statements use WHERE to limit the output. In UPDATE and DELETE statements, WHERE is used to limit the number of rows affected. To my knowledge, there is no reason to have a WHERE clause in an INSERT statement, nor do I believe any query engines allow it.

The WHERE clause causes the row to be returned as output or the statement to execute if the specified criteria, called the predicate, returns a true value. The predicate is merely a logical expression. The predicate can be as simple as specifying a constant value a particular column must have, or it can consist of a complicated subquery or correlated subquery.

As a logical expression, the predicate can use any of the logical operators (AND, OR, NOT, etc.) to create compound expressions. There is no limit to the number of expressions in the predicate or complexity except for the processing power of the computer on which the query runs. The predicate also makes use of the relational operators to compare one term of the expression to the other.

The simplest WHERE clauses takes the form

  ... WHERE column_name = "value" ...
Parentheses may be used in more complex queries to help the query appear more readible or to alter the order of precedence of the relational operators.
   ... WHERE (column1 > "value1") AND 
              (column2 < "value2") ... 
See my writeups on subqueries and correlated subqueries to see examples of more complicated predicates.


(definition) by Webster 1913 (print) Wed Dec 22 1999 at 4:23:48

Wher (?), Where (), pron. & conj. [See Whether.]

Whether.

[Sometimes written whe'r.] [Obs.]

Piers Plowman.

Men must enquire (this is mine assent), Wher she be wise or sober or dronkelewe. Chaucer.

 

© Webster 1913.


Where (?), adv. [OE. wher, whar, AS. hwr; akin to D. waar, OS. hwr, OHG. hwar, war, wa, G. wo, Icel. and Sw. hvar, Dan. hvor, Goth. hwar, and E. who; cf. Skr. karhi when. See Who, and cf. There.]

1.

At or in what place; hence, in what situation, position, or circumstances; -- used interrogatively.

God called unto Adam, . . . Where art thou? Gen. iii. 9.

See the Note under What, pron., 1.

2.

At or in which place; at the place in which; hence, in the case or instance in which; -- used relatively.

She visited that place where first she was so happy. Sir P. Sidney.

Where I thought the remnant of mine age Should have been cherished by her childlike duty. Shak.

Where one on his side fights, thousands will fly. Shak.

But where he rode one mile, the dwarf ran four. Sir W. Scott.

3.

To what or which place; hence, to what goal, result, or issue; whither; -- used interrogatively and relatively; as, where are you going?

But where does this tend? Goldsmith.

Lodged in sunny cleft, Where the gold breezes come not. Bryant.

Where is often used pronominally with or without a preposition, in elliptical sentences for a place in which, the place in which, or what place.

The star . . . stood over where the young child was. Matt. ii. 9.

The Son of man hath not where to lay his head. Matt. viii. 20.

Within about twenty paces of where we were. Goldsmith.

Where did the minstrels come from? Dickens.

Where is much used in composition with preposition, and then is equivalent to a pronoun. Cf. Whereat, Whereby, Wherefore, Wherein, etc.

Where away Naut., in what direction; as, where away is the land?

Syn. -- See Whither.

 

© Webster 1913.


Where, conj.

Whereas.

And flight and die is death destroying death; Where fearing dying pays death servile breath. Shak.

 

© Webster 1913.


Where, n.

Place; situation.

[Obs. or Colloq.]

Finding the nymph asleep in secret where. Spenser.

 

© Webster 1913.


printable version
chaos

Where do you want to go today? Cognitive questioning in education Rent boy Proposed changes to the current democratic system
I keep six honest serving men Ack! You lost experience! Who what when where why & how SQL
aggregate functions strtok_r Were We're, Where, Were
Dream Log: February 15, 2000 why ankle John Adams's 1800 State of the Union Address
George Washington's 1790 State of the Union Address Wherethrough Unicode John Adams's 1798 State of the Union Address
Convert any number to decimal Wherefore Lecompton Constitution Beth Orton
Y'know, if you log in, you can write something here, or contact authors directly on the site. Create a New User if you don't already have an account.
  Epicenter
Login
Password

password reminder
register

Everything2 Help

Cool Staff Picks
Things you could have written:
Loch Ness
Astrophotography
concussion
Star Wars Holiday Special
Sierpinski triangle
AIDS
Stalingrad Academy of Street-fighting
The Birth of a Nation
Japanese Imperial succession
Herman J. Mankiewicz
fish ladder
nightmare
Quorn
New Writeups
Tildeee
IANAL(idea)
antigravpussy
One fly amongst many(person)
sam512
Moon Base Shackleton, 1978(fiction)
Pavlovna
toy boy(person)
XWiz
tear jerker(review)
Heitah
Anarchy is Order(idea)
jessicaj
July 26, 2008(dream)
Berek
ABBA(person)
devolution
k-hole(place)
Nadine_2
The Sound Of Madness(review)
SwimmingMonkey
Conversations with Fo Fo, the Loneliest dog in Purgatory(fiction)
locke baron
lynx(thing)
Simulacron3
Reality, Dimensions and the Natural Ontology(essay)
SubSane
Making Love to a 9-Foot Woman(person)
Ouzo
Thoughts(idea)
E2 is a by-product of the existence of The Everything Development Company