Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
SQL syntax please (including oracle)
Message
De
26/07/2000 12:00:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Titre:
SQL syntax please (including oracle)
Divers
Thread ID:
00397100
Message ID:
00397100
Vues:
49
Hi All,

I have a SPT query.
SELECT trandate, trantype, sum(tranamt) AS tranamt FROM mytran ;
   WHERE bookyear = ?cAcctyear AND accode = ?nAccode ;
   GROUP BY Month(trandate), trantype
I want to make this query to be executed on any remote database including VFP. The above executes in VFP without any problem. But in Oracle is not and the reason is I do not know the equivalent function for MONTH() that I have used under my "group by" clause. I guess TO_CHAR(trandate, "MM") should work with Oracle but I do not want to go by that as it will not work with other databases. Please help.

Thanks in advance.
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform