General information
Category:
Databases,Tables, Views, Indexing and SQL syntax
You can put imbedded IIF statements to get the results..
SELECT artnr, ;
SUM(IIF(MONTH(date)=1,1,0)) AS Jan, ;
SUM(IIF(MONTH(date)=2,1,0)) AS Feb, ;
etc ;
FROM MyTable GROUP BY artnr
I had a tip to this effect in sept 98 FP Advisor
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only