Tech
Forums
Jobs
Books
Events
Interviews
Live
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
4
Reply
How to search date converted to nvarchar in sql statement
Abraham Olatubosun
Oct 27 2016 2:32 AM
286
Reply
Dear All,
I want to appreciate this notable community for all the speedy tips they have given to me this increase my learning and development time.
i currently have this challenge with my SQL script, i want to extract data between 01-01-2008 and 31-12-2008 the result did not display all data in 2008 but show date from 2010 till 2016.
this my code
select * from dtl_patientRegister where left(convert(nvarchar,ARTStartDate,110),10) between '01-01-2008' and '31-12-2008'
still am not getting the expected result, please kindly share with me any other way possible.
thank you all
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
4
)
Next Recommended Forum
How to find experience of person from date of joining to pre
Why we use joins in SQL?