raj_2006
01-11-2007, 01:37 PM
Hello,
I have a table where salary is a field with integer type.
I have values like
salary type
10000 Permanent
20000 Permanent
30000 Permanent
95000 Temporary
Now my query is like
select * from job_list where type='Temporary' or type='Contract' and salary>='10000' and salary<='30000' order by salary desc
Ihave tried this above query with BETWEEN too but still fetching 1 row where it should fetch 0 row
Please suggest as I am really astonished.
Thanks
Raj
I have a table where salary is a field with integer type.
I have values like
salary type
10000 Permanent
20000 Permanent
30000 Permanent
95000 Temporary
Now my query is like
select * from job_list where type='Temporary' or type='Contract' and salary>='10000' and salary<='30000' order by salary desc
Ihave tried this above query with BETWEEN too but still fetching 1 row where it should fetch 0 row
Please suggest as I am really astonished.
Thanks
Raj