Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
1Activity
0 of .
Results for:
No results containing your search query
P. 1
sql logical operations and agregations

sql logical operations and agregations

Ratings: (0)|Views: 22 |Likes:
Published by sivanaganna

More info:

Published by: sivanaganna on Jan 08, 2011
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

10/04/2013

pdf

text

original

 
SQL
 – 
Logical Operators andaggregation
Chapter 3.2V3.0
Copyright @ Napier UniversityDr Gordon Russell
 
Logical Operators
Combining rules in a single WHERE clause would be useful
AND and OR allow us to do this
NOT also allows us to modify rule behaviour 
When these are combined together, problems in ruleordering can occur.
This is solved using parentheses.
 
AND
AND combines rules together so that they ALL must be true.
Lets revisit the CAR table:
13000BLUESMARTSC04 BFE Bob Jones6000GREENFIATK555 GHT Bob Smith22000BLUEMERCEDESA155 BDE Jim Smith11000BLUESKODAJ111 BBB Jim Smith12000REDFORDF611 AAA
OWNERPRICECOLOURMAKEREGNO

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->