Dear All,
How are you doing? After a long time I am back again because I need help from you all expert. Please advise me, my queries is given below.
I have a table with employee_name which contain the field name empFirstName, empLastName, empAges, empMinExp, empMaxExp, empCTC. Etc. The employee can only select only number with out any fraction value. Like 1, 2,3, 4,5 etc. So, the problem is that when I want to fetch result by parameter min and max value of the employee I am not able to fetch the exact result. Eg.
John Peru1 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
John Peru2 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
John Peru3 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
Kin Kum 25yrs Min: 3 yrs Max: 5 yrs 3Lacs
Dem Fu 23yrs Min: 2yrs Max: 3 yrs 4Lacs
If, I want fetch the employee which are having minimum experience 1yrs upto 3 yrs of experience. I write the query as below,
Select * from employee_name where empMinExp> 1 and empMaxExp<=3
but here the query also fetch employee who entered minimum experience as 3 yrs. So, I am not able to get the exact result as per my query. Please help me in resolving the solution. Thanking you in advance for you kind cooperation and supports.
Regards,
Robindra Singha
How are you doing? After a long time I am back again because I need help from you all expert. Please advise me, my queries is given below.
I have a table with employee_name which contain the field name empFirstName, empLastName, empAges, empMinExp, empMaxExp, empCTC. Etc. The employee can only select only number with out any fraction value. Like 1, 2,3, 4,5 etc. So, the problem is that when I want to fetch result by parameter min and max value of the employee I am not able to fetch the exact result. Eg.
John Peru1 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
John Peru2 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
John Peru3 24 yrs Min: 1 yrs Max: 3 yrs 2Lacs
Kin Kum 25yrs Min: 3 yrs Max: 5 yrs 3Lacs
Dem Fu 23yrs Min: 2yrs Max: 3 yrs 4Lacs
If, I want fetch the employee which are having minimum experience 1yrs upto 3 yrs of experience. I write the query as below,
Select * from employee_name where empMinExp> 1 and empMaxExp<=3
but here the query also fetch employee who entered minimum experience as 3 yrs. So, I am not able to get the exact result as per my query. Please help me in resolving the solution. Thanking you in advance for you kind cooperation and supports.
Regards,
Robindra Singha
Comment