sql - Select between varchar as a date returns null -


i have table attendance_sheet , has column string_date varchar.

this inside table data.

id | string_date  | pname  1  | '06/03/2013' | 'sam' 2  | '08/23/2013' | 'sd' 3  | '11/26/2013' | 'rt' 

i try query using range.

select * attendance_sheet string_date between '06/01/2013' , '12/31/2013' 

then returns data.. when try query using this

select * attendance_sheet string_date between '06/01/2013' , '03/31/2014' 

it did not return results...

it can fixed without changing column type example string_date varchar changed date?

does has idea case? appreciated, in advance ..

use strftime

select * attendance_sheet strftime(string_date,'%m/%d/%y') between '2013-06-01' , '2013-31-21' 

Comments

Popular posts from this blog

.htaccess - First slash is removed after domain when entering a webpage in the browser -

Automatically create pages in phpfox -

c# - Farseer ContactListener is not working -