I am writing this sql to dynamically calculate certain number of days as below. But I don't know how to make it work because I keep getting the error.
select Current Date + ( Dynamic numbr of days calculation here ) from TableName
Usually all the guides shows examples as Current Date + 1 Day (this works but not the above) Any ideas how can I get it to work from ?
SELECT CURRENT_DATE + (your dynamic numeric field) DAYS FROM FILE_NAME
Example based on AS400:
1)
SELECT CURDATE() + (FLDA) DAYS FROM FILEA
2)
SELECT CURDATE() + 8 DAYS FROM FILEA
select Current Date + Dynamic numbr DAYS FROM TableName
e.g.
select Current Date + 15 DAYS from TableName
here 15 is dynamic number.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With