on ‎2018 Jul 12 3:58 PM
I want to fetch all price row which have difference of start date and end date greater than 10 days. How can I do that?
Request clarification before answering.
Hi Krishn,
Please try below query:
SELECT *
FROM {PriceRow as p}
WHERE {p.endTime} > {p.startTime} - INTERVAL 10 DAY
The PriceRow extends PDTRow which has startTime/endTime fields instead of startDate/endDate.
Hope this helps.
Best Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
If the database is oracle..
select * from {PriceRow} where to_date( {starttime},'dd-MM-yyyy')>=to_date(sysdate-10,'dd-MM-yyyy')
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.