cross-tabulation

In WPF, can you bind a ListView (NOT DataGrid) to a Matrix (Cross-Tab) DataSet?

Is it possible in WPF to bind a ListView (NOT a DataGrid) to a Matrix (Cross-Tab) DataSet in which the columns are unknown beforehand? Using the Northwind database as an example: the simple query below will return a wellknown dataset which can easily be bound to a listview: SELECT Year(o.OrderDate) AS [Year], Month(o.OrderDate) AS [Mo...

What's a good data model for cross-tabulation?

I'm implementing a cross-tabulation library in Python as a programming exercise for my new job, and I've got an implementation of the requirements that works but is inelegant and redundant. I'd like a better model for it, something that allows a nice, clean movement of data between the base model, stored as tabular data in flat files, a...

MYSQL - Rows to Columns

Hi, I tried to search posts, but I only found solutions for SQL Server/Access. I need a solution to MYSQL (5.X). I have a table with 3 columns: hostid, itemname, itemvalue. If I do a select, it will return 1 A 10 1 B 3 2 A 9 2 C 40 How do I query the database to return something like A B C 1 10 3 2 9 40...