IT Community - Software Programming, Web Development and Technical Support

Between & And Clarification

This is a discussion on Between & And Clarification within the Database Support forums, part of the Web Development category; select ename from emp where ename between 'James' and 'Ward' order by ename select ename from emp where ename between '...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Web Development > Database Support

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 08-08-2007, 01:11 AM
vadivelanvaidyanathan vadivelanvaidyanathan is offline
D-Web Genius
 
Join Date: Feb 2007
Posts: 803
vadivelanvaidyanathan is on a distinguished road
Question Between & And Clarification

select ename from emp where ename between 'James' and 'Ward' order by ename

select ename from emp where ename between 'JAMES' and 'WARD' order by ename

select ename from emp where ename between 'J' and 'W' order by ename

Each of these queries retreive different no. of rows. Can anybody clear this out?
__________________
V.Vadivelan

There never a wrong time to do the right thing.
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 08-08-2007, 05:01 AM
Murali Murali is offline
D-Web Master
 
Join Date: Feb 2007
Location: India-Chennai.
Posts: 386
Murali is on a distinguished road
Send a message via AIM to Murali
Default Re: Between & And Clarification

Yes obviously it will return recordset based on the value given in between,
did ur data has same values with different case sensitive like
James, JAMES, JAm,...
__________________
-Murali..
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7. The time now is 04:42 AM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0