Date: prev next · Thread: first prev next last
2018 Archives by date, by thread · List index



----Origineel Bericht----
Van : aleidus@xs4all.nl
Datum : 05/04/2018 13:02
Aan : users@nl.libreoffice.org
Onderwerp : [nl-users] Libreoffice BASE sql bepalen van leeftijd

Beste mensen,

Hallo Aleidus

Jaarlijks willen we de mensen die 65, 70, 75, 80 enz verrassen. Hoe kan 
ik dat bepalen.

Nu heb ik met SQL het volgende

SELECT "Voornaam", "Tvg", "Naam", "Geb.datum" FROM "AOW_lijst" ORDER BY 
"Geb.datum" DESC

Graag zie ik hier suggesties tot oplossing tegemoet.



Ik heb als laatste kolom Leeftijd toegevoegd:

SELECT "Voornaam", "Tvg", "Naam", "Geb.datum",DATEDIFF( 'year', "Geb datum", CURRENT_TIMESTAMP ) AS 
"Leeftijd"  FROM "AOW_lijst" ORDER BY "Geb.datum" DESC

kolom Leeftijd wordt berekend middels het DATEDIFF functie

Ik hoop dat je hiermee verder kunt.
/Rob

-- 
Unsubscribe instructions: E-mail to users+unsubscribe@nl.libreoffice.org
Posting guidelines + more: https://wiki.documentfoundation.org/Netiquette
List archive: https://listarchives.libreoffice.org/nl/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.