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


Hallo Stefan

SELECT
"tab_Rechnung02"."Rechnungsnr.",
(SELECT "check_MahnDat" FROM "tab_RechSuch" WHERE "ID" = FALSE) AS
"check_MahnDat1",
(SELECT CASEWHEN ("check_MahnDat1" = TRUE, (SELECT "Mahndatum" FROM
"tab_Rechnung02" WHERE "Mahndatum" <= CURRENT_DATE) AS "Mahndatum_erf",
"Mahndatum")  FROM "tab_Rechnung02") AS "Mahndatum1"
FROM "tab_Rechnung02"


Nur kurz (wenig Zeit): Die Unterabfrage zu "Mahndatum1" bezieht sich bei Dir direkt auf ein Alias, das Du davor erstellt hast. Das ist da unbekannt. (SELECT CASEWHEN ((SELECT "check_MahnDat" FROM "tab_RechSuch" WHERE "ID" = FALSE) = TRUE, (SELECT "Mahndatum" FROM
"tab_Rechnung02" WHERE "Mahndatum" <= CURRENT_DATE) AS "Mahndatum_erf",
"Mahndatum")  FROM "tab_Rechnung02")

Dann kennt die Bedingung auch das, was Du über ein Alias beschreibst.

Gruß

Robert
--
Homepage: https://www.familiegrosskopf.de/robert

--
Liste abmelden mit E-Mail an: users+unsubscribe@de.libreoffice.org
Probleme? https://de.libreoffice.org/hilfe-kontakt/mailing-listen/abmeldung-liste/
Tipps zu Listenmails: https://wiki.documentfoundation.org/Netiquette/de
Listenarchiv: https://listarchives.libreoffice.org/de/users/
Datenschutzerklärung: 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.