Sample Database
+-------+------+--------------+
| busno | fuel | date |
+-------+------+--------------+
| 1 | 19.6 | 16-09-2002 |
| 1 | 19.6 | 17-09-2002|
| 1 | 22.8 | 18-09-2002|
| 1 | 17.2 | 19-09-2002|
| 1 | 17.2 | 20-09-2002|
| 1 | 17.2 | 21-09-2002 |
| 1 | 17.2 | 22-09-2002|
| 2 | 17.2 | 23-09-2002 |
| 2 | 17.2 | 24-09-2002 |
| 2 | 17.2 | 25-09-2002 |
| 2 | 17.2 | 26-09-2002|
| 2 | 17.2 | 27-09-2002|
| 3 | 17.2 | 28-09-2002 |
| 3 | 19.7 | 29-09-2002 |
assume
A.jsp --> B.jsp
I have retrieved date in web page(say A.jsp) via util date object,now i had retrieved same date on other web page(B.jsp) via request.getParameter(),,,now i want to store that date in database,problem is that request.getParameter() gives
string and in Database i have date DataType ,,so how to convert string date to sql date in
JSP specially,, and after storing date :
I want to add fuel for a particular bus from UserDefined Date to UserDefined date....
I know this query:-select SUM(fuel) from fuel group by busno.
i dont know how to integrate between clause with it..... please help..i have to submit my project,,,asap....
Thanks Jeetendra Ahuja