Home » RDBMS Server » Server Administration » 'where' condition...
'where' condition... [message #371975] Fri, 29 December 2000 00:03 Go to next message
xingxing3
Messages: 2
Registered: December 2000
Junior Member
EXEC this sql and recieve ERROR Msg. pls look it and find some mistake.. thanks a lot!
------
select a.ID, a.Unit, count(a.Serial)
from Table_1 a
where (select count(c.Serial)
from Table_2 c
where a.Serial=c.Serial) >1
group by a.ID, a.Unit
Re: 'where' condition... [message #371978 is a reply to message #371975] Fri, 29 December 2000 09:14 Go to previous message
me
Messages: 66
Registered: August 2000
Member
select a.ID, a.Unit, count(a.Serial)
from Table_1 a,
Table_2 c
where a.Serial=c.Serial
group by a.ID, a.Unit
having count(a.Serial) > 1
Previous Topic: Dealing with Documents
Next Topic: : How to calculating the max,min,avg of a column from a given query?
Goto Forum:
  


Current Time: Fri May 17 06:33:29 CDT 2024