Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7980537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T10:06:16+00:00 2026-06-04T10:06:16+00:00

I have the following query that needs to be converted from Oracel PL/SQL to

  • 0

I have the following query that needs to be converted from Oracel PL/SQL to T-SQL to accomodate a data source change.

How can the Oracle join (+) convert to T-SQL?

SELECT INA01 , SMYDESC , CASE WHEN INACONF = 'Y' THEN '0' ELSE '1' END  , INB15 , AZF03  , INAORIU  , ZX02  , INADATE  , INA04  , GEM02  , INA02  , INA11  , INA07  , INB03  , INB04  , IMA02 , INB09 , INB08 , INBUD02
       FROM INA_FILE , SMY_FILE , GEM_FILE , INB_FILE , IMA_FILE , AZF_FILE , ZX_FILE
       WHERE INA00 = '1'                                 
         AND INACONF <> 'X'
         AND INA01 = INB01
         AND INB04 = IMA01(+)
         AND SUBSTRING(INA01,1,5) = SMYSLIP(+)
         AND SUBSTRING(INA01,1,5) NOT IN ('0IN99','1IN03','0IN92','1IN04','0IN98')
         AND INA04             = GEM01(+)
         AND INB15             = AZF01(+)
         AND INAORIU           = ZX01(+)
         AND INACONF           = 'Y'                     
         AND inadate = to_date('2012/05/23', 'yyyy/mm/dd')
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T10:06:17+00:00Added an answer on June 4, 2026 at 10:06 am

    You probably need to add table names in front of the column names in the JOIN clauses:

    SELECT INA01, SMYDESC, 
           CASE WHEN INACONF = 'Y' THEN '0' ELSE '1' END, 
           INB15, AZF03 , INAORIU , ZX02, INADATE, INA04, GEM02, INA02, 
           INA11, INA07, INB03, INB04, IMA02, INB09, INB08, INBUD02
    FROM INA_FILE 
    INNER JOIN INB_FILE ON INA01 = INB01
    LEFT OUTER JOIN IMA_FILE ON INB04 = IMA01
    LEFT OUTER JOIN GEM_FILE ON INA04 = GEM01
    LEFT OUTER JOIN AZF_FILE ON INB15 = AZF01
    LEFT OUTER JOIN SMY_FILE ON SUBSTRING(INA01,1,5) = SMYSLIP
    LEFT OUTER JOIN ZX_FILE ON INAORIU = ZX01
    WHERE INA00 = '1'                                 
    AND INACONF <> 'X'
    AND SUBSTRING(INA01,1,5) NOT IN ('0IN99','1IN03','0IN92','1IN04','0IN98')
    AND INACONF = 'Y'                     
    AND inadate = CONVERT(DATETIME, '05/23/2012', 101)
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have table that I insert data with following query (from c# code): INSERT
I have the following query that runs in my Oracle database and I want
I have the following query that works well. SELECT DISTINCT city,region1,region2 from static_geo_world where
Lets suppose that I have the following simple query var q = from p
I have the following query that retrieve the number of users per country; SELECT
I have the following query that performs a AND on-demand: var products = //
I have the following query that I ran on my database to remove some
I have the following code and got myself confused: I have a query that
I have the following Table elements how do i run a query that reproduce
I have two tables that I am joining with the following query... select *

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.