OK guys, I need some quick SQL help. I have a DB full of plant availabilities, broken down into type, size, row, and column, and I need to create a report formatted like this:
Plant Type
....................Size
................................Quantity
....................Size
................................Quantity
Plant Type
....................Size
................................Quantity
...if that makes sense. Basically, ordered by Plant name first, then by size, then the quantity of that size available. The only problem is, All of the plants are strewn across the database, split into rows. So for instance, one record would have Plant Type, Size, Block, Row, Quantity. All of these need to be combined into a report. No need for location on the report, just totals for the sizes and quantitys. Hopefully this makes sense. Basically, how do I get Coldfusion to loop first by plant name, then by size, then give the total quantitiy of that particular size?
Please help!
Thanks,
Dan
Plant Type
....................Size
................................Quantity
....................Size
................................Quantity
Plant Type
....................Size
................................Quantity
...if that makes sense. Basically, ordered by Plant name first, then by size, then the quantity of that size available. The only problem is, All of the plants are strewn across the database, split into rows. So for instance, one record would have Plant Type, Size, Block, Row, Quantity. All of these need to be combined into a report. No need for location on the report, just totals for the sizes and quantitys. Hopefully this makes sense. Basically, how do I get Coldfusion to loop first by plant name, then by size, then give the total quantitiy of that particular size?
Please help!
Thanks,
Dan
