[Solved] FireBird, Libreoffice Base DATEDIFF

Discuss the database features
Post Reply
marcosAoo
Posts: 3
Joined: Sun Jun 16, 2019 3:34 pm

[Solved] FireBird, Libreoffice Base DATEDIFF

Post by marcosAoo »

Good Morning,

Please, could you give me an example of DATEDIFF, in LIBREOFFICE BASE with FIREBIRD?

HOW WOULD YOU LIKE A QUESTION IN LIBREOFFICE BASE FIREBIRD to know the current age?

Attachment example file
datediff.odb
Libreoffice BASE FIREBIRD
(3.46 KiB) Downloaded 268 times
Last edited by marcosAoo on Mon Jun 17, 2019 6:26 pm, edited 1 time in total.
LIBREOFFICE 6.1.6.3 on LINUX MINT 17.2
User avatar
RoryOF
Moderator
Posts: 34618
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: FireBird, Libreoffice Base DATEDIFF

Post by RoryOF »

Apache OpenOffice 4.1.15 on Xubuntu 22.04.4 LTS
marcosAoo
Posts: 3
Joined: Sun Jun 16, 2019 3:34 pm

Re: FireBird, Libreoffice Base DATEDIFF

Post by marcosAoo »

in that link that you mention, there is no answer
LIBREOFFICE 6.1.6.3 on LINUX MINT 17.2
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: FireBird, Libreoffice Base DATEDIFF

Post by Villeroy »

Works in direct SQL mode (menu:Edit>"Run SQL directly")

Code: Select all

SELECT "name", datediff(day from "date1" to CURRENT_DATE)AS "Days" FROM "T1"
https://www.firebirdsql.org/refdocs/lan ... ediff.html
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
User avatar
robleyd
Moderator
Posts: 5084
Joined: Mon Aug 19, 2013 3:47 am
Location: Murbko, Australia

Re: FireBird, Libreoffice Base DATEDIFF

Post by robleyd »

An answer that addresses both parts of the question has been posted on AskLO
Cheers
David
OS - Slackware 15 64 bit
Apache OpenOffice 4.1.15
LibreOffice 24.2.2.2; SlackBuild for 24.2.2 by Eric Hameleers
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: FireBird, Libreoffice Base DATEDIFF

Post by Villeroy »

If you need an alternative to embedded HSQL, external HSQL2 is the way to go. HSQL2 provides a lot more useful features and plays very well with the Base frontend. Embedded Firebird is not production ready.
Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
marcosAoo
Posts: 3
Joined: Sun Jun 16, 2019 3:34 pm

Re: FireBird, Libreoffice Base DATEDIFF

Post by marcosAoo »

Villeroy wrote:Works in direct SQL mode (menu:Edit>"Run SQL directly")

Code: Select all

SELECT "name", datediff(day from "date1" to CURRENT_DATE)AS "Days" FROM "T1"
https://www.firebirdsql.org/refdocs/lan ... ediff.html
thank you VILLEROY

thank you worked
LIBREOFFICE 6.1.6.3 on LINUX MINT 17.2
Post Reply