How can I get output to join two queries

Hi guru,.

I have a requirement like this

Select query3.empname

Of

(

(select col1, col2 from emp) query1

full outer join

(select col1, col2 from emp1) query1

) query3

Hello

ODI_NewUser wrote:

Hi guru,.

I have a requirement like this

Select query3.empname

Of

(

(select col1, col2 from emp) query1

full outer join

(select col1, col2 from emp1) query1

) query3

What is the requirement?

What you posted is an attempt to meet a requirement, but if this is the right way or not, it is not the condition.  A response is not the same as a question.

Whenever you have a question, please post a small example of data (CREATE TABLE and only relevant columns, INSERT statements) for all of the tables involved and the results desired from these data.
Explain, using specific examples, how you get these results from these data.
Always say what version of Oracle you are using (for example, 11.2.0.2.0).

See the FAQ forum: https://forums.oracle.com/message/9362002#9362002

FULL OUTER JOIN is never the only way to get any results.  Sometimes, it's the best way, but sometimes there are other means that are simpler and more effective.  The set operators, such as the UNION (as suggested earlier) sometimes are a better solution.

Tags: Database

Similar Questions

  • How can I get output vga M700 give S-video?

    I need to get the output VGA to s-video. Can someone tell me how to proceed? I guess I'll have to change the BIOS settings, but that means it will work not so the VGA?

    Have you tried pressing Fn + F5 in Windows to select the desired output?

  • How can I get a space between two boxes please

    www.hunterstables.co.UK/Sales1.html

    < div class "saleImage" >

    Thank you in advance

    .SaleImage gives a margin of down in your css - 20 pixels for example:

    margin-bottom: 20px;

  • How can I get several hyperlinks to display in the query output?

    I uses two tables to list all a school sport teams. The table of sport lists all team data aggregated by gender. The second table uses the sportID of the first table to associate a team calendar.  The problem is not all the teams do not have a calendar.

    I'm trying to post a link to these teams with schedules. I compare the two tables, the sport and the calendar and a CFIF statement allows to compare the 2 sportIDs in the output to determine the teams who have a schedule.  If the two sportIDs corresponds to a hyperlink is displayed.

    Unfortuanetely, only one link will be displayed, even if there should be three links. Here is my code:

    Table to display aggregated by gender teams

    "< name cfquery ="getSports"datasource =" #application.database # "" >

    Choose between the sexes, team, levels, sportID

    sports

    Group sex, team, levels, sportID

    < / cfquery >

    Table used for the sportID of already created calendars

    < name cfquery = "getID" datasource = "#application.database #" >

    Select sportID

    annexes

    SportID group

    < / cfquery >

    I then compare the sportIDs and if they match, I then display a hyperlink

    "< cfoutput query ="getSports"group 'sex' = >"

    < h1 "> teams #gender < / h1 >"

    < ul >

    < cfoutput >

    < li >

    < cfif getID.sportID EQ getSports.sportID > <a href = "teams.cfm? sportID = #sportID #" >< / cfif >

    #team # < cfif levels GT "" >(#levels#) < / cfif > //levels is used to differentiate the J.V. and Varsity. "." Usage levels not all of the teams

    < cfif getID.sportID EQ getSports.sportID > </ a >< / cfif >

    < /li >

    < / cfoutput >

    < /ul >

    < / cfoutput >

    How can I get the other teams to display their links?

    Thank you gentlemen, since everyone was suggesting an outer join, I took out my trusty Manual of ColdFusion and learn about them. I've added the sum() for the query:

    Select sports.gender, sports.team, sports.levels, sports.sportID, sum (schedules.sportID) AS expected

    sports

    opening hours of the outer join left on sports.sportID = schedules.sportID

    Group of sports.gender, sports.team, sports.levels, sports.sportID

    So add the following to the output:

    And everything works perfectly. Once again, life is beautiful!

  • How can I get my two headphone microphone jack to work with a single shot?

    My 510 had two jacks, but my 520 has only one. I want to use the microphone on my headset... even if I can't use the headphone speakers at the same time. How can I get my laptop from the microphone to the microphone headset? The built-in function takes too much background noise.

    Thank you.

    Abigail

    Dear AbigailCW,

    I'm afraid that it will not work. Two jacks, one of which was a standard on older PCs, serves as input and audio output microphone, in short, audio out, voice went in through your microphone. This has changed now because of recent trends and can be inconvenient for most users.

    I solved this problem by buying a USB soundcard with these two entries, and it cost me about US $ 10. As its USB cards helps stimulate an additional gain so I better sound now than ever. May be worth it.

    Best regards.

  • In Plugins, I have two versions of Adobe Acrobat - how can I get rid of the old?

    In Plugins (and Applications), it shows two Adobe Acrobat version: 10.1.13.16 and 11.0.10.32, how can I get rid of the old?

    Fix. If you think there may be a problem, follow these instructions;

    Take uninstaller from here:
    Uninstall Flash Player | Windows
    Uninstall Flash Player | Mac
    Reinstall the latest version.

    Flash Player Version 16.0.0.305
    https://www.Adobe.com/products/flashplayer/distribution3.html

    Shockwave Director Version 12.1.7.157 http://get.adobe.com/shockwave/

    Opps, Sorry, wrong instructions.

    Remove the two programs. Then install the current.

  • I have two Apple ID. How can I get rid of one?

    I have two Apple ID. How can I get rid of one?

    Hello Terri108,

    Thank you for using communities of Apple Support.

    I understand your message that you have two Apple ID and want to get rid of one. First of all, any purchase that you have made with your ID first Apple won't be available on the second Apple ID and vice versa. If you only want to use an Apple ID, you must choose them and then purchase and download all the apps the other Apple ID that you choose.

    You could also do for the two the same Apple ID passwords. In this way all the apps you have downloaded to your devices can be updated, and you do not have to remember to separate the 2 passwords.

    Best regards

  • How can I get rid two tabs to open when I first open Firefox?

    When I first open Firefox I get my home page in a tab, but also another tab opens. This one is set to Facebook. How can I get rid of the opening automatically second tab?

    You get two pages if you launch a new window using either:

    • CTRL + n
    • button '3-bar' menu > new window

    If Yes:

    Check the settings of your home page to see if you have several home tabs. A vertical bar (|) is used between the addresses. This article shows you where to check them in the Options dialog box: start-up, homepage, tabs and download settings. This article has more background on several tabs home: How to set the home page.

    If not, or if the Options dialog box is correct:

    Add-ons - can display tabs at startup or in a new window. If you check the address of the Facebook page, this is the URL to normal Facebook (https://www.facebook.com/) or to a different address?

    Do you have any extensions related to Facebook? You can view, disable and often remove the extensions on page modules. Either:

    • CTRL + SHIFT + a
    • "3-bar" menu button (or tools) > Add-ons

    In the left column, click Extensions. Then, when in doubt, turn off.

    Often, a link will appear above at least an extension disabled to restart Firefox. You can complete your work on the tab and click one of the links in the last step.

    Any improvement?

  • How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I enter the codes I get and the Pro is just off!

    How can I get the six digit code for my iPad Pro? I have two other iPads and an iPod but I get the codes I get and the Pro is just disabled for longer and longer whenever he rejects these codes!

    If you have forgotten the password for your iPhone, iPad or iPod touch, or your device is disabled - Apple supports

  • I recently changed my IE but when I try to import the Favorites I get only the first two files. How can I get my favorite of all THE? s

    I followed the advice and imported IE Favorites, but only the first two files have met. How can I get all THE files across please?

    Wow. I think I will like Firefox if the aid is so easily available, quick and as good as this. Fixed right away
    Thank you very much
    Kevod

  • Firefox displays two barely legible as a default fonts fonts. These came from an email that I opened. How can I get rid of them?

    Firefox displays two barely legible as the default fonts fonts. These came from an email that I opened. How can I get rid of them?

    You can write a check for corrupted fonts and duplicate and other police issues:

  • How can I get a report by fax on Fax output hp jet pro L7580 all-in-one desktop?

    How can I get a report by fax on Fax output hp jet pro L7580 all-in-one desktop?

    You click on the "Setup" button on the front panel of the printer, highlight "Print report", you should have an option to print a newspaper 'Fax' in this menu.

  • The product key label is worn and missing two numbers. How can I get back them so I can re - install the software?

    missing numbers

    The product key label is worn and missing two numbers. How can I get back them so I can re - install the software? The hard drive broke down.

    Thank you.

    How to identify, locate, and replace a product key
    http://support.Microsoft.com/kb/811224

  • How can I get two jobs when using two monitors, instead of stretching a desktop on both screens?

    Hello!

    How can I get two jobs when using two monitors, instead of stretching a desktop on both screens? I n ' want to clone my office, and I don't want to stretch it. I want two desktop computers, where I can "send/give" to the other desktop programs.

    I need a third party program? It is very good. If you know one please tell me about it.

    Hi OskarKvist,

    This feature is not supported by Windows XP.

    However, you can use your favorite search engine to download any third-party software that could serve the purpose.

    Note: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

    Hope the helps of information.

  • When I sign in the two screens come Hotmail. It indicates Hotmail and the other live hotmail. How can I get just a sign, preference of hotmail

    original title: 0

    When I sign in the two screens come Hotmail.  It indicates Hotmail and the other live hotmail.  How can I get just a sign, preference of hotmail.

    This type of issue of hotmail is not supported in these forums.

    Discover the solutions to Hotmail at: http://email.about.com/gi/o.htm?zi=1/XJ&zTi=1&sdn=email&cdn=compute&tm=8&gps=502_360_1277_617&f=00&tt=13&bt=1&bts=1&zu=http%3A//windowslivehelp.com/forums.aspx%3Fproductid%3D1 if you can't find an answer, then click on the link to the Forum and post your problem where Hotmail and Live Hotmail questions specialists will be happy to help you with your problem.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

Maybe you are looking for