Hi Bhavna
I think that you can do it yourself
There is something called Non -Equi Joins Which needs the where clause which you want
I think you can use Logical Operators to accomplish what you want
There is one Example of Employee and Salary Tables ( a famous one)
Hope this will help you
Ok lemme give an Example -- Suppose there are two tables with name as Emp and Salary
SELECT E.Last_Name, E.Sal, S.Category
FROM Emp E, Salary S
WHERE E.Sal BETWEEN S.Highest AND S.Lowest
And this example is taking oracle in consideration ..
there might be some other way of using joins in SQL Server
I will have a look and will edit this post once more