![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
select * from tableA, tableB where tableA.num=tableB.order and tableA.num in ( select tableB.order, sum(tableB.ok) as s_ok from tableA, tableB where tableB.order=tableA.num and tableB.cust_no=4895 and s_ok<5 ) ------------------------------------------------------------------ but it is not possible Can anyone help me? |
#3
| |||
| |||
|
|
I need some help. The following query works perfectly: ------------------------------------------------------------------ select * from tableA, tableB where tableA.num=tableB.order and tableA.num in ( select tableB.order from tableA, tableB where tableB.order=tableA.num and tableB.cust_no=4895 ) |
|
I need to do the following: ------------------------------------------------------------------ select * from tableA, tableB where tableA.num=tableB.order and tableA.num in ( select tableB.order, sum(tableB.ok) as s_ok from tableA, tableB where tableB.order=tableA.num and tableB.cust_no=4895 and s_ok<5 ) |
![]() |
| Thread Tools | |
| Display Modes | |
| |