Can I use a reference WITH clause in a JOIN?

Is the syntactically correct query?

WITH abc AS

(

SELECT a.col1 d,

e a.col2

substr(a.Col1,2) f

FROM table1 a JOIN

Table 1 b ON a.col1 = b.col1

WHERE a.col2! = b.col2

)

SELECT id, name, date of birth, ssn

FROM table3 LEFT OUTER JOIN (SELECT DISTINCT abc.d of ABC WHERE abc.f = 'EF') / * Please note the addition of the WHERE clause in the veiw inline * /.

ON table3.id = abc.d

I try to use "abc" with a JOIN. Are there restrictions WITH clause?

Thank you!

Post edited by: user11951344

Hello

user11951344 wrote:

I apologize I addded the WHERE clause too in mode inline "abcd" (in your query) to understand the purpose. The purpose of doing an OUTER JOIN of "abc" with table3 is to check the "EF" State = abc.f. Please note the Add where clause to update in my original question now.

I see the changes, but everything in #5 response still applies.  There is no need to make a join in this case.  The output depends entirely on table3.  You will get the same results no matter what, if anything it either, is in table1, so any reference to table1 does that complicate the query and makes probably slower.

Tags: Database

Similar Questions

  • Can I use Satellite R630 with Netgear and Intel wireless display technology

    Dear all,

    I am a user of a Satellite R630-105 (processor i3 M350). I would use this laptop with Wi - Fi on my plasma on the wall display. Recently, I heard about Intel wireless display technology connected to the Netgear adapter as a possibility for wireless connection to the screen.

    Can I use my computer with this technology? If so, what is the process? If not, is there an alternative, using cable is very inconvenient. I'm at the beginner level.

    Thank you very much, to come.

    Peter

    > I would like to use this laptop with Wi - Fi on my plasma on the wall display.
    Can you please me for what purpose you need this connection?
    I mean what kind of data you want to transfer?
    With other words you do exactly?

  • How can I use the AppleCare with replacements USA helmet in Israel?

    How can I use an AppleCare with replacements USA headphones for my iphone in Israel 6plus? Am I covered overseas?

    Technically, no. The warranty is valid only in the country where the phone was originally sold. However, that restriction is based on the differences between the models of phones sold in different countries and the availability of substitutes service. You may very well be able to get the headphones replaced here since there is no difference between those who were included in phones AND those that are included with the phones sold in your country. Make an appointment at the genius bar or take it to your local CENTER and see what they can do for you.

  • Can I use PC400 RAM with the Tecra A4 (Pentrium 750)

    Can I use PC400 RAM with the Tecra A4 (Pentrium 750), currently PC333 is mounted.

    Thank you

    I put t know if you can use but AFAIK Toshiba recommends using these modules on the Tecra A4:
    PC2700 256 MB (PA3311U - 2M 25)
    PC2700 512 MB (PA3312U - 2M 51)
    1024MO PC2700 (PA3313U-2M1G)

    Here are the modules of single channel 166 MHz DDR333/PC2700, DDR SDRAM, 200-pin SoDIMM.

  • Can I use Word 2008 with el Capitan upgrade?

    Can I use Word 2008 with el Capitan upgrade?

    Yes.

    (139497)

  • Can I use a different with my HP Pavilion 17 19v PSU

    Can I use a different with my HP Pavilion 17 19v PSU?

    You have the adapter 45 watts:

    45 W HP Smart AC adapter (NFPC, RC, 3-wire, 4.5 mm, nslim) 741727-001

    A card eBay auction:

    http://www.eBay.com/ITM/original-OEM-HP-45W-smart-cord-charger-Chromebook-14-c011nr-741727-001-notebook-/221431899726

    The connector dimensions: 4.5 mm × 3.0 mm, with pin inside

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • can I use ie 11 with vista?

    can I use ie 11 with vista?

    No, sorry, but see...

    https://TechNet.Microsoft.com/en-us/library/dn321440.aspx?f=255&MSPPError=-2147217396

  • Can we use emulator ripple with visual studio?

    Hi friend

    How can we use emulator ripple with visual studio?

    Thanks in advance,

    Faster

    You can use ripple with Visual Studio...

    What I do is to create a directory on my machine that has my application in it, then go into Visual Studio and select: «File-> Open-> Web Site...» »

    Then I browse and select the directory where I created my app.  It will then open this directory as a Web site in Visual Studio.

    When I want to run and debug my application, I press "start without debugging".  This will launch the ASP.NET development for the project server so that I can type in the URL.

    I then open the URL in the ripple.  I can just edit the files in Visual Studio, then press refresh (F5) in waving to refresh the content of my application.

  • Can I use a cartridge with extra flat 564 black ' photo' in a HP Photosmart B110a? Perth, Australia

    Can I use a cartridge with extra flat 564 black ' photo' in a HP Photosmart B110a? Perth, Australia

    No, you can't use a Photo cartridge instead a black cartridge. Photo black and black are not the same and that they are not interchangeable. Here a link to a document that I site the prior statement which also goes to explain why the photo cartridges have been renamed and the differences in the picture and Black cartridges. I hope this helps.

  • Can I use my nik with cc2015 plugins

    Can I use my nik with cc2015 plugins

    Hi Carole,

    Please see the thread below where this issue has been addressed:

    https://forums.Adobe.com/thread/1874725

    Kind regards

    Sheena

  • can I use service Pack3 with Augsburg cloud

    can I use service Pack3 with Augsburg cloud

    With a few exceptions, you need Windows 7 or 8 to use the Creative Cloud software.

    See Tech CC for more details:

    http://www.Adobe.com/products/creativecloud/tech-specs.html

    If you do not have the min requirements for CC, you can probably use (also available on the cloud) CS6.

    Nancy O.

  • can I use my 11 with my first 10 items

    Can I use my 11 with my first 10 items

    They will operate as separate but applications will not be integrated through the organizer and you will not be able to output directly from PSE to PRE for example when creating a slide show.

  • How can I use a headset with Bravia BX300?

    Hello

    How can I use a headset with BRAVIA BX300?

    I inserted the headphones in white audio port on the left side of the TV. I also selected 'audio system' settings.

    But still its not working do not. How to make it work?

    Thank you.

    You can get headphones that connect wireless to the audio output of the TV, a buddy of mine has a game like this, the red/white taken in the transmitter.

  • Where can I get the documentation WITH clause?

    DB version: 10 gr 2

    In the OTN forums, I still see WITH clause being used to generate sample data, like the one used in the following thread
    How can I ORDER HERE?
    with data as 
    (
      select 666 as emp_id, 'JobA' as job_name, 'test_emp' as emp_name, 'test_team' as team, '08:00-11:48' as date_1, '07:00-08:00' as date_2, '08:00-11:48' as date_3
      from dual
      union all
      select 666 as emp_id, 'JobA' as job_name, 'test_emp' as emp_name, 'test_team' as team, '07:00-08:00' as date_1, null as date_2, '12:00-15:36' as date_3
      from dual
      union all
    .
    .
    .
    I want to learn more WITH the clause, but I could not find in Oracle Documentation(SQL Reference 10g Release 2)
    Part No.B14200 - 02). No idea where I could read on the essential, usage restrictions... etc on WITH clause?

    Subquery factoring clause in the syntax select...

    http://download.Oracle.com/docs/CD/B19306_01/server.102/b14200/statements_10002.htm#SQLRF01702

  • Can I use truncated and where clause in the statement even?

    Hello guys,.

    Can I use truncated with where clause in the same statement.


    For ex:

    TRUNCATE TABLE my_table WHERE id < 500;

    If not, that you recommend me to overtemperature to the level of high water line?


    By the way
    select * from v$version;
    Oracle Database 11 g Enterprise Edition Release 11.2.0.1.0 - 64 bit Production
    PL/SQL Release 11.2.0.1.0 - Production
    "CORE 11.2.0.1.0 Production."
    AMT for 64-bit Windows: Version 11.2.0.1.0 - Production
    NLSRTL Version 11.2.0.1.0 - Production
    >

    Thank you very much.

    Published by: 970992 on 11:14 13.Ara.2012

    >
    Okay I need an increasing amount of space. However, at the same time I want to recover the spaces empty below HWM. So, I need to use less amount of space I am inserting. Therefore, shouldn't use retractable for this?
    >
    Why waste the effort. Oracle will reuse the space below the HWM when doing inserts. You already said that you insert more lines you delete so all these will be more accustomed to the top.

    The only time where that oracle may not use space is when the space is too small to be useful. It is documented in the doc, I told you
    >
    Understanding recoverable unused space
    Over time, Update, and Delete on objects within a tablespace can create pockets of empty space that individually are not large enough to be reused for the new data.
    >
    Most uses of CONTRACTION I've seen are totally useless. If you follow the doc and run the Advisor of segment it will tell you if there is space that can be retrieved and how much. But, even once, for your use even if case will get you will Oracle while you need to reassign the new extensions, then the HWM will just go still higher.

    If pay you a heavy price in Oracle did a full table scan, update of many blocks from the table, update THE index, impact performance for other users to access the table during the SHRINK and reallocate extensions (maybe even some of the same areas) when you insert more data.

    Do not SHRINK unless you know it's necessary.

Maybe you are looking for

  • Tecra S11 - utility of fingerprints can not connect to the AES1660 probe

    Hello I'm a new user Tecra S11 (PTSE3E), but the former user of Toshiba.After two hours I was using the new laptop, fingerprint software no longer works.I tried to update the firmware of the sensor AES1660 (now is the version 9.0.8.21) but nothing! T

  • Photo Gallery and deleted photos

    Hi all I have a few questions about the removal of the pictures and photo gallery. I took a few photos with my iPhone when it is on 4G. However, I don't want these photos appear on my photo gallery of all devices. Now, I had deleted the photos from m

  • Games patches

    I just bought an e-machine pc with windows 7 on it, my problem... None of my pc games load up on this subject? all I can do to help? patches? No matter what?

  • How can I recover my recycle bin deleted in Windows Vista Home Premium? Delete all I have is not there

    I'm trying to recent files that I deleted, but nothing is in the trash. There no way to know where there is, or to recover any deleted in the last two weeks?ConcerningLuis Silva

  • Transfer Windows 7 OEM for VM

    I bought a laptop with windows 7 Professional OEM. I reformatted the drive hard drive installed Linux and OEM as a virtual machine using VMware. How can I reactivate it windows so that it is recognized as authentic? I have had several telephone conve