Hi,
I have a report tool where we use to connect it to different data sources, but use the same report. Until now, only MSSQL and Access have been used, but now it's time to go for Oracle. The T-SQL code I have problem with is
select year(transactiondate)*100+month(transactiondate)
Succeeded to do the same with Oracle with
select to_char(transactiondate,'YYYYMM')
The problem is that I want to share the code to get YYYYMM. So is there any way to share the same sql code for both Oracle and T-SQL to do this?
BR /Magnus
Magnus Burk