This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes JDBC and the fly likes Question for two queries Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Databases » JDBC
Bookmark "Question for two queries" Watch "Question for two queries" New topic
Author

Question for two queries

M Bryan
Ranch Hand

Joined: Jun 15, 2011
Posts: 64
Hi,

i have two questions:

1) I have a table with information about prices. The prices change a lot, so i insert new information about them every few seconds. I want to do a SELECT with the price for every product. When every timestamp would be the same it would be easy, but how do i do this when the highest timestamp for every product differs?
2) I want to archive my price information, but don't need an entry for every second, an hour would be enough. Is there an easy way to remove entries if threre is alreays an entry for a specified hour?

Thank you
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Question for two queries