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 423,750 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,311 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
Views: 940 | Replies: 2 | Solved
Reply
Join Date: Feb 2008
Posts: 7
Reputation: jimesten is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
jimesten's Avatar
jimesten jimesten is offline Offline
Newbie Poster

Pivot table report

  #1  
Apr 17th, 2008
I've been away from sql for quite a well and need a little push to get restarted. Need to report out of a single table, with values coming out of only two columns.

Need to group items from column 1 as the left column in the ouput table with totals for each type in column two forming the row for the grouped item. To look something like:

Category Type 1 Type 2 Type 3 Type 4

abc 5 3 1 40
def 10 8 8 5
---------------------------------------------------------------
Total 15 11 9 45


Should be easy stuff, right? I don't have the option of pulling the query into a script otherwise this would be almost painfully easy in php or perl

thanks much!!

Jim
AddThis Social Bookmark Button
Reply With Quote  
Join Date: Sep 2007
Location: North Bay Ontario
Posts: 176
Reputation: trudge is an unknown quantity at this point 
Rep Power: 2
Solved Threads: 20
trudge trudge is offline Offline
Junior Poster

Re: Pivot table report

  #2  
Apr 20th, 2008
Amer Neely - Web Mechanic
"Others make web sites. We make web sites work!"
Reply With Quote  
Join Date: Feb 2008
Posts: 7
Reputation: jimesten is an unknown quantity at this point 
Rep Power: 0
Solved Threads: 1
jimesten's Avatar
jimesten jimesten is offline Offline
Newbie Poster

Re: Pivot table report

  #3  
Apr 20th, 2008
Thanks for the pointer to the dev zone at mysql.com. I think I followed enough of that to make some headway!!

thanks much,

Jim
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.

DaniWeb MySQL Marketplace
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

Thread Tools Display Modes

Similar Threads
Other Threads in the MySQL Forum

All times are GMT -4. The time now is 1:42 am.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC