Einzelnen Beitrag anzeigen

handson

Registriert seit: 18. Jan 2007
Ort: Delmenhorst
113 Beiträge
 
Delphi 2007 Professional
 
#10

AW: Query wird nicht vom Programm ausgeführt

  Alt 13. Mär 2013, 10:51
Vielleicht liegt das auch den ganzen ORs, die du benutzt. Zumindest bremst man damit die Abfrage auf dem Server aus. Versuch doch mal UNION:

Code:
(select * from prozess_position where status<>100
and Positionen_ID=313
and rueckm=1
and relevant=1
and Eckpunkt_ID=8)
union
(select * from prozess_position where status<>100
and Positionen_ID=313
and rueckm=1
and relevant=1
and Eckpunkt_ID=9)
union
(select * from prozess_position where status<>100
and Positionen_ID=313
and rueckm=1
and relevant=1
and Eckpunkt_ID=12)
probier es doch damit mal aus, vielleicht klappt das ja besser...

Stephan
Stephan Faust
  Mit Zitat antworten Zitat