This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan 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 Android Security Essentials Live Lessons this week in the Android 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
 
Similar Threads
time conversion
Designing distributed prices in Hibernate
JSP Tags
Google Buying Microsoft
repetedly calling a servlet from another servlet