kondratus
14th February 2004, 09:45
Hello,
I have following query, he finds several records , but if delete the commentary that I get 'No rows selected'. Where problem?
select ticst001.pdno, ticst001.pono,
min(tisfc010.opno):min_opno,tisfc010.tano
from tiitm001, ticst001, tisfc001, tirou001, tisfc010
where tiitm001.kitm =1
and ticst001.qucs = 0
and tisfc001.osta > 1 and tisfc001.osta < 6
and tisfc001.pdno between :pdno.f and :pdno.t
and tisfc010.qrjc = 0
and tisfc010.qcmp = 0
and tiitm001.item = ticst001.sitm
and ticst001.pdno = tisfc001.pdno
and ticst001.pdno = tisfc010.pdno
and ticst001.cwar = tirou001.wipw
and tirou001.cwoc = tisfc010.cwoc
and ticst001.opno = 0
and(
(tiitm001.dsca like ".*aaaaaa.*" and tisfc010.tano = 2525 )
| or
| (tiitm001.dsca like ".*bbbbbb.*" and tisfc010.tano = 2519)
)
group by ticst001.pdno, ticst001.pono, tisfc010.tano
I have following query, he finds several records , but if delete the commentary that I get 'No rows selected'. Where problem?
select ticst001.pdno, ticst001.pono,
min(tisfc010.opno):min_opno,tisfc010.tano
from tiitm001, ticst001, tisfc001, tirou001, tisfc010
where tiitm001.kitm =1
and ticst001.qucs = 0
and tisfc001.osta > 1 and tisfc001.osta < 6
and tisfc001.pdno between :pdno.f and :pdno.t
and tisfc010.qrjc = 0
and tisfc010.qcmp = 0
and tiitm001.item = ticst001.sitm
and ticst001.pdno = tisfc001.pdno
and ticst001.pdno = tisfc010.pdno
and ticst001.cwar = tirou001.wipw
and tirou001.cwoc = tisfc010.cwoc
and ticst001.opno = 0
and(
(tiitm001.dsca like ".*aaaaaa.*" and tisfc010.tano = 2525 )
| or
| (tiitm001.dsca like ".*bbbbbb.*" and tisfc010.tano = 2519)
)
group by ticst001.pdno, ticst001.pono, tisfc010.tano