Simply question: Are these two query same?

Question 1:
There is this query from someone: (I'm not sure how Join ON works)
SELECT NULL AS order_id
,line_id
,o.item_id
,o.customer_id
INTO v_line_table
FROM xx_items_v i,
JOIN order_dtl o ON i.item_id = o.item_id
WHERE o.que_id = 3380;
Is this same as below?
SELECT ORDER_ID , line_id , o.item_id, o.customer_id
into v_line_table
FROM xx_items_v i, order_dtl o
where i.item_id = o.item_id (+)
and o.que_id = 3380;
Question 2:
I want to retrieve ORDER_ID information from a 3rd table (order_header.order_id). The key between order_dtl & order_header are que_id. How can I add to the first query above?

No. Your first query will never work it has a comma between the first table and the join key word remove it then...
remove the (+) from you second piece of code and it will be the same as the amended first piece of code, or turn the upper piece of code into an outer join by specifying whether it is a left or a right outer join.
In your case it's a left join:
select [column list]
from table1 i
left join table2 o on i.key = o.key
where o.column = 1234;However, the where clause turns this query back into an inner join becuase the right side of the join must exist. You can either allow o.column to be null in the where clause, or move the predicate up into the join. The two folowing queries are equivalent in their results:
select [column list]
from table1 i
left join table2 o on i.key = o.key
where o.column = 1234
or o.column is null;
select [column list]
from table1 i
left join table2 o on i.key = o.key and o.column = 1234;Message was edited by:
Sentinel

Similar Messages

  • Having just bought an iMac and set every thing up I have found that my IPad seems to run very slow. I have also just updated the IPad to OS 5.1 .Are these two things connected or is there a problem with the IPad

    Having just bought an iMac and set every thing up I have found that my IPad seems to run very slow. I have also just updated the IPad to OS 5.1 .Are these two things connected or is there a problem with the IPad

    Using the Mac with your iPad has nothing to do with the fact that the iPad is running slow. There could be any number of reasons why the iPad is now running slow.
    Have you tried a reset on the iPad?
    Reset the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons.

  • Hi, my current plans and products include Creative Cloud Photography plan (one-year) and Creative Cloud single-app membership for Photoshop (one-year), I only use photoshop occasionally and for very basic things, are these two plans required for basic p

    Hi, my current plans and products include Creative Cloud Photography plan (one-year) and Creative Cloud single-app membership for Photoshop (one-year), I only use photoshop occasionally and for very basic things, are these two plans required for basic photoshop use or am I able to go with one or the other ?

    PS is part of the photography plan, so your single app plan is redundant.
    Mylenium

  • While travelling in the U.S.A I purchased an app store card for my IPOD which was bought in Canada.  I am having trouble redeeming the card on my IPOD, it is coming up not valid.  Are these two items compatible?

    While travelling in the US I purchased and app store card for my IPOD touch which was bought in Canada.  I am have trouble reddeming the card on my IPOD.  Are these two items compatible?

    Gift cards can only be used in the App/iTunes store in the country in which they were purchased. You can only purchase items from the store of the country you are physically located.

  • Are These Two Event Handler Examples Equivalent?

    I have found 2 examples of adding an event handler in C#.  The even handler is (obviously) the method named b2_FlashProgressChanged.  Are both of these two forms valid and equivalent?
    BackgroundWorker bw = new BackgroundWorker();
    bw.ProgressChanged += bw_FlashProgressChanged;
    bw.ProgressChanged += new ProgressChangedEventHandler(this.bw_FlashProgressChanged);
    private void bw_FlashProgressChanged(object sender, ProgressChangedEventArgs e)
    MCSD .NET developer in Dallas, Texas

    Yes. In the initial releases of C# the compiler could not infer the type of a method given just its name so you had to explicitly wrap it in event handler. But a long time back the compiler was updated to allow for type inferencing such that the compiler
    can verify that a method name matches the signature of a delegate and therefore does not need the explicit conversion anymore. You should prefer the first syntax when possible as it is less typing and easier to read IMO.
    Michael Taylor
    http://blogs.msmvps.com/p3net

  • Are these two methods equivilent ways to download flash player 10.0.32.18?

    I use Vista with Vista Service Pack 2 and IE7 browser
    by going and downloading from
    http://get.adobe.com/flashplayer/?promoid=BUIGP
    OR
    going and downloading from
    http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_ax .exe.
    will both methods give me the same flashplayer 10.0.32.18 with the same functionality AND security?

    A few clarifying questions if nobody minds
    1. which one is the online installer?
    2.  which one is the offline installer?
    3. What is the difference between the two?
    4. Are they equally as safe and secure, in downloading and in functionality?
    5. During this time period, I went ahead and did the following (which I have read others do):
        I went to a trusted website that required flash player 10.0.32.18
        As I had no flash player installed, i got the message
                 "this site might require the following Active X control: Adobe Flash player Installer from ADOBE systems inc"
       When I right clicked on that it said "click here to install"
        Then a window popped up that said
       " Do you want to install this software?"
        name: Adobe Flash Player Installer
        publisher "Adobe Systems Inc"
       I clicked the install button and I have flash player ability
    ( in my browser under tools/internet option/settings/ view files it shows this
    fpdownload2.macromedia.com.get/shockwave/cabs/flash/swflash.cab)
    6. So this method I outlined using the "offline installer"
    7. From the looks of it all with this method, do I have the correct and secure version of flash player10?
    When I check my add/remove programs from the Vista Control Panel it shows ADOBE Flash Player 10 Active X version 10.0.32.18
    When I go to a site that has a flash player item and I check "about Adobe Flash player" it shows the current 10.0.32.18 version

  • What are these two new songs? (hip hop)

    Just this week for the first time I've heard two songs I've never heard before on the radio. All I can remember is the hook from each of them.
    One of them often says "Ridin on three" and the other says "Do you wanna pimp mista". Does anyone know which songs these are? Thanks!
    AMD   Windows 2000  

    I didn't know someone else's lyric query got answered on here, but regardless, I don't think this forum was meant for that.
    I will suggest these four websites
    http://lyricsworld.com
    http://wowlyrics.com
    http://letssingit.com
    http://azlyrics.com
    as good lyric websites, in which you can search for a lyric. Of course, there are more, I just can't find anymore right now.
      Windows XP  
      Windows XP  

  • I am trying to download photos stored on a memory stick to my imac, but two of the files are saying unreadable.  Why?  Are these two sets of photos never going to be copied onto my Mac?  If so, how can I get them onto my iphoto folder.  Desperate.  Glen

    I am trying to put photos stored in a memory stick onto my Mac computer.  But there are two folders that will not move.  I get an error message saying - volumes/FLASH DRIVE/desktop. ini - can someone help me please?  The photos are from my windows computer.  Please answer back assuming I am a total drip - I am a lot older than you I should imagine !!  Thanks  Glenys

    Can you double click on them on the memory stick, see if preview opens them, then save them to your Mac?
    ...JER

  • I downloaded the upgrade for fire fox, now I am having trouble with youtube, are these two things related? Something about an embeded code.

    My system won't restore so I don't know if the two are related. You tube has a code to copy past, but it just says paste to 'your web page or blog' Any ideas?

    Clear the cache and the cookies from sites that cause problems.
    * "Clear the Cache": Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    * "Remove the Cookies" from sites causing problems: Tools > Options > Privacy > Cookies: "Show Cookies"

  • What are these two powerbooks worth roughly?

    I have a 15" 1.67 low res power book, here are some basic stats
    1gb memory, 80 gb hd, 10.5.7. MS office, then all standard.
    Excellent condition. No issues whatsover, great screen.
    And a customer wants to trade some of my labor for this one
    15" 1.5 power book
    512 mb ram, 80 gb, I think its running leopard, has MS office, needs charger (no big deal, can get one on ebay)
    Im thinking about taking the labor trade (for a couple hundred off the bill), and selling both on ebay or maybe craigslist. Then getting a high res (maybe 17") or maybe macbook pro.
    Anyone been paying attention to what they're worth? Are the High res models that much better? Should I get a Pro?
    Thanks

    The high-res models are better in that they are the last ones Apple made and have all the bugs and such worked out of them. Also, the screen resolution is a huge PLUS.
    I got a 15-inch 1.5GHz on eBay and after doing some tests, realized I'd have more space with the high-res 1.67GHz model and improved specs like faster RAM and a Double-Layer SuperDrive.
    So, I did get that 1.67GHz model and sold the 1.5GHz to my friend.
    Of course, I've since upgraded to a MacBook Pro unibody (Late 2008). It's all up to you and based on your, one, needs and work, and two, your budget. You can even get an older MacBook Pro which would be a huge bump over your PowerBook G4.

  • Questions about these two IO classes....

    1)
    OutputStreamWriter
    An OutputStreamWriter is a bridge from character streams to byte streams: Characters written to it are encoded into bytes using a specified charset.
    i dont understand. Converting characters into bytes is understandable, but what does it mean by "using specified charset"?? I mean, isn't that the other way around?? ie, you convert bytes into characters using a specified charset??
    2)
    BufferedWriter, BufferedWhatEver...
    What does that makes code cleaner, when OutputStreamWriter and PrintWriter have basically same methods as they do??
    3)
    For top efficiency, consider wrapping an OutputStreamWriter within a BufferedWriter so as to avoid frequent converter invocations. For example:
    Writer out
    = new BufferedWriter(new OutputStreamWriter(System.out));
    What does it mean by "to avoid frequent converter invocations"?
    thanks for any responses.

    so, what is "buffering" then?
    I dont understand the explanation... lower code
    invocation??
    maybe in a plainer sentence will help??
    so sorry for not understand it.The following is not necessarily accurate in every technical detail, but it's close enough to demonstrate the principles.
    Let's say I'm going to write 10 bytes. I can do this: stream.write(b0);
    stream.write(b1);
    stream.write(b9);Each of those will cause stream to acces whatever native code it uses which will cause an I/O operation to happen at the hardware level--it will write a byte to the disk controller. It will do this once for every byte.
    Doing that physical I/O carries an overhead. The time taken to actually get the one byte written may be vastly overshadowed by the time taken to access the controller.
    You wouldn't want to establish a connection to a web server, read a byte, close the connection, establish antoher connection, read a byte, et.c. ... right?
    Now, instead, if I put the bytes in an array and call something like bufStream.write(arr, fromByteZero, tenBytes); then I make one call to the stream, it makes one call to the disk controller, pays the overhead cost only once, and writes all ten bytes.
    So instead of 10*overhead + 10*byte_write_time I pay 1*overhead + 10*byte_write_time

  • IPod 60GB - are these always the same?

    What I really mean is, I would like to buy the iPod 60GB because you can watch video's on it??? Or am I totally wrong?

    Mildred,
    The confusion here has most likely arisen because you are posting in the wrong forum.
    This forum is for the iPod with color display, commonly known as the iPod photo. They are no longer made, so any 60GB iPod you purchase now (providing it's new) will be an iPod with video playback capability.
    The iPod with video is officially know as the iPod 5th generation, but almost everyone calls it the iPod video.
    The forum for posting questions about this model iPod, or if you just want to browse and read some of the topics, is here.
    Using the iPod 5th generation.
    The bottom line is, if you buy a brand new 60GB iPod, it will be the model capable of video playback.

  • What are these two settings in the "Advanced" tab?

    Hello,
    So I've recently cleaned out my library (deleted duplicated tracks and tracks that I don't like anymore), after doing so I've consolidated them. I did that to delete the BIG folders of music I had on my hard drive (because when I delete from iTunes and the track isn't consolidated, the track is still on the hard drive). Now, what do I do to have iTunes consolidate every track I add to my library?
    And what is the difference between "Keep iTunes Media folder organized" and "Copy files to iTunes Media folder when adding to library"? And do they do?
    I tried reading the little "description" and that just confused me even more.
    Thanks if you're able to help me out.

    Here's a pretty good explanation of what those two options do:
    http://www.informit.com/articles/article.aspx?p=473851&seqNum=5
    what do I do to have iTunes consolidate every track I add to my library?
    What precisely to you mean by "consolidate"? If you want iTunes to keep things organized and in it's own folder, checkmark those two options. Then iTunes will keep everything neatly in the iTunes folder, and once added you can delete any extra copies.
    Hope this helps.

  • Do I have to buy a special cord to connect my new ipod touch with my new ipad? or are these two not compatible? Trying to get all my music from touch to ipad...

    Do I have to buy a special cord to connect my new Ipod Touch with my new Ipad? I synced the new touch with my previous nano, but how do I get all my music on my ipad??

    Cynthia422 wrote:
    Do I have to buy a special cord to connect my new Ipod Touch with my new Ipad? ...
    Do not connect the Devices... is not advisable nor how it is done.
    Cynthia422 wrote:
    ... how do I get all my music on my ipad??
    The Sync Process is via iTunes...
    See here  >  http://support.apple.com/kb/HT1386
    From Here  >  http://www.apple.com/support/iphone/syncing/

  • Linking Questions cs5: Linking within the Same file, Sharing links, file size bloat

    I have to make print cards for my job. Print cards being a 1 page version of the Larger package layout that the place I work manufactures. On this print card is a section for customer info on top, and the print representation on the bottom. What I've been doing is using two files. The first file is the full-scale art on one artboard, and the customer info on the second artboard, but both within one file.
      On the second file, I combine the two. I still use two artboard because it's a front and back print-off. The front page (1st art board, 2nd file), is the customer info at the top (linked from the 2 art board, 1st file) and the full art shrunk to fit below (also linked).  the back page (2nd art board, 2nd file) is the individual elements of the artwork, zoomed in for easier viewing. For the second page, I use masked links from the fullsize art, sized appropriately. The reason it's important that they all use links, is so if I update the art, it will update the print cards as well.
      I've been trying to stream-line this process. This works ok, but the numerous links bloat the file size, and I have to email these to customers. I've started using "Flatten Transparency" on all my Print cards (2nd file) and saving it as a separate .pdf. This cuts out the links, but then all of my masked images are hiding the whole original file behind their mask. So then I started manually cropping each individual masked area, which helps, but once I've gone through this whole process, I don't think I've saved any of the time my template was supposed to save.
    file://localhost/Users/troubleinthemaking/Desktop/PRINT%20MINI%20EXAMPLE.pdf
      My questions are these:
    Is there any way to link to elements within the same file? Like from a different artboard?
      I've successfully 'Placed' an artboard from the same file, back into that file (but a different artboard), but this creates a never-ending Save/Update loop. I'd like a better way to do this.
    Is there a way to have all instances of a linked file, draw from the same place? i.e. When you update a single link, all instances of that Link would update. plus this would, in theory, cut down on the file size.
    Is there any way to automatically have every masked link crop itself after using the flatten transparency command?
      Even if I had to select them first. I haven't had any luck selecting them all and then using the pathfinder crop tool. I've had to do each one individually.
    I know this last one can't really be answered without seeing everything on my machine. I don't even know what info I'd need to give...
    WHY MY FILE SIZE SO BIG!
    Thanks ahead of time.
    -Jefferson

    Jefferson:
    There's a few things you can do to make your files smaller, such as using the Action "Delete All Unused Panel Items" which will removed all unused Symbols, Graphic Styles, Brushes and Swatches from your Illustrator files. Those little items add up to bloating a file.
    You also need to examine the images that you place into your Illustrator file. Any unnecessary layers or channels? Can the files be flattened before being placed in Illustrator? You can always keep a "working" Photoshop file of all that extra goobledeegook and then flatten the file and do a "Save As" and place that in the Illustrator file. And that could be a Photoshop EPS saved with a TIFF Preview and JPEG Encoding (Maximum Quality), which will save some MBs.
    But, you should never sacrifice file size for quality. If these files are going to print, you should be using an FTP program to transfer the files and not email them. Email should not be used for files over 5 MB. If all you want to do is send the customer a Low Resolution PDF Proof for approval via Email, that's fine and dandy, but send the final large size files to the Printer via FTP.

Maybe you are looking for