Fetching Data Between 2 Dates: SQLHome › Forums › Programming › Fetching Data Between 2 Dates: SQL Tagged: date, query, sqlThis topic has 1 reply, 2 voices, and was last updated 12 years, 10 months ago by Basavaraj.Viewing 2 posts - 1 through 2 (of 2 total)AuthorPostsFebruary 9, 2012 at 12:16 pm#1389RoboCopParticipantHow to fetch records between two dates from the database using query..Example: Table name: company +--------+----------------+ | name | jd | +--------+----------------+ | Google | 2010-02-20 | | Oracle | 2010-02-15 | | Microsoft | 2010-02-05 | | Apple | 2010-02-02 | | Technotip | 2010-02-01 | | ebay | 2012-02-09 | +--------+----------------+ February 9, 2012 at 12:21 pm#1390BasavarajMembersql> select * from company where jd between ‘2010-02-01’ and ‘2010-02-15’; +--------+----------------+ | name | jd | +--------+----------------+ | Oracle | 2010-02-15 | | Microsoft | 2010-02-05 | | Apple | 2010-02-02 | | Technotip | 2010-02-01 | +--------+----------------+ AuthorPostsViewing 2 posts - 1 through 2 (of 2 total)You must be logged in to reply to this topic.Log InUsername: Password: Keep me signed inLogin form protected by Login LockdownLog In