MySQL Group and Count? - KingPin's Forum
KPsDenKPsDen ArmoryImage HostingLegendz text RPGIp DisplayIRCFlash Arcade
Forum
      |        
Register
         Natural Gas Treatment & Processing (Posted By:JohnDavid1 - Replies:0 - Views:1)      « »     Nice models and free models, new site! (Posted By:3d4ya - Replies:0 - Views:2)      « »     Giving away my account (Posted By:Headshot - Replies:0 - Views:3)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:10)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:9)      « »     we have cheap shoes,example :gucci sneaker,air force... (Posted By:jimei - Replies:0 - Views:11)      « »     Lol thx (Posted By:vohrtechs - Replies:16 - Views:165)      « »     Networking not working (Posted By:vohrtechs - Replies:2 - Views:28)      « »     [epic] post you pic thread [/epic] (Posted By:Bionuclear - Replies:263 - Views:6055)      « »     
KingPin's Forum
 
K.P.s.N. Register vbBux / KPs Mall Bugs Blogs FAQ Search Today's Posts Mark Forums Read Donate
Go Back   KingPin's Forum > KP's Network Forum > RSS News
Reload this Page MySQL Group and Count?
 


RSS News This is a discussion on MySQL Group and Count? in the RSS News;
Description: I'm trying to make a statement that selects rows during a certain time period (working fine) and groups them by ...

Reply
 
LinkBack Thread Tools
MySQL Group and Count?
(#1 (permalink))
Old
nkbsbl is Offline
Private
Points: 195, Level: 2 Points: 195, Level: 2 Points: 195, Level: 2
Activity: 0% Activity: 0% Activity: 0%
nkbsbl is an unknown quantity at this point
 
nkbsbl
Rupees: 163.20
Bank: 500.00
Total Rupees: 663.20
 
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Join Date: Dec 2007
MySQL Group and Count? - December 13th, 2007

I'm trying to make a statement that selects rows during a certain time period (working fine) and groups them by a certain category and displays them in the order of how many of each of that category. For example:

SELECT *
FROM `gameplays`
WHERE time >=1197442800
GROUP BY `gid`

I would like this statement to also return the results in the order of how many GID's for each grouping...Is that possible?

 
Reply With Quote
Reply

Bookmarks

Tags
count, group, mysql

Thread Tools

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Rupees Per Thread View: 1.00
Rupees Per Thread: 15.00
Rupees Per Post: 5.00
Forum Jump



Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
Copyright 2004-2009 KPsN


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81