|
SQL Between Example One
Q: What thespians last names are between "Nichols" and "Nickerson"?
Select Thespian_Last_Name, Thespian_First_Name
From Thespian_Table
Where Thespian_Last_Name between "Nichols" and "Nickerson";
Nicholson, Jack
Nicholson, Nick
Note: With some DBMSs a thespian with the last name of "Nichols" or "Nickerson" is not listed- between only selects fields that are between the test values and exclude the test values. With other DBMSs a thespian with the last name of "Nichols" or "Nickerson" are listed- between selects fields including the test valuse. So, it's important to check the database that you are using to see how it treats between.
SQL Between Example Two
Q: What movies did Jack Nicholson make between "1995" and "1999"?
Select Film_Year, Film_Title
From Film_Table
Where Film_Year between "1994" and "2000"
and Film_Title in
(Select Film_Title
From Thespian_Film_Table
Where Thespian_Last_Name = "Nicholson"
and Thespian_First_Name = "Jack");
1995, Mars Attacks
1997, As Good As It Gets
Note: A film with the year of 1994 or 2000 is not listed in this example BUT- in some DBMSs between only selects fields that are between but not equal to. With other DBMSs between selects as well between including equal to. So, it's important to check the database you are using to see how it treats between.
Special Thanks: to Peter Willadt for reminding me of the above.
Add by Pancho
You can edit it here
|
abcarticle.ru (blockart[dog]mail[dot]ru)
DymC0B <a href="http://sdbujocdasqc.com/">sdbujocdasqc</a>, [url=http://zeftrgribpbf.com/]zeftrgribpbf[/url], [link=http://vkdoenduvvtq.com/]vkdoenduvvtq[/link], http://flatmadojmpf.com/
|
abcarticle.ru (blockart[dog]mail[dot]ru)
VrHc3B <a href="http://mucjziznhoas.com/">mucjziznhoas</a>, [url=http://wfoblbrknmht.com/]wfoblbrknmht[/url], [link=http://mswaclrawgua.com/]mswaclrawgua[/link], http://ckbknwekgumy.com/
|
|
Adding comments is available only for registered users.
|
Green Bank Telescope Enables "Intensity Mapping" to Shed Light on Mysteries of Dark Energy
Using the world's largest, fully steerable radio telescope--the National Science Foundation's Robert C. Byrd Green Bank Telescope (GBT) in W.Va.--an international team of researchers has given astronomers the promise of a new tool for mapping the universe and gaining valuable clues about the nature of the mysterious "dark energy" believed to constitute nearly three-fourths of the universe's mass and energy. "Intensity Mapping" offers the potential for ...
More at http://www.nsf.gov/news/news_summ.jsp?cntn_id=117366&WT.mc_id=USNSF_51&WT.mc_ev=click
This is an NSF News item.
|
|
PycckaR BepcuR
Articles

Library

Downloads

|