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


Bonjour,

Ne pouvant trop compter sur le COUNT(*) de Base, j'essaie autre chose...

Je cherche à créer une requête SQL sous Base qui me rajoute un champ "calculé", le calcul étant la valeur max de ce champ pour la même valeur d'un autre champ.

Depuis :

| nom   | date_absence|
| Larry | 05/09/2020  |
| Sarah | 07/09/2020  |
| Sarah | 12/09/2020  |
| Sarah | 18/09/2020  |
| Sarah | 01/10/2020  |
| Anna  | 25/09/2020  |
| Anna  | 27/09/2020  |
| Anna  | 05/10/2020  |
| Henri | 21/09/2020  |
| Henri | 25/09/2020  |

Je souhaite sortir ça :

| nom   | date_absence| max_absence |
| Larry | 05/09/2020  | 05/09/2020  |
| Sarah | 07/09/2020  | 01/10/2020  |
| Sarah | 12/09/2020  | 01/10/2020  |
| Sarah | 18/09/2020  | 01/10/2020  |
| Sarah | 01/10/2020  | 01/10/2020  |
| Anna  | 25/09/2020  | 05/10/2020  |
| Anna  | 27/09/2020  | 05/10/2020  |
| Anna  | 05/10/2020  | 05/10/2020  |
| Henri | 14/09/2020  | 25/09/2020  |
| Henri | 25/09/2020  | 25/09/2020  |

Je tomberai peut-être sur le même problème car ma table est issue de CSV, mais j'essaie...


Merci

--
Envoyez un mail à users+unsubscribe@fr.libreoffice.org pour vous désinscrire
Les archives de la liste sont disponibles à https://listarchives.libreoffice.org/fr/users/
Privacy Policy: https://www.documentfoundation.org/privacy

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.