Creating a Query

Creating tables and queries
Post Reply
ErbeerichR
Posts: 1
Joined: Tue Dec 08, 2015 9:20 pm

Creating a Query

Post by ErbeerichR »

I am trying to create a Data Base and Query to help keep track of clients who need to be contacted after their first contact. This re-contact should not happen until at least 7 days after the initial contact.

I want the query to sort them by the initial contact date (which I have no problem doing) but only pull list the clients who's 'hold date' is more than 7 days old, based on the current date. IE, when I open the query, it automatically pulls up the data.

Thanks for any assistance.
Roy
OpenOffice 4.0.0 on Windows 7 Professional
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: Creating a Query

Post by Villeroy »

Just like with any other database:

Code: Select all

SELECT * FROM "Clients" WHERE DATEDIFF('dd',"Date",CURRENT_DATE)>=7;
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
Post Reply