Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> SQL : How to formulate the query
Hi
presume i have these 2 fields in a table :
F1 F2
=== ===
1 a 1 c 2 a 2 b 3 b 3 c 4 c 4 a
I would like to get a stat of "how many with 'a' have 'b' or 'c' "
eg
a with b with b = 1 c = 1
May i know how should i roughly come out with the SQL ?
Thanks
Boon Yiang
Received on Wed Dec 01 1999 - 19:19:25 CST