User Profile

Collapse

Profile Sidebar

Collapse
Biggoby
Biggoby
Last Activity: Mar 1 '07, 04:32 PM
Joined: Nov 24 '06
Location:
  •  
  • Time
  • Show
  • Source
Clear All
new posts

  • Biggoby
    replied to Wrong results returned by a table pivot
    Thanks a lot Ronald!!! It's working now!
    Still, I can't figure out why a sum over the field is working while a simple call to the value of the field isn't, but anyway... It works now!

    Cheers,
    Maïté
    See more | Go to post

    Leave a comment:


  • Biggoby
    replied to Wrong results returned by a table pivot
    Thanks for the reply Ronald,
    I may have not been very clear on what I want to achieve:
    Here is how I would like my table to be displayed:
    Code:
    +---------+--------+-------+-------+-------+-------+
    | MatchID | User1  | User2 | User3 | User4 |
    +---------+--------+-------+-------+-------+-------+
    |      1  | 1      |   0   | 1     | 1     |
    |      2  | 1      |   0   | 1     | 1     |
    +---------+--------+-------+-------+-------+-------+
    ...
    See more | Go to post

    Leave a comment:


  • Biggoby
    started a topic Wrong results returned by a table pivot

    Wrong results returned by a table pivot

    I'm working with MySQL 5.0.25 form phpMyAdmin 2.6.3 and I get strange results when trying to pivot a table...
    My table "Test" is very simple and looks like :
    Code:
    MatchID	UserID	Presence
    1	1	1
    1	2	0
    1	3	1
    1	4	1
    2	1	1
    2	2	0
    2	3	1
    2	4	1
    I want to display it like:
    MatchID User1 User2 User3 User4
    1
    2

    My SQL...
    See more | Go to post
    Last edited by ronverdonk; Nov 26 '06, 10:42 AM. Reason: make readable
No activity results to display
Show More
Working...