Subject | Converting from MSSQL |
---|---|
Author | didiergm |
Post date | 2002-02-25T23:26:33Z |
I have the following query
In Mssql I have the followong query
Select Datepart (month, sales_transaction.transaction_date), count(*)
from sales_transaction
Group by Datepart (month, sales_transaction.transaction_date)
which I have converted to :
Select extract (month from sales_transaction.transaction_date), count(*)
from sales_transaction
Group by extract(month from transaction_date)
But I receive a complaint on line three any ideas ?
Didier
In Mssql I have the followong query
Select Datepart (month, sales_transaction.transaction_date), count(*)
from sales_transaction
Group by Datepart (month, sales_transaction.transaction_date)
which I have converted to :
Select extract (month from sales_transaction.transaction_date), count(*)
from sales_transaction
Group by extract(month from transaction_date)
But I receive a complaint on line three any ideas ?
Didier