Friday, February 24, 2012

Group By

create table my_table (
col1 char10,
col2 char10,
col3 char 10)
select col1, count(*)
from my_table
group by col1
--Now, from this group by results, I want to eliminate all the records where
col2 is Null. Can I accomplished this in the same group by query above?
Remember, I want to eliminate the Nulls after the group by operation been
done, NOT before.
Thank you.
SandraSandra,
the request makes no sence to me. Pls provide test data and expected
results|||Please post your question only once.

No comments:

Post a Comment