applied the command
select emp_name,emp_state from Code where joining_date between '01/01/2012' and '06/02/2012'
as you wrote above and Entered the same values you inserted..
my table design is:
Column Name Data Type Allow Null
emp_name | nchar(30) |
emp_state | nchar(50)|
joining_date| date|
I kept all values not null.
Therefore I got Top 3 data insterted in your data table as answer as a correct output.
Overall,I suggest you to
Use date as Datatype