Having issues with a left join, getting ORA-00904 error

Ok this is something very similar to what I am facing, but dumbed down. None of these columns or tables names exist in real life (Very paranoid company I work for, understandable though) but the fundamental problem I am having is like below.
Basically I know I could have done something similar to this is MS SQL (Or am I dreaming?). If I am right or wrong I need to know a way around this.
Obviously if you comment out the "CAL.WEEK_SINCE_2005" and "AND CUST.week_since_2005 = CAL.WEEK_SINCE_2005" it would work. But I really need it to display the date as well. So it can be group'ed by week since 2005.
I will be joining other statements to this. I am hoping on doing this in one select statement instead of creating multiple tables as I am now. All the other joined tables will follow a VERY similar layout to this. So something like this is need to obtain the look.
When ran I get the following error.
I look forward to learning what I did wrong and how I can fix it. :)
select ORG.ORGANIZATION_NAME,
CUST.CUST_COUNT,
CAL.WEEK_SINCE_2005
FROM organization ORG,
calendar CAL
LEFT JOIN (
SELECT CAP.CURRENT_STORE,
CALEN.week_since_2005,
count(CAP.inactive_date) CUST_COUNT
FROM CUST_AGREE_PAST CAP,
calendar CALEN
WHERE CAP.active_date is not null
and CAP.inactive_code in ('T')
and CAP.inactive_date between '01-sep-07' and sysdate
and CAP.INACTIVE_DATE = CALEN.CALENDAR_DATE
and CAP.RSN_CODE_ID in (select rsn_code_id from reasons where title in ('FAIL', 'NO CALL'))
GROUP BY CAP.CURRENT_STORE,
CALEN.week_since_2005) CUST
ON PO.CURRENT_STORE = ORG.ORGANIZATION_NAME
AND CUST.week_since_2005 = CAL.WEEK_SINCE_2005

Just noticed a problem (there might be others):
FROM organization ORG,
calendar CAL
LEFT JOIN (You cannot do that - you are mixing Oracle and ANSI join syntax. You have to do one or the other:
FROM organization ORG
JOIN calendar CAL on (ORG.col = CAL.col)
LEFT JOIN (....)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • Having issue with update Adobe 11.0.06.  Error 1603.

    Having issue with update Adobe 11.0.06.  Error 1603.

    You should have gotten this information with the error: "Shut down Microsoft Office and all web browsers. Then, in Acrobat or Reader, choose Help > Check for Updates. See also Error 1603 | Install | CS3, CS4 products." Also, be sure you log in as the administrator and disable anti-virus.

  • I'm having issues with Safari and Mavericks. It encounters errors frequently and cannot attach docs to my web e-mail without redundant steps. Any solution ideas?

    When using my web e-mail (Outlook web app) Safari frequently closes the page and says it must reload the page...then it errors-out. When this happens I must close Safari completely then reopen it, and reopen Outlook web app. My cache is cleared frequently (at least once per day). I am also unable to directly attach docs to e-mails - I must go the through the process twice. This never occured before Mavericks.
    Any ideas on a solution...anyone else experience issues with Safari/Mavericks operations?

    Hello Cabamyk,
    It sounds like you are having issues loading this web app for Outlook. I was thinking that there may be a 3rd party add-ons interfering with Safari or perhaps one may need to ge re installed. Use this article to help troubleshoot add-ons:
    Safari: Unsupported third-party add-ons may cause Safari to unexpectedly quit or have performance issues
    http://support.apple.com/kb/ts3230
    Use the add-on's uninstaller, if possible
    Quit Safari.
    Remove any unsupported third-party add-ons you've installed (see if the add-on's installer includes an uninstall feature).
    Open Safari again.
    If these steps fix the issue you were having, check the website of the software's developer to see if there is an updated version available, or avoid using the add-on.Manually uninstall third-party add-onsIf the software doesn't have an uninstall feature, quit Safari and try manually moving the third-party add-on files. These files are usually installed in one or more of the following locations:
    /Library/Internet Plug-Ins/
    /Library/Input Methods/
    /Library/InputManagers/
    /Library/ScriptingAdditions
    ~/Library/Internet Plug-Ins/
    ~/Library/Input Methods/
    ~/Library/InputManagers/
    ~/Library/ScriptingAdditions
    The first four locations listed are in the root-level Library on your hard disk, not the user-level Library in your Home folder.The tilde (~) represents your Home folder.
    To access the Home folder in OS X Lion, OS X Mountain Lion, or OS X Mavericks, open the Finder, hold the Option key, and choose Go > Library.
    To access the Home folder in Mac OS X v10.6 and earlier, open the Finder and choose Go > Home. Then, click the Library folder.
    If the issue is resolved by removing items from the above locations to a different location, return the items one at a time and test Safari. That way you can determine which item is causing the issue. Once identified, remove the problematic item and put the others back. Check for updates to the items that are found to cause issues, or report the issue to the add-on developer.Important: When removing items from the above locations, do not put them in the Trash. Instead, put them in a new folder or on the desktop while troubleshooting. If removing the item does not resolve the issue, you can put it back where it came from. In Mac OS X v10.6 or later, you can use the Put Back feature of the Trash to automatically put items back where they came from.Files that should not be removedThe following items should not be deleted from your system:
    /Library/Internet Plug-Ins/iPhotoPhotocast.plugin
    /Library/Internet Plug-Ins/nsIQTScriptablePlugin.xpt
    /Library/Internet Plug-Ins/Quartz Composer.webplugin
    /Library/Internet Plug-Ins/QuickTime Plugin.plugin
    /Library/Internet Plug-Ins/QuickTime Plugin.webplugin (Mac OS X v10.5.x only)
    /Library/Internet Plug-Ins/VerifiedDownloadPlugin.plugin (Mac OS X v10.5.x only)
    Reinstalling the above plug-ins requires reinstalling OS X. Some application or system updates may restore specific plug-ins.
    Thank you for using Apple Support Communities.
    All the very best,
    Sterling

  • Getting ORA-00904 ERROR

    Hi,
    select statmnnt is giving output but while inserting is failing
    getting B: MGR_NUM invalid identifier
    NSERT INTO assc ( b.assc_nm,
              b.STATUS_DT,
              b.STATUS_ID,
              b.first_nm,
              b.last_nm,
              b.curr_title_nm,
              b.curr_field_sales_ind,
              b.MGR_NM)
              select c.assc_nm,
              c.status_dt,
    decode(c.STATUS,'ACTV',1,'INAC',2),
    c.first_nm,
    c.last_nm,
    c.curr_title_nm,
    'N',
    c.MGR_NM
              from ASSCGENTABLE_NEW c
              where c.flag='I';

    should be...
    INSERT INTO assc (
    assc_nm,
    STATUS_DT,
    STATUS_ID,
    first_nm,
    last_nm,
    curr_title_nm,
    curr_field_sales_ind,
    MGR_NM)
    select c.assc_nm,
    c.status_dt,
    decode(c.STATUS,'ACTV',1,'INAC',2),
    c.first_nm,
    c.last_nm,
    c.curr_title_nm,
    'N',
    c.MGR_NM
    from ASSCGENTABLE_NEW c
    where c.flag='I';                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Hi, I'm having issues with my airdrop. I have looked in my finder perfrences and didn't see the check box for airdrop. I have a macbook air running on 10.9.4 Mavericks. Does anyone know how to get my airdrop back? Thanks.

    Hi, I'm having issues with my airdrop. I have looked in my finder perfrences and didn't see the check box for airdrop. I have a macbook air running on 10.9.4 Mavericks. Does anyone know how to get my airdrop back? Thanks.

    Mac Basics: AirDrop lets you send files from your Mac to nearby Macs and iOS devices - Apple Support

  • I was having issues with my 80G Video iPod and had to restore it, but now it seems all of my music on it previously is "corrupt" . How did all my songs get corrupted and how do I fix them?

    I was having issues with syncing my 80G video iPod, so I restored it, and now all my songs in my library are "corrupted" and I can't get them back on my iPod. I keep getting error(-69). How did my songs all get corrupted, and how do I fix this without having to purchase these songs all over again?

    Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time; you can see what content you can download here:
    http://support.apple.com/kb/HT5085
    You can also re-download content using an iOS device.
    For more information, see:
    http://support.apple.com/kb/ht2519
    This if course will not apply to songs you did not buy through the iTunes Store.
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • Hi am having issues with getting the list of users from the Active Director

    Hi am having issues with getting the list of users from the Active Directory, can anyone help me with this!

    Hi Jason,
    Try this:
    1.  In Ultiboard select Tools>>Netlist Editor>>Pins, press the Delete button
    2.  Select all nets in the Select the Net to Delete dialog and then press the Delete button.  This will clear all nets in the layout, don't worry all traces, parts are still on the design.
    3.  Go to Multisim and select Transfer>>Forward annotate to Ultiboard.    This will add all nets that you removed back and it should fix the pin problem
    Tien P.
    National Instruments

  • Is anyone having issues with getting apps.

    Is anyone having issues with getting apps? It keeps taking me to my billing info for some unknown reason. it says (invalid address) when I try to purchase or update apps. Anyone got any answers to help me please??????

      YES I TO THOUGHT I HAD DONE SOMETHING TO MESS MINE UP, AND TRIED FOR 2 DAYS TO GET AHOLD OF SOMEONE TO SEE IF MY CC INFO HAD BEEN HIJACKED BUT WITH TODAY'S SO CALLED TECHNOLOGY YOU CAN NOT TALK TO A LIVE PERSON WHEN DEALING WITH ITUNES SO IT DOESN'T MATTER WHAT HAS HAPPENED YOU WON'T EVER REACH ANYTHING BUT YOUR OWN COMPUTER..LOL
    AFTER I FOUND THIS SITE I SEEN THAT NOT ONLY I AM HAVING THIS SAME PROBLEM, MANY , MANY MORE ARE SO I GUESS WHEN APPLE HAS DECIDED THEY HAVE LOST ENOUGH $$$$$ THEN THEY WILL FIX IT... GOOD LUCK TO YOU!!!!

  • I'm having issues with my gmail accounts in Mail since I upgraded to OS X Mavericks. All the mails start downloading again! How do I correct this so that only the new mails in these accounts get downloaded?

    I'm having issues with my gmail accounts in Mail since I upgraded to OS X Mavericks. All the mails start downloading again! How do I correct this so that only the new mails in these accounts get downloaded?

    I'm having issues with my gmail accounts in Mail since I upgraded to OS X Mavericks. All the mails start downloading again! How do I correct this so that only the new mails in these accounts get downloaded?

  • Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2.

    Hi, I had recently purchased ipad3 and but obviously have been having issues with heating up and some minor issues with video playback etc. Apple has agreed to replace my device. I need help in deciding whether i should get a new ipad3 or opt for ipad2. Seller is willing to replace it with ipad2 as well..
    Have also heard that the ipad3 revamped version is around along with the mini pad rumor..too much information - lot's of confusion pls help

    Lindsay,
    Your iBookG4 is still a pretty awesome Mac. Like already said, it has the power to run Leopard, but it depends if you have an internal DVD drive.
    Then I suppose you have to add up the cost of the OS, perhaps another 512MB RAM, iLife 08 and replacements for any favourite apps that you currently use (Leopard breaks a lot of stuff, but Intel breaks even more). Compare it to the cost of a new MacBook, which wil have all of that included and be 3-4x faster too.
    It also depends on what you want to achieve with your iBook. My PMG4 still cuts it today, I still use it in preference to my new Mac Pro, It's about the same age as your iBook, and I'll only stop using it when it becomes "painfully" slow. My 1 year old son currently uses the Mac Pro (parts for a Mac Pro are easier to replace than those for a PMG4).
    I think your choice is simple, if you can a cheap copy of Tiger, use that, it'll get your iPod Touch up and running. It came in DVD and 4 CD version (by request).
    Leopard will work for you too but a lot of the best eye-candy requires quite a meaty graphics card and you may need a RAM upgrade and replacement software - OS9 Classic is not supported in Leopard.

  • TS1398 After the recent update of iOS 7.0.6 my phone is having issues with wifi connectivity. It gets disconnected most of the time. It is very toublesome while watching videos, sending pics, chatting and so on. Please advise. Thank you.

    After the recent update of iOS 7.0.6 my phone is having issues with wifi connectivity. It gets disconnected most of the time. I went through support page and done with "Reset Network settings" too but it doesn't help. It is very toublesome while watching videos, sending pics, chatting and so on. Please advise.
    It works fine in LTE network. The problem is with WIFI only.
    Thank you.

    Hey Siddh.s!
    Here is an article that will help you troubleshoot this issue with your Wi-Fi connections:
    iOS: Troubleshooting Wi-Fi networks and connections
    http://support.apple.com/kb/ts1398
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Anyone else having issues with third party changers saying "this accessory not supported". I get it every time I plug my phone. It only started after the iOS 7 updates

    Anyone else having issues with third party changers saying "this accessory not supported". I get it every time I plug my phone. It only started after the iOS 7 update?

    That's because part of iOS7 had code in it to look for and recognize unsigned cables.
    In other words, Apple knew that people used non-signed ones and didn't care....until last month when they decided to care. People with iOS6 and lower should experience no issues (unless Apple patches those iOS versions) but folks with iOS7 will need to deal with it.

  • Hello every one, am having issue with my itunes, for some reason or another my icon in the itunes doesnt change, its stuck on Songs, and will not let me get playlist or anything else. can any one tell me if that can be fixed

    hello every one, am having issue with my itunes, for some reason or another my icon in the itunes doesnt change, its stuck on Songs, and will not let me get playlist or anything else. can any one tell me if that can be fixed

    http://support.apple.com/kb/TS3694#error-1
    Error 1 or -1
    This may indicate a hardware issue with your device. Follow Troubleshooting security software issues, and restore your device on a different known-good computer. If the errors persist on another computer, the device may need service.

  • Having issues with picture messaging get told to go to settings, then general, then network then cellular  data network. my problem is there is no such option my  phone is a 3gs

    having issues with MMS messaging instruction for setup,  are to gotto settings, then general, then network then cellular data network.My problem is there is no cellular data network optiion on this page have tried resetting phone , no good .Help.

    That option does not exist depending on who the carrier is.
    Who is the carrier?  Are they a supported carrier?
    Have you tried Settings > General > Reset > Reset Network Settings?

  • Ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second

    ipod nano 7th generation having issues with the UI. Out of box everything worked great. Once I snyc the device and it finished, the UI becomes unuesable. You have to double tap every icon in order to open music, videos, etc.  I cannot swipe to the second page of icons,  black box appears around an icon and then switches to a different one anytime I swipe. A box even appears around the time and battery power. iPod & iTunes are both updated. What is the FIX on this issue?

    I had this problem as well.  This is what I found by searching online.  I tried the fix on my nano 7th gen and it worked.  I hope this helps you.  Make sure to use two fingers for sliding and double-click the icons to get into settings.  Good luck.
    It would seem that Voiceover has been enabled on your iPod Nano. The following article contains information regarding Voiceover, and how to disable it once it's been enabled.
    iPod nano (6th generation and later): How to use VoiceOver
    http://support.apple.com/kb/HT4317
    To turn off VoiceOver on iPod nano using VoiceOver gestures
    From the Home Screen, swipe right or left with two fingers until you see or hear "Page 2 of 2" on iPod nano (7th generation) or "Settings" on iPod (6th generation).
    If the icons have been rearranged, or if there are more than four Home screens, you may hear something different.
    Slide one finger around the screen until you hear Settings. 
    Double-tap to open Settings. 
    Slide your finger up or down the screen until you see or hear General, then double- tap. 
    Slide your finger up or down the screen until you see or hear Accessibility, then double-tap. 
    Slide your finger up or down the screen until you see or hear VoiceOver, then double-tap. 
    Double-tap when you hear "VoiceOver switch button on." 
    You'll hear "VoiceOver off" to confirm the setting. Now you can use standard gestures to control iPod nano.
    Note: You can also turn off VoiceOver by resetting your iPod.

Maybe you are looking for

  • Report to show all purchase orders for which invoice tolerence is greater than 3%?

    Hi Experts, Recently our company cofigured 3% tolerence limit for invoice.Now, I have got a requirement to create a report to show all the PO's for which the invoice tolerence limt is eq 3 %.Kindly anyone advise ,is there any table that stores the in

  • Safari 2.0 textbox bug?

    I was using Safari 2.0 on MacOS 10.4.2. I loaded a page with a textbox that already contained several lines of text. The text was unreadable because all the characters appear to be piled up on top of one another. This happened on several different pa

  • Sniffer Trace on ACE w/VACLs and One-Arm Design

    Wow...that was a mouthful of a title! Here is what I'm trying to accomplish. There is an application that is having issues. This application is being load balanced by the ACE. The ACE is configured in a One-Armed design. Essentially the application f

  • RAC node upgrade issue

    We have our company's database on Oracle Real application clusters database consisting of two RAC nodes. We would like to perform some hardware upgrades on both the RAC nodes. Could anyone please tell if it is OK to shutdown one instance at a time an

  • Time Capsule and Verizon's FIOS Service

    I subscribe to Verizon and use their router to access the internet. I am considering purchasing Time Capsule, but am not sure how I should configure it with Verizon's Actiontec router or will Time Capsule replace it? I would appreciate any advice.