mysql - How to get maximum no of id exist in one table? -


i want find maximum number of ids present in table. example, have user_views table:

      user_views  -------------------  u_v_id   package_id     1            24    2            24    3            24    4            25    5            25    6            26    7            27 

and packages table:

 package_id      name 

the maximum number of ids present in 1 table 24 , on.

how can write query pull value?

select package_id, count(*) count mytable group package_id order count(*) desc limit 1 

Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -