Why Left and Right Joins if only one of them can serve the same purpose?

I understand that left join is used to display all the records from left table whereas the right join is used to display all the records from right table in a join.
However, if we switch the positions of the join tables and perform left join we can get all the records of the left table.
A left join B -> will give all records from A
A right join B ->will give all records from B
B left join A -> will again give all records from B.
The order in which the data is displayed(ie the field order) can also be maintained in the SELECT clause.
So, Why do we have left and right joins separately in existance, when only one of them can serve the same purpose?

Hi,
I think it's because it is sometime more natural to outer join on left or right.
In your data model (or the query you are writing), there is some kind of hierarchy between tables : I feel more natural to have the table with lowest hierarchical level (the root table) on the left. So I sometimes prefer to right outer join...
This is a very personal feeling, I must admit.
To me what is strange is to have chosen left and right as they refer to a "latin" reading direction => forward join and backward join would be more meaningful for people that read from right to left.
+And I prefer the new joining syntax that doesn't us the {noformat}(+){noformat} sign...+

Similar Messages

  • I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the maste

    I am writing a book and need to have the margins alternating left and right pages, so that there is sufficient margin for the binding. I have tried different inside and outside margins, the same inside and outside margins, facing pages, changing the master, and I cannot get the margins to alternate at print time. The larger margin is always on the left. Can anyone please help me on this, as I have spent hours and lots of ink.

    Set up as facing pages with a larger inside margin.

  • A 6 and a 6 Plus with seperate phone numbers are receiving txts sent to only one number. They share the same iTunes acct. Is this the problem?

    A 6 and a 6 Plus with seperate phone numbers are receiving txts sent to only one number. They share the same iTunes acct. Is this the problem?

    Hmm... Just found out the 6 and 6 Plus were updated to 8.1.1 today. Coincidently, that's when this started.
    Another thing is both phones ring and you can answer either one, or both. fwding is not selected.
    Thanks Kilted Tim.

  • Synchronized my iPhone 3G 8G to copy the contacts and calendars from Outlook, I wonder if I can do the same synchronization to copy the same data from Gmail

    Synchronized my iPhone 3G 8G to copy the contacts and calendars from Outlook, I wonder if I can do the same synchronization to copy the same data from Gmail ?

    Right, I finally managed to get it sorted out.
    iCloud only accept version 3.0 vcards, and the one I was using were version 2.1 so that's why it wasn't picking it up. So the easy way to get that sorted out is, use a gmail account.
    I know you don't wanna do it because you think it's too much hassle and stuff, but trust me it only takes 5 minutes and that's it.
    1. Create a Gmail Account.
    2. Export your Old VCard files to the Gmail Account.
    3. Now Import them from Gmail to your PC again.
    And, that's it, that's just makes the new imported version in 1 file contains your all contacts in version 3.0. Now you can just upload that on icloud and then sync it with your iphone.
    That's what I did and it worked, and I am sure if you wanna replace this file in the Contacts folder under your User Account in Windows and then try to sync Contacts in Tunes, it should work, but as I said, I did it with iCloud and it worked for me. So aye, that's pretty much it. Phewwww..
    Been searching for it for the whole day and it took 5 minutes in the end, badass...
    Anyway, don't lose hope and always Google for everything!

  • Left and Right-Clic​k Only Working Half The Time

    Ok, I have a Pavilion G6, A6Y36UA#ABA  The last few days, my mouse (trackpad and buttons on the laptop NOT an external one) works fine but I can't left-click on the desktop, start menu (or apparently Paint?). Everytime I try to left-click, the right-click menu pops up (except in Paint. It doesn't do anything in Paint except not work). I tried right clicking thinking it was backwards but that doens't work.
    I can left click as normal on the task bar, in Microsoft Word and in my Internet browser but I can't RIGHT click. (I can use the keyboard buton to bring up the right-click menu but it's still a pain) and for some reason, once I open more than one tab in Chrome, I can't go back to the earlier tabs unless I first close the tabs opened after it (also annoying).
    I've restarted the computer. Uninstalled the touch pad driver, restarted, reinstalled the device driver, restarted and I'm STILL having problems with it. Please help!

    I understand that your right-click and left-click buttons aren't quite working the way they should.
    What happens if you boot into a clean boot state?
    http://support.microsoft.com/kb/929135
    Also, what happens if you boot into safe mode with networking? This can be done by turning the system on and pressing F8 about once a second to get the options for safe mode.
    ↙-----------How do I give Kudos?| How do I mark a post as Solved? ----------------↓

  • Time Machine fail on only one of two Macs on the same Time Capsule

    I have two computers connected to a Time Capsule, one Macbook (13'', 2.1 GHz) and one Macbook Pro (17'', 2.66 GHz).
    For the past four days, the Time Machine has been failing on my Macbook, while the Macbook Pro works perfect. I get the following error message:
    "Unable to complete backup. An error occurred while copying files to the backup volume."
    I can access Time Machine backups as recent as 7/30/2010.
    Troubleshooting done (in order of trial):
    - Removed any files from Time Capsule other than backups (I previously stored music and movies that I never used there)
    - Restarted MacBook
    - Restarted Time Capsule
    - Used Disk Utility to Repair Disk - no errors found
    - Deleted com.apple.TimeMachine.plist
    Any suggestions?
    Thanks...

    abelmann wrote:
    Update:
    TM successfully backed up on an external HD.
    Well, that's odd. It certainly looked like something was wrong with that system database.
    Any suggestions? Can I erase only the failing backup from the TC?
    You can open the disk image and delete the "in.Progress" file. That's a "last resort" sort of thing. Connect via Ethernet if at all possible. Double-click the sparse bundle to mount it, then double-click the disk image inside it. There you'll find a single Backups.backupdb folder, containing a single folder with the computer name. Inside that will be a folder for each backup, plus the "in.Progress" file (actually a "package.") That may take a while, and I'm not sure it will fix the problem. Then repair the sparse bundle, by dragging it into Disk Utility's sidebar, per #A5 in Time Machine - Troubleshooting.
    Or, you can delete all that Mac's backups, but it will take a while and/or be rather tedious. See the last point and/or the blue box in #Q5 of Using Time Machine with a Time Capsule (or use the link in *User Tips* at the top of this forum).
    And again - thank you for being somewhat of a personal helpdesk!
    You're entirely welcome -- that's what these forums are for!

  • I want to send my mails from Gmail to all of my groups but no one of them can see the others and secondly I like to send them in groups. If this app is free is better if not its ok

    1.- send my emails from gmail to groups
    2.- no one from the group be able to see the others that I send the mail. Is there any app...just name it

    1.- send my emails from gmail to groups
    2.- no one from the group be able to see the others that I send the mail. Is there any app...just name it

  • HT204370 audieo and vidio are matching. how do get them to be the same

    Movies that i have purchaced the audio video do not macth. is there a way to fix this?

    You can't, because Apple won't let you merge two different IDs.

  • Can i switch left and right outp

    ok, i found 4 old speakers in my basement, and decided to make my closet into a computer room with extreme surround sound. I got my stereo system as well, and made myself a nice little 4.0 setup. (i only found one stereo in my basement, so the front channel has 4 speakers, and the back has the other 2). I bought a sound blaster audigy, and it sounded great.
    However, i then noticed my two old desktop speakers, and they still worked great. So, i decided to make a 6.0 setup. However, my closet is really long, and there was no place in the back for a speaker. So, to make a long troubleshoot short, i soldered the lefft speaker wire to an extremely long audio cord and taped the speaker (using monstrous amounts of duct tape) to the wall above the doorframe.
    I got it all hooked up, with those 2 new speakers being front center and rear center. I booted up and... ****** BACKWARDS!!!!! The rear center is in the front center spot and vice versa. I was wondering if there was any way to tweak the settings so that you could switch the speaker assignments. Basically, i need to switch the left and right output on only one of three output channels. (im usin the fourth for a mike)
    Please tell me anything you know, even if its probably not true or if its risky, i cant switch the speakers because i cant solder the 2-channel output cord to make it longer, and it would kill the wal to rip off all that tape. Thanx.

    Try Audio MIDI Setup (Utilities folder. Set "Properties For" to Line Output and click "Configure Speakers".
    If that doesn't work, try using Audio Hijack Pro
    <http://www.rogueamoeba.com/audiohijackpro/>
    It has a "Swap Channels" effect. It is not free, but the free trial should work fine if you are not recording.

  • Why we need two Joins (Left and Right)

    Hi,
    Why we need two joins while we can do it just by replacing the tables?
    Query 1.
    SELECT e.ename, d.dname
    FROM emp e LEFT JOIN dept d ON e.deptno = d.deptno ;
    Query 2.
    SELECT e.ename, d.dname
    FROM emp e RIGHT JOIN dept d ON e.deptno = d.deptno ;
    The same result of Query 2 can be get from following query with LEFT JOIN.
    Query 3.
    SELECT e.ename, d.dname
    FROM dept d LEFT JOIN emp e ON e.deptno = d.deptno ;
    So why we need LEFT and RIGHT Joins while we can do this by just replacing tables position ( as in Query2 and Query3).
    Regards,
    Danish

    Danish wrote:
    Any other suggestions?What do you find lacking in the answers that have been suggested so far?
    Why would you restrict the syntax so that you only had one of the two syntax options? That forces developers to write queries in a particular way. If you only had a LEFT OUTER JOIN operator, for example, the first table would always have to be the one that drove the number of rows in the result set. Sometimes (most of the time in my experience), that's a sensible way to approach the problem. But occasionally you get problems where you want to start with the sparse tables and join to the denser tables and having the RIGHT OUTER JOIN makes it much easier to approach the problem that way.
    Re-ordering the tables in a query using ANSI syntax is also not necessarily a trivial endeavor. If you're working on building up a query (i.e. join 3 tables, verify the results, join a fourth table, verify the results, etc.) it's potentially non-trivial to change the order of the tables-- you may find that you've inadvertently changed the semantics of your query and now you have to backtrack a bit to verify the new logic.
    It's also the same reason that you have multiple ways to write a loop or multiple ways to iterate through a collection. While it's completely possible to rewrite any loop in the form
    LOOP
      <<do something>>
      EXIT WHEN <<something>>
      <<do something else>>
    END LOOP;that's not always the clearest way to express a piece of logic. Generally, a nice FOR loop or a nice WHILE loop is simply a clearer and cleaner solution. Similarly, sometimes a LEFT OUTER JOIN is a clearer way of expressing a SQL statement and sometimes a RIGHT OUTER JOIN is a clearer way of expressing it.
    Justin

  • Is there a way to tie to iPads together so that when you turn a page with a tap on one, both iPads turn a page.  I am using the ipad to replace piano sheet music.  The challenge is that ordinary sheet music is on both a left and right page.

    We are trying to use an ipad to replace ordinary paper sheet music on a piano.  When truning ordinary paper pages, it is sometimes hard to grasp one page, turn it quickly and get it to stay turned.  The idea with using an ipad is that a tap turns the page, it stays turned.  However,,,,,ordinary sheet music is on both left and right pages.  With one turn you get 2 new pages.  The ipad, being smaller results in only one page and therefore twice as many page turn taps; more taps equals less hands on the piano.  If we could tie 2 ipads together and get them both to turn the page simultaneously it would be nice.  We are trying to get used to using the ipad.  We are using ForScore app to get sheet music into the ipad; we could load one with odd pages and one with even pages.  Maybe this is getting too complicated.
    Anyway to tie 2 units together
    John

    No way to control one device from the other.  But, according to ForScore, you should be able to display two sheets side by side in landscape mode (2-up view)?  Not sure if that helps as it must make the actual print smaller to do so.
    http://www.forscoreapp.com/about/#interface

  • I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels outputing different signals, to sound like the kit has been panned across the stereo field)?

    I'm using GarageBand 10.0.1. Do the built-in drum tracks only come in mono format, or is it possible to make them true stereo (i.e. Left and Right channels putting out different signals, to sound like the kit has been panned across the stereo field)?

    All the Drum Kits available for GarageBand are mixed in stereo.
    Logic provides the same 18 Drum Kits also as "Producer Kits", which are multi-track outputs,. Each Drum Kit Piece (Kick, Snare, HH, etc) and also room mice and overheads are routed to individual channel strips.
    Here is a screenshot of one Drum Kit in Logic Pro X with individual Channels Strips. Each Channel Strip can be loaded with individual effects (compressor) and adduced with individual sends, etc.
    What that means is that all the Drummers are professionally recorded and sampled with individual mics. The Stereo Drums Kits are just "stereo mix-downs" for easier handling and less CPU demand. I explain all the details about the Drummer ecosystem in my graphically enhanced manual "GarageBand X - How it Works"
    Hope that helps
    Edgar Rothermich
    http://DingDingMusic.com/Manuals/
    'I may receive some form of compensation, financial or otherwise, from my recommendation or link.'

  • My ipod's music quality is inferior. It doesnt have the surround sound/ left and right audio channel unlike my brothers ipod? is there a problem with the chip?

    I have an ipod touch 4g (8GB), I got this about 2.5 months ago, the same time my brother get his. My problem is that I noticed that audio quality is better on his device than mine. I have been listening to music and had different music devices before (non-Apple product and mobile phone) and the quality of music is better when I used to listen to those devices as well as my brother's ipod touch. Im referring to the left and right audio channels. Im not so good about the technical stuff but the best explanation I can give you is in a music or a movie, there's an effect wherein you can here a sound only at the left ear phone/speaker that you cant hear at the right earphone/speaker. I mean for example in a song, a guitar intro can be heared only at the left
    ear while the background music plays on the other ear. Or when theres and echo effect on the song that alternates sound on the left and right ear. I hope youre getting what Im trying to say. Im bothered that my ipod is fake or has an internal problem on the chips or something because I didnt bought this at an Apple Center/Mac Center. I bought it on a retailer. I am not able to visit any store or Genius Bar  or contact an apple specialist through phone because of my work schedule and work load.  I have contacted the retailer before when I tried to return it for replacement or repair but he told me that it is under Apple's warranty, not theirs. I do hope that I can get a help from you because I want to really enjoy my device. Thank you and Im looking forward for the responce/assistance form you.

    I suggest you don't apply pressure to the screen - it's a Touch - you touch the screen not push it.
    Phil

  • Left and right side of screen does not register mouse clicks.

    The left and right side of my screen (when maximized) does not register a mouse click. I would estimate about 10 to 15 pixels in (top to bottom) before a button will register a click.
    If I work with in firefox not maximized everything works fine. As it stands I have had to add buttons to the left and right side of my Firefox navigation area to utilize the back and home button. I am also not able to use my scroll bar do to this situation with out connecting an external mouse.
    Operating system: Windows 7 Professional (64bit)
    Resolution 1280x800
    Computer: HP TouchSmart tm2 (1070us series)
    This laptop does have the touchpad type mouse, I do not think this is the problem though as it will work if firefox is not maximized.
    Assistance with this would be appreciated. I Love firefox but this is to much of an annoyance to deal with continually.

    Not sure if its ever overheated... I've never left it in a hot car if thats what you mean. Sometimes it gets very hot if I'm using EDGE for a while. I don't push hard which is why I don't think I caused it...
    I will bring it in this weekend and see what they say.
    I also think that the speakerphone sounds fuzzy and muffled a lot more than it did when I first bought it. So just another reason to bring it in.

  • Splitting left and right channel

    I need to split the left and right channels of the audio output.  I have a stereo cable from my new HP  Pavilion 15 Notebook PC, running Windows 7 Home Premium,  to an amp that takes the channels separately.  The amp allows me to control the volume for the channels separately.  This does not work on my new laptop.  I get both channels on both ends of the cable.
    I have an older HP G60 Notebook PC, running Windows 7 Home Premium, and the same cable and same amp does just what I need.
    Is there a way to configure the audio out port in my new PC so it works like the audio out port on my old PC?
    Vomocid

    floorjam wrote:
    Hello - what is the best way to swap left and right channels on a master?
    If I use the direction mixer and reverse the phase is that effectively what's
    happening?
    No, not at all. Reversing the phase will not swap anything, it'll just reverse the phase.
    Use the Gain plugins' Swap button for that. The Gain plugin is under {inserts}>Utility>Gain

Maybe you are looking for

  • Sample for Business Objects Web Services for Admin Tasks

    Hi, Anyone has any idea that where can I get a sample using Business Objects Web Services for Admin Tasks like: - How To Set Security Rights - How To Manage Categories - How To Manage User Accounts - How To Manage User Groups Thanks, Harshad

  • Deauthorizing computers on itunes - problem with aol email

    I understand you can only authorize up to 5 computers per apple ID and cannot combine apple IDs. I am trying to play old songs purchased with an old aol ID. It appears that myscreenname and [email protected] are two different apple IDs. I am able to

  • Can you give me an example?

    I use com.sapportals.htmlb.Tree to build a dynpage and  set a NodeExpand envent on a TreeNode.In the event I want to create subnodes of the TreeNode.But I don't know how to transmite the TreeNode to the event.I mean I don't know how to know which Tre

  • Self-Paced Learning - Bookmark not working in Captivate 5

    I followed the directions of adding a Table of Contents to one of my captivate projects and selecting Self-Paced Learning in order to create a bookmark but this does not work.  I have saved it as Adobe Flash 9 and Adobe Flash 10 but I am not getting

  • EntityManager.setFlushMode(COMMIT) Vs. Query.setFlushMode(COMMIT)

    [P-331 of EJB3 In Action Book] states: "By default, the database flush mode is set to AUTO. This means that the Entity-Manager performs a flush operation automatically as needed. In general, this occurs at the end of a transaction for transaction-sco