In a MS Access 2003 database with Powerbuilder 7.0, I am trying to run a query on a table 'expense' that has a date/time column called 'month'.
I want it to return all the months that are contained in the table: e.g.,
200507
200508
200509
200510
etc.
I have run the following queries (and various other combinations) with no success:
SELECT YrMnth: format( expense.month , "yyyymm" )
FROM expense
GROUP BY YrMnth: format( expense.month , "yyyymm" );
---removing 'YrMnth: '---
SELECT format( expense.month , "yyyymm" )
FROM expense
GROUP BY format( expense.month , "yyyymm" );
THANKS!!
I want it to return all the months that are contained in the table: e.g.,
200507
200508
200509
200510
etc.
I have run the following queries (and various other combinations) with no success:
SELECT YrMnth: format( expense.month , "yyyymm" )
FROM expense
GROUP BY YrMnth: format( expense.month , "yyyymm" );
---removing 'YrMnth: '---
SELECT format( expense.month , "yyyymm" )
FROM expense
GROUP BY format( expense.month , "yyyymm" );
THANKS!!