Open main menu
Home
Random
Recent changes
Special pages
Community portal
Preferences
About Wikipedia
Disclaimers
Incubator escapee wiki
Search
User menu
Talk
Dark mode
Contributions
Create account
Log in
Editing
Relational algebra
(section)
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Selection == {{Main|Selection (relational algebra)}} A '''generalized selection''' (σ) is a [[unary operation]] written as <math>\sigma_\varphi(R)</math> where {{Ο}} is a [[propositional formula]] that consists of [[atomic formula|atom]]s as allowed in the [[selection (relational algebra)|normal selection]] and the logical operators {{and}} ([[logical conjunction|and]]), {{or-}} ([[logical disjunction|or]]) and {{Not}} ([[negation]]). This selection selects all those [[tuple]]s in ''R'' for which {{Ο}} holds. To obtain a listing of all friends or business associates in an address book, the selection might be written as <math>\sigma_{\text{isFriend = true} \,\lor\, \text{isBusinessContact = true}}( \text{addressBook} )</math>. The result would be a relation containing every attribute of every unique record where {{math|size=90%|isFriend}} is true or where {{math|size=90%|isBusinessContact}} is true.
Edit summary
(Briefly describe your changes)
By publishing changes, you agree to the
Terms of Use
, and you irrevocably agree to release your contribution under the
CC BY-SA 4.0 License
and the
GFDL
. You agree that a hyperlink or URL is sufficient attribution under the Creative Commons license.
Cancel
Editing help
(opens in new window)