Subject | AW: [firebird-support] view and computation |
---|---|
Author | Olaf Kluge |
Post date | 2013-07-31T12:00:51Z |
Hello Markus,
Thank you, exactly what I'm looking for!
Best regards.
Olaf
that :)
Have a look at DATEDIFF function:
http://www.firebirdsql.org/refdocs/langrefupd25-intfunc-datediff.html
There's also DATEADD if you want to add some other unit than day to a date:
http://www.firebirdsql.org/refdocs/langrefupd21-intfunc-dateadd.html
HTH,
Markus
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]
Thank you, exactly what I'm looking for!
Best regards.
Olaf
> **integer)
> Hello,
>
>
> in a view, the following expression is possible :
> .(a.eingangsdatum+coalesce(c.zahldauer,0)) as FAE,.
>
> But how can I take the current date in relation? For example:
>
> cast((current_date - (a.eingangsdatum+coalesce(c.zahldauer,0))) as
> as FINYou are trying to subtract a date from another date. Not sure if they like
>
> I would like to calculate when the payment will be due.
>
that :)
Have a look at DATEDIFF function:
http://www.firebirdsql.org/refdocs/langrefupd25-intfunc-datediff.html
There's also DATEADD if you want to add some other unit than day to a date:
http://www.firebirdsql.org/refdocs/langrefupd21-intfunc-dateadd.html
HTH,
Markus
[Non-text portions of this message have been removed]
[Non-text portions of this message have been removed]