Hi.

There are 2 common ways
1. Create global temporary table 
Do INSERT INTO T(DSTART, DEND) SELECT …
and then do simple join with this table
2. Use derived table e.g.
SELECT
DATENLOGGING.* …
FROM
(SELECT D.DSTART, D.DEND FROM TABLED) X
LEFT JOIN DATENLOGGING ON DATENLOGGING.DATUMZEIT>=X. DSTART AND 
DATENLOGGING.DATUMZEIT<=X.DEND
WHERE
DATENLOGGING.KEY IS NOT NULL /* do hidden inner join by providing some not 
nullable field check */

Regards,
Karol Bieniaszewski
  • [firebi... gregorkob...@yahoo.com [firebird-support]
    • OD... Karol Bieniaszewski liviusliv...@poczta.onet.pl [firebird-support]
      • ... blackfalconsoftw...@outlook.com [firebird-support]
        • ... Helen Borrie hele...@iinet.net.au [firebird-support]
          • ... blackfalconsoftw...@outlook.com [firebird-support]
            • ... Helen Borrie hele...@iinet.net.au [firebird-support]

Reply via email to