This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes JSP and the fly likes Max(Date) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » JSP
Bookmark "Max(Date)" Watch "Max(Date)" New topic



Joined: Jan 22, 2002
Posts: 5
i wanna select the maximum date from the database.
my database is MYSQL and i access my database using JSP.
I tried the following the query
select Max(WeeklyDate) from tblWeeklyReport;
Weekly date is a coloumn in the table tblWeeklyReport.
but it's giving the following error
coloumn not found
so cud someone suggest me as to how to retrieve the maximum date from the dates already stored in the database thru JSP.
Madhav Lakkapragada
Ranch Hand

Joined: Jun 03, 2000
Posts: 5040
your name deosn't agree with the javaranch guidelines. Please take a moment and re-register after reviewing the guidelines at
thanks for your cooperation.
- satya

Take a Minute, Donate an Hour, Change a Life
Have you checked out Aspose?
subject: Max(Date)
It's not a secret anymore!