If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Data Access, Manipulation & Batch Languages > ANSI SQL > SQL Term and Example?

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 12-02-09, 23:32
Nebraska_God Nebraska_God is offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Question SQL Term and Example?

What is the term for a query that returns a two dimensional report? The values would be the sum of some field. I added an example below. I'm assuming once I know the term I can search for an example but if you have one handy I would appreciate it.

Month test1 test2 test3 total
Jan 5 10 6 21
Feb 1 0 5 6
Mar 9 12 0 21
Reply With Quote
  #2 (permalink)  
Old 12-03-09, 00:06
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,511
pivot query
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 12-03-09, 00:43
Nebraska_God Nebraska_God is offline
Registered User
 
Join Date: Jun 2006
Posts: 22
Thank you!
Reply With Quote
Reply

Tags
query

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On