![]() |
Re: ADO / DBGrid / Query / mehrere Tabellen
SQL-Code:
SELECT *, iif(Leihe.Platte IS NULL,'Nein','Ja') AS Ausleihe
FROM ((((Platte AS t1 INNER JOIN Interpret AS t2 ON t1.interpret = t2.id) INNER JOIN Label AS t3 ON t1.label = t3.id) INNER JOIN Stil AS t4 ON t1.stil = t4.id) INNER JOIN Qualität AS t5 ON t1.qualität = t5.id) LEFT JOIN (SELECT DISTINCT Platte FROM Leihe) Leihe ON t1.id = Leihe.platte WHERE platte LIKE '%blabla%' OR iif(Leihe.Platte IS NULL,'Nein','Ja') = 'Ja' OR CODE = :suchid |
Re: ADO / DBGrid / Query / mehrere Tabellen
Omata du bist mein Held!!!!!!!!!!! *freu
|
Re: ADO / DBGrid / Query / mehrere Tabellen
[OT] Bei der Klammerung muss ich eher an LISP denken als an SQL :mrgreen: [/OT]
|
Alle Zeitangaben in WEZ +1. Es ist jetzt 22:29 Uhr. |
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz