Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

I am not getting a sum for report in java

 
owaisee Akbar
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am writing a query in access which is running in access but when i run that in java it returns null value.


I also have a problem that how can i implement between clause with date.

Another one is that when i ask for date it is in it is in yyyy-mm-dd format i set date in dd-mm-yy format and short. but when i call it it shows first year than month and than day
 
Jeanne Boyarsky
author & internet detective
Sheriff
Posts: 35976
422
Eclipse IDE Java VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Owaisee,
Welcome to Javaranch!

I strongly advise using a prepared statement for this query. Among other things, it allows the driver to handle date format issues.
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!