Quantcast
Channel: Transact-SQL forum
Viewing all articles
Browse latest Browse all 23857

Share code with Oracle

$
0
0

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



Viewing all articles
Browse latest Browse all 23857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>