|
Antwort: Re: Subtracting fields in the Where Clause: msg#00089jakarta.turbine.torque.user
Hi, you should consider defining a db view returning the computed value to_days(s.end_of_subscription_date) - to_days(SYSDATE()) as expiration_days. You could then simplify your query to look like this: SELECT user_id FROM details d, view_subscribers v WHERE v.app_id = d.app_id AND v.expiration_days = d.end_warning which is easy to transform to torque queries. Hope this helps Arne ********************************************************************** http://www.pta.de Mit 1051 Erfahrungsberichten aus 35 Jahren erfolgreicher Projektarbeit! ********************************************************************** |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Antwort: Missing type for TIMESTAMP in jdbc task.: 00089, Thomas Fischer |
|---|---|
| Next by Date: | AW: Don't get Torque's loggin to work: 00089, Vitzethum, Daniel |
| Previous by Thread: | RE: Using torque-gen from a java programi: 00089, Thomas Fischer |
| Next by Thread: | Re: Antwort: Re: Subtracting fields in the Where Clause: 00089, Ruy Diaz Jara |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |