-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Criteria and Date Arithmetic
PostPosted: Tue Mar 25, 2008 4:27 pm 
Newbie

Joined: Tue Mar 25, 2008 4:14 pm
Posts: 1
Hi there,

I have an entity with a start date and a term in months. I need to create a query that will return me all rows that have surpassed their term.

eg. I have a start date of 2007-01-01 and my term is 6 months, I need the query to add the 6 months to the start date and determine if it is before the system date. This needs to be done for every row in the table.

Anyone have ideas how this can be achieved, if at all.

Thanks in advance.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.