Delphi-PRAXiS

Delphi-PRAXiS (https://www.delphipraxis.net/forum.php)
-   Datenbanken (https://www.delphipraxis.net/15-datenbanken/)
-   -   Delphi Iif Abfrage Zuweisung in ein anderes Feld (https://www.delphipraxis.net/124456-iif-abfrage-zuweisung-ein-anderes-feld.html)

OS299 19. Nov 2008 09:37

Datenbank: Firebird • Version: 2.0 • Zugriff über: SQL

Iif Abfrage Zuweisung in ein anderes Feld
 
Hallo, ist es bei der iif Abfrage welche Firebird 2.0 bietet auch möglich, dass Ergebniss einer anderen Zelle zu beinflussen. z.b:

SQL-Code:
VVI.Name, (select iif(Count(VVI.Counter) = 0, VVI.Name := 'Test', Count(VVI.Counter))
     From Vor_Vorgang VVI
     Where VVI.Vorgangsart = 20 and VVI.Kontakt = VV.Kontakt
     and VVI.DATUM >=:Z1 AND VVI.DATUM <=:Z2) >=:P1

mkinzler 19. Nov 2008 09:41

Re: Iif Abfrage Zuweisung in ein anderes Feld
 
SQL-Code:
... VVI.Name, (select iif(Count(VVI.Counter) = 0, VVI.Name = 'Test', Count(VVI.Counter)) ...

OS299 19. Nov 2008 09:56

Re: Iif Abfrage Zuweisung in ein anderes Feld
 
Danke ! :-D


Alle Zeitangaben in WEZ +1. Es ist jetzt 21:35 Uhr.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024 by Thomas Breitkreuz