![]() |
AW: SQL Script optimieren damit es schneller geht
Da exists sowieso nur ein read macht (sofern die Indexe in Tabelle2 auf status und conummer existieren,
ist IMHO first 1 überflüssig.
SQL-Code:
Frank
select t1.masternummer
from tabelle1 t1 where t1.status <> 'N' and t1.storno is null and not exists ( select * from tabelle2 t2 where t2.status = t1.status and t2.conummer = t1.conummer ) |
Alle Zeitangaben in WEZ +1. Es ist jetzt 19:03 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 by Thomas Breitkreuz