Two IDs on Table1 and One ID ont Table2 - Must display 4 Columns as Output

Hi,
I'm quite lost in to doing a query with two tables.
I have the following.
Table: RELATED
Column 1: course_id
Column 2: course_id_related_to
Table: COURSES
Column 1 : id
Column 2 : course_name
Table COURSES joins column [id] with columns:
[course_id] and [course_id_related_to] on table RELATED
I need to query the results as one and display on the output [id] and [course_name] and I seem to be having mayor issues as I have to requery recursively again and again the table RELATED.
The output should be something like this:
[course_id] [course_name] [course_id_related_to] [course_name]
Please help!
Edited by: user10607710 on Dec 3, 2010 2:58 PM

Try this
select a.course_id, a.course_name, b.course_id, b.course_name
from courses a, courses b, related c
where a.course_id = c.course_id (+)
and c.related_course_id = b.course_id (+)
hope this helps,
Sandeep Gandhi

Similar Messages

  • I have two apple id's and one I cannot remember the password so I made a new one but to update my apps it still asks for the old password... How do I update my apps?

    I have two apple id's and one I cannot remember the password so I made a new one but to update my apps it still asks for the old password... How do I update my apps?

    All content and data is forever associated with the Apple ID you used to download it. You should have reset the password for the original I'd.
    I forgot.apple.com

  • I have three Safari icons. Two in the dock and one on the desktop. How do I eliminate them?

    I have three Safari icons. Two in the dock and one on the desktop. How do I eliminate them?
    One from the dock and the one on the desktop.

    nezzer wrote:
    the desktop item will not delete or "move to trash"
    In Finder, select the item. Choose File > Get Info (or do ⌘I). Look under General > Kind. Does it read "Alias" or does it read "Application (Intel)"?
    If the latter, then it is likely that you're not allowed to delete because it's actually open. Quit Safari. Check if there is an item called Safari in your </Applications> folder. (In Finder, you can get directly to the Applications folder using ⇧⌘A -- that's Shift-Command-A.) Check if it's an application. If it is, then you have an unneeded copy of Safari. You can delete the one on your Desktop. If there isn't, them move the one on the Desktop to the Applications folder -- that's where it belongs.
    If you're new to the Mac, consult
    Mac 101
    <http://www.apple.com/support/mac101/>
    If you're coming in from the Dark Side, consult
    Switch 101: On Windows, I used to...
    <http://support.apple.com/kb/HT2514>

  • I merged two Ids in icloud and forgot the password of one of it.

    I merged two ids in icloud but i've forgotten the password of one of the id and I am unable to access icloud and the backing up process as well as iTunes.plz help.

    You can't have 'merged' two IDs - this isn't possible - but you may be using separate IDs for iTunes and iCloud, which are quite separate logins.
    Go to http://iforgot.apple.com and sign in with each ID in turn. A new password will be sent to your associated email address.
    If this doesn't work, go to https://expresslane.apple.com ; select 'More Products and Services', then 'Apple ID'. In the next page select 'Other Apple ID Topics' then 'Lost or forgotten Apple ID password' and click 'Continue'.

  • Two apple ID's and one calendar

    Is there any way to manage calendars from two seperate apple ID's on one calendar on my iOS device?
    I have my own personal calendars on my Mac at home which we will call Mac A.  I also manage the AV department at my church and want to use the calendar on the church's Mac Mini which we will call Mac B to schedule staffing.  I have an iPad and want to use iCal to display and edit the calendars on both Mac A and Mac B at the same time without having to log out of my Apple account on Mac A and into the churches account on Mac B on my iPad.
    The only way around it i can think of is to invite Mac A to every calendar entry on Mac B.

    You can set up a second ("secondary") iCloud account on Mac B by going to  >  System Preferences > Mail,Contacts,Calendars, click "+" at the bottom, click iCloud as the type, then enter a different Apple ID (if you don't have another one, tap Get free Apple ID at the bottom and follow the instructions to set it up), then check Calendars to sync your church calendar with the account.  Then on your iPad, go to Settings > Mail,Contacts,Calendars, tap Add Account, tap iCloud, enter the ID and password for the account you set up on Mac B, then check Calendars.  You should now be able to access and manage both calendars on your iPad.

  • Have two apple id's and one won't reset pw

    I have two AppleID's setup and when one gets locked out, I go to the Apple Support site and enter the ID information but I never receive the email confirmation to reset it.  I have checked both registered emails and I don't seem to get anything from Apple.
    This is a reoccuring problem.
    Help please!

    All content and data is forever associated with the Apple ID you used to download it. You should have reset the password for the original I'd.
    I forgot.apple.com

  • Way to have comic book display two pages in landscape and one in portrait?

    I'm trying to use iBooks Author to build a very simple manga-style graphic novel.  It's based on a print book (with a lot of unconventional frame use), so I'm not using any fancy interactive features or individual-frame zoom-ins or such.
    What I want to do is very simple and seems obvious:  In landscape, I want two images (one for each page) to display side by side.  In portrait, I want a single image to fill the whole display.
    Preferably the portrait view will also display one image/page at a time and require page turns, like landscape, rather than a continuous vertical strip of images.
    I assume I'm overlooking something really obvious, but I can't seem to figure out how to get this to work in portrait, and searching, or even buying a graphic novel template from a professional studio (they just disabled portrait), hasn't helped.  I can set up landscape well enough, but if I check the option to share images with portrait, I just get little inline thumbnails in the continuous-scroll-style vertical view, when what I want is large, single-page images.  (Perhaps what I'm really asking is how to disable the infinite scrolling mode in portrait view?)
    I'm sure the answer to this will be something simple that makes me feel like an idiot, but I would tremendously appreciate any help.

    Thanks for the suggestion, K T.
    I'd already read through several of those tips lists, and I was aware that the page turn animation was exclusive to epub documents.  I was assuming there would be some way to display a full-screen image in portrait view with an .ibooks file, but perhaps that's not currently the case (which, admittedly, seems like a huge oversight on devices with less-than-10" screens).
    I could accept a continuously-scrolling portrait mode if that's a requirement, but I'd at least need to expand the page-images to fill the column, which is where I also wasn't having any luck with.  It seems like doing a new section for each page might be a sort of hack, to get around this as well, although it might preclude re-using the images in portrait view.
    (I probably also should have mentioned that I realize I could build this as an .epub or PDF book and get it to do more or less what I want, but there would be annoying faux-gutter and borders that I'd prefer to avoid, and iBooks Author otherwise seems to be capable of producing exactly the material I'm looking for with a lot less work than hand-coding an ePub file.)

  • Reversing two system pro, mac and one for windows system.

    I divided my pro storage to two one for mac and one for windows system. Can I reverse that now? I only want to have mac system on my pro

    Open the Boot Camp Assistant in the /Applications/Utilities/ folder and return the drive to a single partition setup.
    (101315)

  • HT204053 I have two Apple ID's and one I have used to purchase all my apps but now I want to use my other one. But I can not purchase my old apps with my other one. How can I use my other one to purchase apps?

    I can't remember why but I made two Apple ID's, one with a Gmail address and another with a Yahoo address. I have always used my Yahoo address Apple ID to purchase my apps but I have recently deactivated my Yahoo address. So now I want to start using my Gmail address Apple ID but I can't purchase any apps or even my old apps on my iPhone. How can I use and re-install apps through my Gmail address Apple ID on my iPhone? And is there a way to deactivate my Yahoo address Apple ID that I do not want to use anymore?

    Apple does not transfer content bought with one Apple ID to another Apple ID. Apple will not merge two Apple IDs.
    If most of your content was bought with the Yahoo! Apple ID but you now want the Gmail address for your Apple ID, the trick will be to change the address used for the Yahoo ID with the Gmail address. However, to do that you must first free the Gmail address from that other Apple ID. Use the instructions from Apple to substitute another address that is not used as an Apple ID for your Gmail address in the Apple ID with the Gmail address. Then, when the Gmail address is no longer used in an Apple ID, you can use the same instructions to substitute the Gmail address for the Yahoo address in the Apple ID with the Yahoo address.
    Changing the email address you use for your Apple ID -
    http://support.apple.com/kb/HT5621

  • Two Different iPod's and One Computer

    My sister and i both have iPods and i need to know how to keep our songs separate so we dont end up with all of eachothers songs. it would be helpful!!! is there any way to have two iTunes accounts on 1 computer or am i screwed!!

    Well, get this - our family has 3 iPods (all different models, too) and we have a way of keeping unwanted songs out of our iPods. If you have Windows XP, create a new section for every iPod user. If you use one log-in for non-iPod/iTunes business, you can still use it, but keep the others for the iPods only. After, upload your library onto each log-in and just delete the songs that are not yours. Don't worry - your iPod's songs won't be erased because someone deleted them from their iTunes library.
    Or Try This...
    Create Playlists for each other. When you go to plug in your iPod, got to "Edit", "Preferences", then "Update." click on the box that says to update selected playlists. Every time you update, just change the selected list.
    Hope this helps

  • I have two Apple ID's and one is used for my iPhone, but I want to start using a different one. Will my library still retain the apps I bought or should I start over with a whole new iTunes library?

    ^^ that's the question... Want to delete the current and start over with the one I've already created, but want to keep all my songs and apps. Is it possible?

    You can have apps and music from multiple IDs on your computer or your phone, but you will need the password for each one to install updates or to reload the content. You cannot merge the content from one ID into another, however.

  • Two iPhones with contacts and one iTunes account

    Problem at hand:  my wife and I share an iTunes account and iTunes library but want to keep our contacts separate. How can I sync the phones to save the contacts in two different locations??

    hi mate when you open itunes press shift button that will give you make new itunes all you have to do is click wich one you want

  • Each time I open firefox i receive two unwanted pop ups of the "you have chosen to open..." variety. two for firefox setup and one for a word document how do i stop this?

    i open firefox and get two popups that state "you have chosen to open and then its for firefox setup 3.6.1 or beta which i once used and uninstalled. a second is for a file in my documents--always the same file.

    Delete downloads.sqlite (plus downloads.rdf, if it exists) in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    See http://kb.mozillazine.org/Unable_to_save_or_download_files#Manually_delete_download_history

  • Two XP PC's and one Time Capsule

    Thanks in advance for your help on this one! I've scoured the boards and can't seem to find my same predicament.
    I've installed the airport utility on a PC running XP, and the Time Capsule is serving as my main media library for iTunes, Apple TV, etc. I'm all good there. What I can't seem to figure out is how to allow another PC in the house to access the shared drive on the Time Capsule.
    From what I can tell, I am using all of the correct settings on the Time Machine. I just can't figure out how to allow the other PC (w/out the airport utility installed) access to the shared disc. Do I have to install the airport utility on the 2nd machine, as well?
    Many thanks, again, for any assistance you may be able to offer.

    1. Yes, you can backup either wired or wireless, and I do recommend doing the first backup wired. When I say wired, that is using an ethernet cable to connect to the Time Capsule via one of the LAN ports.
    2. You can setup internet anytime. Just hook up the ethernet cable from your cable or dsl modem into the WAN port of the Time Capsule and then go through Time Capsule setup using AirPort Utility.
    3. You don't need to unplug your internet or another computer when backing up. Whether you backup via wired or wireless the Time Capsule will only allow one computer to backup to it at a time and it will have one of the computers wait if both computers try to back up at the same time.
    4. The USB port on Time Capsule is used only for external hard drives and printers. You cannot use the USB port for backup of your computer, nor would you want to since it would be a lot slower than using ethernet.

  • Tough One:  3 iPods, Two i-Tunes Accounts, and one machine

    My wife and I have three iPods between us (60GB and 2 Nanos). At present, each is tied to three seperate machines (all running Windows XP).
    We would very much like to build a new machine (Windows XP) and have it serve as our repository for all of our tunes. We'd also like to be able to use all three iPods with this one machine.
    Have NO clue as to the best way to transfer the music (though I suspect from each iPod to the one machine is probably best) and how we might manage the tunes between devices (profiles?) once we get everything in one place. Any help you could provide would be greatly appreciated.
    Thanks!

    Hi, InfoSec.
    Have a look at this article in the Apple Knowledge Base for the main options for transferring your music from one computer to another.
    You may also find Hudgie's User Tip of interest.
    Once the music is transferred, this Knowledge Base article explains how to use multiple iPods on a single computer.
    Post back if you need anything clarified.

Maybe you are looking for

  • Error while creating a new asset in BCC.

    Getting below errors while creating a new asset(catalog/category) through BCC. I have imported the required data from CIM and install.bat from BIZUI. /atg/dynamo/servlet/sessiontracking/GenericSessionManager/KDzDSgGcJTS9nwvGpkr9wpyz4nnGKWPYs4QFFJ87Q1

  • Sony Xperia Z1 will turn on when charging but as soon as it's taken off charge, it turns off.

    My phone was on charge connected to my PC on about 20% battery when it suddenly turned itself off. It refused to turn on so I plugged it into a wall charger and then after I let it charge for 20 minutes, I was able to turn it on. However, as soon as

  • HOW DO I RESTORE MY IPHOTO ON MACBOOK PRO

    When i go to open iPhoto, I get a message that says " Your photo library is damaged or unreadable & can not be opened. Please restore from a backup" How do i restore and/or delete iPhoto and get a new version running? Thanks, D New

  • Control to  create or change material master

    I want to let a group person to create or change material maters only with material group 16. I found an auth. obj. M_MATE_WGR, and set activity as *, while activity goups as 16. But the nothing happened when I change a material with material group 1

  • Relationship Type field in Contact Person Relationship Web Ui

    Hi In SAP CRM we can differentiate a relationship using relationship type. This field is available in SAP GUI, in "Contact Person Relationship" category, whereas it is not present in Web UI screen for contact. In our project there is requirement to m