This is a discussion on In the WHERE clause what is BETWEEN and IN? within the Database Support forums, part of the Web Development category; In the WHERE clause what is BETWEEN and IN?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, We can use BETWEEN .. AND condition where we dont know the actual search values, so we can use range of values that satisfies the condition. fox example, if want to fetch the employee details who earn more than 10000 and not more than 20000, in this situation we can deploy BETWEEN.. AND condition. Quote:
values but the actual search values with comma seperator. Look at the below given query, this will return the employees who earn 1500 and 10000 salary. Quote:
__________________ Keep smiling... |
| |||
| BETWEEN supplies a range of values while IN supplies a list of values.
__________________ S.VinothkumaR Behind me is infinite power, Before me is Endless Possibility, Around me is Boundless Opportunity, Why should I fear! |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What is the length(picture clause)? | S.Vinothkumar | Database Support | 1 | 10-30-2007 01:17 AM |
| finally clause of a try-catch-finally statement | vigneshgets | Java Programming | 2 | 08-16-2007 07:35 AM |
| What is the difference between a HAVING CLAUSE and a WHERE CLAUSE in SQL Server? | mobilegeek | Database Support | 2 | 08-07-2007 08:04 AM |
| If I return out of a try/finally in C#, does the code in the finally-clause run? | H2o | C# Programming | 1 | 07-22-2007 11:27 PM |