aspose file tools*
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
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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Question for two queries