MySQL Forums
Forum List  »  Newbie

Create columns from result values
Posted by: Callum Macdonald
Date: July 11, 2005 08:55AM

Hi There,

I've got a query running which displays a list of user actions and the number of users which have completed each action, grouped by their referral code. The output is along the following lines:
Count | Action | Referral
1 | View | Google
2 | Download | Yahoo
etc

However, I'd like to format the data with a separate column for each of the Referral results, and a row for each action and value against each referrer. The output would like like:
Action | Google | Yahoo
View | 1 | 0
Download | 0 | 2
etc

Is that possible? How would I go about it?

Many thanks,


Callum.

Options: ReplyQuote


Subject
Written By
Posted
Create columns from result values
July 11, 2005 08:55AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.