Forum Moderators: coopster
can anyone tell me if I can make a query in mysql of the following type:
select id,msg,topic,COUNT(*) as stats from table GROUP By topic WHERE stats > 20
I only want to select topics that have over 20 msg.
or may be I can do ORDER BY stats DESC to show the topics that have the highest msg.
I think this is a very frequentry requiered thing for webmasters.
Also is there a way in mySQL i can make a query of the following kind.
select * from table where field is empty.
I am sorry I think my msg is not very clearly explaining what I want but I am sure someone out here will surely show me the way.
Thanks
Also is there a way in mySQL i can make a query of the following kind.select * from table where field is empty.
Use:
SELECT * FROM {tableName} WHERE {fieldName} = ''