php - Show MySQL data in table with subsets of data -


I'm trying to retrieve the records from a mysql table and display them in a table. I can do this for individual queries with such personal questions:

  $ sql = "SELECT Sum (combined_data.List value ') as a total_dollar_mount, calculation (combined_data.sysid) Combined_Administrative_devices where combined_data.`zip code` = 07675 and combined_data 'Office Primary Board ID' = 'W' and combined_data 'list price between 0 and 99 99'; $ result = mysql_query ($ sql, $ link) ); While ($ row = mysql_fetch_array ($ result)) {// these stars cells $ res_07675_0_99999_amount = $ Resize ['total_dollar_amount']; $ Res_07675_0_99999_total_units = $ line ['total_units']; $ Res_07675_0_99999_parent = ($ res_07675_0_99999_mount / $ total_value) * 100; $ Res_07675_0_99999_parent = round ($ res_07675_0_99999_paint, 2);}   

However, I would like to see if it can be done in a query.

By dragging all the records from Zip 07675, then using the subset of the data, the column heading value range ( 0-99, 000, then 100,000-199,00 etc.), (1) Add a subset for total performance, (2) Count # of the subcultures Calculate the value (# on the value), then (3) (market%) which is the total amount from all the zip codes of all the values.

And, when done, it is able to sort on each column based on the volume range ($).

I am not aware of the complexity of mysql questions and I am not sure that I am also going in the right direction to complete (currently reporting in Excel)

Any guidance or suggestion will be appreciated. Or is there an app that will help in creating this code?

Thank you.

table

Allows you to easily create reports by grouping records into subsets and then removing data from those subsets.

Most likely what you need is

See also this sample answer, as you can give a hint:

Comments

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -