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 9257659
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T12:11:45+00:00 2026-06-18T12:11:45+00:00

I have menu and action tables which share links between by one-to-one table: menu:

  • 0

I have menu and action tables which share links between by one-to-one table:

menu: id, name
action: id, name
MenAct: menu_id, action_id

Not all menu.id in MenAct.menu_id set (in other words some menu have no associated action)…

I can’t write select, which give pairs of menu.name, action.name when:

menu.id = MenAct.menu_id AND action.id = MenAct.action_id

and menu.name, NULL otherwise…

This require nested request or other SQL techniques but I am very noob to Oracle SQL.

  • 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-18T12:11:46+00:00Added an answer on June 18, 2026 at 12:11 pm

    Sounds like you want a LEFT JOIN not an INNER JOIN:

    select m.name, a.name
    from menu m
    left join menuact ma
        on m.id = ma.menu_id
    left join action a
        on ma.action_id = a.id
    

    A LEFT JOIN will return all rows from the menu table regardless of whether it has a matching row in the other tables. If it does not exist then you will have a null value in action.

    If you need help learning JOIN syntax, here is a great visual explanation of joins

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

Sidebar

Related Questions

Here's my problem: I have do create a menu/list of actions (which would be
i have a menu contains of one item (item to exit application), i want
I have written some code which is designed to create a table and display
I have a left side navigation menu on my page.. using url.action like below..
I have been reading many topics on this subject, a drop down menu which
I have created one application in which if i select on particular row in
I have a table form which contains a part where the rows can be
I have a rails app, for some reason my login action does not work.
I have a menu that I want to differ based on which account is
I have menu structure as show here . All item have a background img.

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.