M
|
MikeT 6/6/2020 |
Not really elegant and tested, but something along this line could work: PK | SaleDate | SaleAmount SELECT YearNum AS 'Year', |
R
|
RBrogen author 6/6/2020 |
Not really elegant and tested, but something along this line could work: Assumed a Sales Table with this structure: PK | SaleDate | SaleAmount SELECT YearNum AS 'Year',
|
M
|
MikeT 6/6/2020 |
It should work with this table-def, only tested with an SQL-client not in phpr. CREATE TABLE IF NOT EXISTS `sales` (
|
R
|
RBrogen author 6/7/2020 |
For anyone else trying to get this to work, below is the code for what I did and a screenshot of the result. There are probably more/better ways to make this work but this is how I finally got it to display the information the way I wanted it to.
|