Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP 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
Marshal
Posts: 34839
369
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic