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

Convert the oracle sql into sqlserver

$
0
0

Hi All,

Please convert the below oracle query into sql server.

Thanks in advnace.

SELECT  *

 FROM table1 T1,
         Table2  T2 ,
         Table3  T3 ,
         Table3  T4 ,
         Table4  Tc ,
         Table5  T5 ,
         Table6  T6 ,    

         Table7  T7 ,
         Table8  T8
   WHERE T1.c1 = T2 .c1
   AND T1.c2  = T2 .c2 
   AND T3 .c3  = T1.c2 
   AND T3 .c4  = T1.c2
 AND T8 .c5  = T1.c5 
 AND T8 .c6  = 'P'
   AND T2 .c7  = T5 .c7 (+)
   AND Tc .c8  = T1.c8 
  INSTR (T6 .c9 , '.', 1, 3) + 1,
   INSTR (T6 .c9 , '.', 1, 5)
 - INSTR (T6 .c9 , '.', 1, 3)
 - 1
             ) = Tc .c10  || '.' || Tc .Sc11 
   AND T6 .c12  = 'Y'
   AND T6 .c14  = Tc .c15
 AND Tc .c10  = T6 .c10
   AND T7 .c8  = T1.c8 
   AND T7 .c12 = T1.c12
   AND T4 .c24 = T1.34

          

Viewing all articles
Browse latest Browse all 23857

Trending Articles



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