selection


Should this be selection or projection


I have am learning relational algebra. I have a table,
Staff(name,salary,position)
Now a question states,
List all the managers with salary >25,000
Now the correct answer is,
selection position = manager ^ salary >25000(staff)
But I was thinking that it was,
projection position = manager ^ salary >25000(staff)
As we are selecting a particular attribute in the table and not selecting all the attributes. Please guide. Thanks
You want to "list all the managers", that means "select a number of rows".
You are not "selecting a particular attribute", but you are filtering on a particular attribute (to select a row).
Projection would be "list all the managers' names and salaries".
In terms of SQL:
Selection is the WHERE clause
Projection is the list of columns in the SELECT clause

Related Links

Should I always mutate the offspring in steady-state selection?
Ideally how many chromosomes in the population should I kill during steady state selection?
Using XQuery to count nodes with a certain criteria
Select from selection based on attribute table in ArcGIS or arcpy
AEM - How to add fieldDescription for an item of selection
Multiple Interval Selection in JList
PySide QTreeView: Print the name of the selected item
Selecting and playing movie from jit.playlist
Why does clicking certain elements in the Elements tab cause them to flash orange and not be selected?
flot selection / highlighting - need to have simple value, not range
Big Query - And/Or Operators
Selecting text including $ in Sublime Text 3
polymer core-animated-pages switching on tap
Genetic Algorithm new generation exponentially increasing
Kendo IntegerTextBoxFor select all numbers on focus
Arcpy - Selecting Attribute and adding attributes to a feature class

Categories

HOME
office365
artificial-intelligence
tomcat
bots
selenium-builder
website
biztalk-2010
anchor
parsley.js
sslhandshakeexception
stimulsoft
spring-jpa
trace32
pinterest
fosuserbundle
gmp
renderscript
nullreferenceexception
multiple-tables
web-analytics
stackexchange.redis
acl
ini
ava
environment
morris.js
list-comprehension
running-object-table
onchange
materialize
memory-fences
opnet
john-the-ripper
sca
listjs
nsuserdefaults
xvfb
twilio-php
mv
llvm-ir
hidden-markov-models
python-sounddevice
pyttsx
dbcc
md5-file
lightning-workbench
nivo-slider
kendo-editor
degrees
instafeedjs
nrf51
cefpython
data-management
callouts
meld
unsigned
adp
strpos
facebook-ios-sdk
openmrs
ajax4jsf
fanotify
auto-generate
sqlbase
search-form
dbmigrate
android-audiomanager
mxe
tidyr
mutators
adwords-apiv201402
inequality
jquery-mobile-flipswitch
treeline
incognito-mode
rails-api
tabletools
flipboard
discovery
stty
dynamic-rdlc-generation
flv
web-frameworks
office-app
system-requirements
onconfigurationchanged
clearinterval
websphere-6.1
taskkill
jdom
kobold2d
monocross
uploading
gwt-celltable
net-use
botnet
airprint
bll
turbine
principles
cleartype
downcasting
suggestbox
remote-working
code-camp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App