Guest_imported
New member
- Jan 1, 1970
- 0
I'm new to programming, so any help would be much appreciated.
I've been trying to work out how to insert results from a database query into a two-dimensional matrix using php.
We used a star schema for our datawarehouse. Thus we have a price fact table and we need to perform aggregate functions on this table. This part is relatively simple.
I've managed to connect to the oracle database and retrieve the data but only display the results in a normal table. What I'd like to do is display the results in a matrix so that I can avoid repeating fields. For instance if there are three variables:
var1 = Car_Make
var2 = Area
var3 = Avg_Price
I would like to display the resulting Car_Make on the x axis, Area on the y axis, and Avg_Price data as the associated value to both the Car_Make and Area in the appropriate cell eg:
Area Car_Make
Ford Holden N......
Boston 3500 6700
Seaview 2000 3400
M.....
If anyone has any suggestion or can point me in the right direction I'd really appreciate it.
Regards
Nhu'ron
I've been trying to work out how to insert results from a database query into a two-dimensional matrix using php.
We used a star schema for our datawarehouse. Thus we have a price fact table and we need to perform aggregate functions on this table. This part is relatively simple.
I've managed to connect to the oracle database and retrieve the data but only display the results in a normal table. What I'd like to do is display the results in a matrix so that I can avoid repeating fields. For instance if there are three variables:
var1 = Car_Make
var2 = Area
var3 = Avg_Price
I would like to display the resulting Car_Make on the x axis, Area on the y axis, and Avg_Price data as the associated value to both the Car_Make and Area in the appropriate cell eg:
Area Car_Make
Ford Holden N......
Boston 3500 6700
Seaview 2000 3400
M.....
If anyone has any suggestion or can point me in the right direction I'd really appreciate it.
Regards
Nhu'ron