dbTalk Databases Forums  

Problem of max(count(*))

comp.databases.theory comp.databases.theory


Discuss Problem of max(count(*)) in the comp.databases.theory forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Alex
 
Posts: n/a

Default Problem of max(count(*)) - 10-02-2003 , 01:00 AM






Can someone tell me why the following sql statement cannot retrieve the
maximum count of the record:

SELECT col, max(count(*)) FROM table
GROUP BY col

And also, can I use one sql statement to retrieve the maximum count of the
record? If not, how?

Thank you more!!



Reply With Quote
  #2  
Old   
Kristian Damm Jensen
 
Posts: n/a

Default Re: Problem of max(count(*)) - 10-02-2003 , 01:25 AM






"Alex" <ricky.chen (AT) i-cable (DOT) com> skrev i en meddelelse
news:blgftc$pi8$1 (AT) news (DOT) hgc.com.hk...

Please cross-post rather than posting the same query twice. See my answer in
comp.databases.


--
Kristian Damm Jensen
damm (at) ofir (dot) dk



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.