using subquery in MYSQL4.0
Posted by: joane silviyaj
Date: November 19, 2004 04:21AM

Hai...,
I am using MYSQL Database....
I have table with single column as integer data type....
I wrote a query like this "select max(count(tracknum)) from count groupby tracknum"
The data within that will be like this
Table Name: Count
tracknum
----
122
133
122
133
143
122
150
122

I want to get the maximum count of the number repeated and that respective number.
Say o/p i want like this :
tracknum max(tracknum)
-------------------
122 4

Options: ReplyQuote


Subject
Written By
Posted
using subquery in MYSQL4.0
November 19, 2004 04:21AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.