Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
![]() |
![]() |
Home -> Community -> Usenet -> c.d.o.misc -> Count?
PROBLEM:
Count how many of each of table 1 is in table 2.
Simple right? I just can't get it.
Table 1
ID Field1 1 apple 2 bat 3 cat Table 2 ID Field15 1 apple juice 2 apple cider 3 apple 4 bat 5 baseball bat 6 cat 7 cat womanDESIRED QUERY RESULTS:
__________________________________________________
Data Count apple 3 bat 2 cat 2COMMENTS: I have been able to count each table separately,
________________________________________________
SELECT Table1.Field1, Count(*) AS OrderCount
FROM Table1.Field1
GROUP BY Table1.Field1;
but combining them to get the desired result eludes me.
Any help is appreciated.
Thanks in advance:) Received on Mon May 17 1999 - 13:43:25 CDT
![]() |
![]() |