The moose likes Servlets and the fly likes SQL Query to sort the date by month and year udint the date format in MS Acess Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Servlets
Reply Bookmark "SQL Query to sort the date by month and year udint the date format in MS Acess" Watch "SQL Query to sort the date by month and year udint the date format in MS Acess" New topic
Author

SQL Query to sort the date by month and year udint the date format in MS Acess

Amit Roy
Ranch Hand

Joined: Oct 10, 2000
Posts: 132
hello Frns
I am trying to retrive data from MS Acess databse by Date. My date field is in the following format in my table (MM/DD/YY) i want to sort the records based on year and month ie i want to use the date and year in my WHERE clause does ne 1 know to do this i have to use the date format that is already present kindly help
URGENT
Amit

<I>Chance Favours the Prepared minds"</I>
Frank Carver
Sheriff

Joined: Jan 07, 1999
Posts: 6913
This is a database question rather than one about servlets and JSP, so I've moved it to the JDBC forum.


A Convergent Visionary ~ Frank's Punchbarrel Blog ~ LinkedIn profile
 
jQuery in Action, 2nd edition
 
subject: SQL Query to sort the date by month and year udint the date format in MS Acess
 
Threads others viewed
Date functions
Collision of Date format between java.sql and SQL Server
SQL Query to sort the date by month and year udint the date format in MS Acess
How to convert java.util.Calendar in JSTL?
How to use the year-from-dateTime function
IntelliJ Java IDE