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é
User Profile
Collapse
-
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 | +---------+--------+-------+-------+-------+-------+
Leave a comment:
-
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 :
I want to display it 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
MatchID User1 User2 User3 User4
1
2
My SQL...
No activity results to display
Show More
Leave a comment: