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

  • Home
  • SEARCH
  • 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 608241
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T17:26:31+00:00 2026-05-13T17:26:31+00:00

I have two select statements that I am trying to port from Oracle to

  • 0

I have two select statements that I am trying to port from Oracle to Postgres:

1) (Note: this is a subselect part of a bigger select)

SELECT 'Y'
FROM CRAFT MA, CONFIG MAC, ARMS SM
WHERE MCI.MS_INVENTORY_NUMBER = SM.MS_INVENTORY_NUMBER (+)
AND MCI.AB_BASE_ID = MA.AB_BASE_ID_LAUNCH AND SM.ACT_AC_TYPE = MAC.ACT_AC_TYPE
AND SM.MAC_ID = MAC.MAC_ID AND MAC.ACT_AC_TYPE = MA.ACT_AC_TYPE
AND MAC.MAC_ID = MA.MAC_ID_PRI

2)

SELECT ASP.ASP_SPACE_NM,
       SUM(MO.MO_TKR_TOTAL_OFF_SCHEDULED) AS "TOTAL_PLANNED"
  FROM MISSION_OBJECTIVE MO, SPACE ASP
 WHERE ASP.ASP_SPACE_NM = MO.ASP_SPACE_NM (+)
   AND MO.MO_MSN_CLASS_NM = 'TOP'
 GROUP BY ASP.ASP_SPACE_NM

The (+) syntax is confusing for me… I know it signifies a “join”, but I am not familiar enough with SQL to understand what is equivalent to what.

  • 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-05-13T17:26:31+00:00Added an answer on May 13, 2026 at 5:26 pm
    SELECT  'Y'
    FROM    CRAFT MA
    JOIN    CONFIG MAC
    ON      MAC.ACT_AC_TYPE = MA.ACT_AC_TYPE
            AND MAC.MAC_ID = MA.MAC_ID_PRI
            AND MA.AB_BASE_ID_LAUNCH = MCI.AB_BASE_ID
    LEFT JOIN
            ARMS SM
    ON      SM.MS_INVENTORY_NUMBER = MCI.MS_INVENTORY_NUMBER
    WHERE   SM.ACT_AC_TYPE = MAC.ACT_AC_TYPE
            AND SM.MAC_ID = MAC.MAC_ID AND 
    

    and

    SELECT ASP.ASP_SPACE_NM,
           SUM(MO.MO_TKR_TOTAL_OFF_SCHEDULED) AS "TOTAL_PLANNED"
    FROM   SPACE ASP
    LEFT JOIN
           MISSION_OBJECTIVE MO
    ON     MO.ASP_SPACE_NM = ASP.ASP_SPACE_NM
    WHERE  MO.MO_MSN_CLASS_NM = 'TOP'
    GROUP BY
           ASP.ASP_SPACE_NM
    

    I left the LEFT JOIN as it was in the original query, but it’s redundant here due to the WHERE condition.

    You may replace it with an INNER JOIN or just drop the (+) part.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have two select menus (#id1 and #id2) that, when validated as containing a
I haven't seen any website do this properly... If I have two select fields,
I have two identical select boxes (aside from their names, of course), and I
So I have two multiple select boxes like this <select id=foo multiple=multiple> <option value=1>Option
I'm trying to make a select statement that joins results from three in-line table
Trying to have a PHP script send an email that contains two images that
I have two select fields in a form. Every time one of these select
I have two select elements, A and B: when A's selected option changes, B's
I have two select queries to use in my project for getting data and
I have two select boxes with dates. See here the jsfiddle: http://jsfiddle.net/egrba/ The people

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.