User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the MySQL section within the Web Development category of DaniWeb, a massive community of 422,910 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,347 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our MySQL advertiser: Programming Forums

get count on selected query of count ??

Join Date: Apr 2008
Posts: 295
Reputation: tesuji is an unknown quantity at this point 
Rep Power: 1
Solved Threads: 41
tesuji tesuji is offline Offline
Posting Whiz in Training

Re: get count on selected query of count ??

  #4  
May 22nd, 2008
  1. ---- Line 13 of previous code listing:
  2.  
  3. SELECT n, 'Total ', 'counts', sum(st) FROM subtotals
  4.  
  5. ---- must be changed to:
  6.  
  7. SELECT n, 'Total ', 'counts', sum(st) FROM subtotals GROUP BY n

krs,
tesu
Last edited by tesuji : May 22nd, 2008 at 6:23 am.
Reply With Quote  
All times are GMT -4. The time now is 1:25 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC