ANY wild Card is not working in MODEL - What is wong with my query?

Hi Gurus,
Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - Production
CREATE TABLE "SALES"
   (     "COUNTRY" VARCHAR2(5 BYTE),
     "PRODUCT" VARCHAR2(5 BYTE),
     "YEAR" NUMBER,
     "SALES" NUMBER
insert into sales values('A','prod1',2000,10);When I pass the product name in the model calsue I am getting the expected result
select *
from sales
model
PARTITION BY (country)
dimension by (product,year)
measures(sales s)
rules  upsert
s['prod1',2001]=s['prod1',2000]*2
COUNTRY PRODUCT YEAR S
A       prod1   2000 10
A       prod1   2001 20 but When I use, ANY, I am not getting the result. What is wrong with my query?
select *
from sales
model
PARTITION BY (country)
dimension by (product,year)
measures(sales s)
rules  upsert
s[ANY,2001]=s[cv(product),2000]*2
COUNTRY PRODUCT YEAR S
A       prod1   2000 10 Thanks in advance.
Edited by: 884476 on Oct 29, 2012 12:51 AM
Please feel free to ask any further details required..

You need to use UPSERT ALL rather than just UPSERT.
The documentation [url http://docs.oracle.com/cd/E11882_01/server.112/e25554/sqlmodel.htm#i1011770]here explains that UPSERT can only insert with "positional reference" and not "symbolic reference", and ANY wildcard is always "symbolic reference". But UPSERT ALL allows model rules with existential predicates (comparisons, IN, ANY, and so on) in their left side to have UPSERT behavior.

Similar Messages

  • HP Probook 450 GO laptop SD card reader not working

    SD card reader not recognizing any sd card and not working. Any suggestions?
    + Touch pad not working with double click - have to use the button below

    Hello @Jurists 
    Thank you for posting on the HP Forums.
    To get your issue more exposure I would suggest posting it in the commercial forums since the ProBook 450 G0 is a commercial product. You can do this here: Notebook - HP ProBook, EliteBook, Compaq, Slate/Tablet PC, Armada, LTE
    The support page for your product may be helpful in the meantime: HP ProBook 450 G0 Notebook PC
    I hope this helps!
    Malygris1
    I work on behalf of HP
    Please click Accept as Solution if you feel my post solved your issue, it will help others find the solution.
    Click Kudos Thumbs Up on the right to say “Thanks” for helping!

  • Hi. Unfortunately my ethernet card was not working anymore. This is the message "This computer does not appear to have any PCI Ethernet card. How can I fix it?

    Hi. Unfortunately my ethernet card was not working anymore. This is the message "This computer does not appear to have any PCI Ethernet card. How can I fix it?

    i would try an SMC reset, the following article tells how to do this:
    http://support.apple.com/kb/HT3964
    if it still gives that message, you need to take it to apple store or apple service provider to have a new card installed. the apple site gives listings of providers and stores in your area:
    https://locate.apple.com

  • I cannot get any sound..it says my sound card is not working properly...how do i fix this.

    HP PC 2000 notebook, windows 7 operating system
    can't get any sound..says the sound card is not working..how can i fix this...

    You need to contact Adobe for you billing problem this is a user four not adobe customer support.
    For your Photoshop Problems this user community may be helpful. 
    Supply pertinent information for quicker answers
    The more information you supply about your situation, the better equipped other community members will be to answer. Consider including the following in your question:
    Adobe product and version number
    Operating system and version number
    The full text of any error message(s)
    What you were doing when the problem occurred
    Screenshots of the problem
    Computer hardware, such as CPU; GPU; amount of RAM; etc.

  • Any reason a G5 Graphic card will NOT work in a Mac Pro as a second card

    Should I try this?  I don't see any reason why not but would like to make sure
    Thanks

    Should I try this?
    No.
    It won't work.
    Any reason a G5 Graphic card will NOT work
    As explained, the G5 uses Open Firmware and the Mac Pro uses EFI.
    The ROM of the graphics card is completely different for each of the two machines.
    The cards are not interchangeable.

  • Flash Cards do not work on my Satellite L750

    Hello,
    I own a Toshiba Satellite L750 PSK1WA-03C00R and my flash cards do not work, the function keys work, but my flash cards do not.
    This model does not come with the Flash Card Support Utility, it does however come with the Value Added Package.
    I have uninstalled, CCleaned and reinstalled and repeated mulitple times, trying to get this to work properly. I have also restarted after each of these steps.
    I can't figure the problem out and thought that I'd see what you guys' recommend before I resort to getting Toshiba's support services.
    I also do not want to have to resort to a system restore, but, if I really have to and have no choice, I will when I can.
    I hope someone may be able to help me and do look forward to what support you can offer me.
    Thanks in advance.
    -Chris.

    Hello Pedro,
    I have checked on thses settings and there is the option to allow the mouse to bring up the flash cards, this will bring up the flash cards if I would like to do that, I would however love to use the keys seeing as the mouse option seems to close any games I may have running and take me to desktop and this is not preferrable.
    There is no "Reset Flash Cards" option, I have serched through many files and done many serches for this option and no luck, which is a shame.
    Do you have any other suggestions? I would love to have this work.
    The reason I did the reinstall was to get my brightness keys to work again. Sure, this fixed the problem, but now I have no flash cards. Any suggestions would make me a very, very happy man.
    Thanks in advance.
    -Chris

  • Wireless Card does not work in Windows 8.1 for G585

    I just wanted to inform someone that the wireless network card does not work in Windows 8.1 Preview. I suspect the driver needs to be updated. When I go to the Device Manager it appears as a Realtek device RTL8192DE instead of a Qualcomm device that does not start. I tried installing the latest driver from the website but it makes the computer crash (BSOD) when trying to reboot after the installation which makes the Windows 8 automatic recovery turn on and I had to restore the system to a previous state before the driver installation.
    For now, I just refreshed my system back to Windows 8, instead of trying to use Windows 8.1 Preview .  If you have any suggestions, it would be great, otherwise I'll wait for a driver update.

    neilwar wrote:
    Oh goody. Just updated to 8.1 and it doesn't work. Looks like everyone else is having the same problem. Why no answer from Lenovo?
    Please refer to the dedicated thread on "Blue" 8.1.
    Thread locked
    Andy  ______________________________________
    Please remember to come back and mark the post that you feel solved your question as the solution, it earns the member + points
    Did you find a post helpfull? You can thank the member by clicking on the star to the left awarding them Kudos Please add your type, model number and OS to your signature, it helps to help you. Forum Search Option T430 2347-G7U W8 x64, Yoga 10 HD+, Tablet 1838-2BG, T61p 6460-67G W7 x64, T43p 2668-G2G XP, T23 2647-9LG XP, plus a few more. FYI Unsolicited Personal Messages will be ignored.
      Deutsche Community     Comunidad en Español    English Community Русскоязычное Сообщество
    PepperonI blog 

  • Anyone know of any greeting card program that works with OS  x?

    anyone know of any greeting card program that works with OS X?

    There is no solution. The Canon UFR2 driver used by the MF series does not work when connected to a Windows share or a wireless print server, including the Airport Extreme or Express. The problem is wholly to do with the way in which Canon has written this driver and therefore the Canon support staff should know this and tell you (although their Mac knowledge in Australia is pitiful and most likely the same in your region).
    If you had a model with Ethernet, then you could connect it to the wireless router and print via IP > LPD. But I know that your MF4150 only has USB as I mate of mine had one and he had exactly the same issue on Tiger, which I documented on the Tiger forum and the Airport printing forum.
    So, don't waste your money on a print server. Get rid of the Canon and get something that will work for all your OS's. If I can suggest, the safest purchase would be to get a model that supports Postscript. While this does cost more, it will help to avoid any limitations that can occur when using a vendors proprietary printer language, like Canon's UFR2.
    Pahu

  • I have PCI-4452-this card does not work with XP. Are there fixs available?

    I have the PCI-4452, i fould that when i installed XP on my system, the card does not work. Does this card have any drivers for ir to work on XP. Or do i have to stay on NT.

    Hello,
    This card is actually supported under XP for use with drivers since 6.9.2 and above (only traditional driver).
    Kind Regards
    Steven Bird
    Applications Engineer
    National Instruments

  • Back to school card is not working

    Last week, I went to the apple store, Because my back to school card is not working.
    And the clerk helped me to solve that the problem.
    He said i will receive the mail from apple customer service.
    From last week until today. I did not receive any mail from apple customer.
    Can any one help me ??

    I'm afraid you're asking in the wrong place. Apart from the fact that this is the forum for people who make podcasts, the entire discussions are user-to-user forums: you're not talking to Apple here, and no-one on here can help you. You will have to take this up with Apple directly.
    If you go to the Apple Store page for your country you should see a phone number in the bottom right-hand corner: they may be able to help or at least tell you how to contact the people who can.

  • Macbook Pro Retina - nVidia card does not work correctly

    Hi,
    having a MacBook Pro Retina. It ran fine till yeasterday when I fired up a game which was laggy and it was running fine before. It took me several hours to find where the problem is and it seems to me that the nVidia dicrete card is not working. But strangely not working. I installed gfxCardStatus to see whether the card is being switched to run the game and it actually is. But the performance is the same as running it on an internal Intel. I took another test and downloaded CINEBENCH to see the differences and sadly the results are the same if I switch to nVidia or to Intel and run the benchmark.
    Obviously something is not right here. It happened over night. Before it worked corectly. I do not remember installing something that day/night that could have broken it (in case it is a SW problem). Only one thing comes to my mind - Apple Java update. But I tried to uninstall it and got the same result. I did try to restart several times. But otherwise there is no visible flaw, e.g. flickering or black screen when swithech do nVidia - nothing. gfxCardStatus shows that the system switches the card and I notice no change. Only in heavy load it is obvious that it is slow (slower than it was).
    Is there a way to see if the nVidia card is working? I suspect that even if the system is trying to switch to a discreet card it still runs on the Intel in reality. Any way how to distinguish this rather than to rely on gfxCardStatus? Any log that would make this clear? Any test I can run (Apple HW test shows "no problem detected")?
    Many thanks for hints.

    To show what I am talkin about I did another test. I downloaded and ran LuxMark. There it is possible to test CPU and GPU separately on a same benchmark scene. FIrst I let the system switch to nvidia and did the test:
    Then I manually switched to Intel/CPU in gfxCardStatus and also selected CPU in the LuxMark and did the same test. The result is:
    You see? How it is possible that in OpenCL computation CPU with internal graphic card is even faster then the descreet one? This is what I am experiencing now and cannot figure out where the problem lies.
    Would the Apple HW test discover a dead nvidia card? Because nothing shows that the card is dead but as you can see it is not performing as it should.

  • Z61t SD card reader not working?

    z61t SD card reader not working?
    Tried the Vista driver and still not working.
    Same for camera.
    I am running Windows 7 64bit and using TVSU v4.0 as well as manual attempts to update.

    I am running windows 7 home 32 bit and can not get the sd card reader driver to load either.  Any help?

  • Satellite U300-151 - SD card slot not working

    I have the following model Toshiba Satellite (U300-151 PSU30E-074017AR ) the
    SD card slot not working I install windows XP SP 3 ,& the driver is installed 100% , I need to solve this problem ...
    plz chk this link:

    Hello
    I think on your notebook are missing some drivers.
    The SM Bus Controller driver is in the chipset driver package. So try to install it and maybe it works.
    The drivers you can find on the Toshiba website.
    Have you installed it with a Microsoft disk? The Toshiba recovery disk creator contains all necessary drivers and tools that you need and so this would be maybe an option for you to reinstall the OS.
    Greets

  • Pavilion dv6 sd card reader not working

    I have searched the boards and have not found an answer to my built in SD card reader not working any more.  It worked fine until a couple weeks ago. When I go to "my computer",  the sd card does not show up as an available drive. I have tried several cards with no luck. The cards work fine when I use a USB card reader, just not the built in one.
    I checked the driver in device manager - at least the one I believe is the correct one - Realtec PCIE Card Reader.
    Any other ideas? It is a pain having to carry around an extra card reader. Thanks for the help
    rv9a
    This question was solved.
    View Solution.

    Good morning rv9a.  
    Prior to the uninstall did the computer make a noise to indicate it recognized the card when you put it in?
    You should go ahead and reinstall the specific driver for the card reader just to make sure that doesn't have an effect on the issue.  Here is the link for Windows 7 and here is the link for Windows 8.
    Another possibility is the the Plug and Play service is deactivated.  Try the following to check.
    Press the Windows+R keyboard shortcut.  
    Type "services.msc" into the box and click okay.
    Scroll down until you find "Plug and Play" in the list.
    Ensure that it is started.  If it is not right-click on the service and select Start or Enable.
    I'll keep an eye out for your response; have a great day!
    Please click the white star under my name to give me Kudos as a way to say "Thanks!"
    Click the "Accept as Solution" button if I resolve your issue.

  • Credie card  in not work for apple store

    Hello!My credit card is not work in apple store. I can`t downlowd any application, I don`t why, becouse
    Two months ago I used an old credit card with which there were no problems but it had a term and to me have made new since then the new doesn't work.
    I called in the bank to me have told that with a card all normally.
    When I try to change card parameters for the new data to me writes :
    Your method of payment isn't confirmed. Please enter other information on a method of payment
    Please, help me , my id [email protected]  

    Welcome to the Apple Community.
    Where have you reset your password.

Maybe you are looking for

  • I am moving to the USA I have a 3 pin plug on my 85 w charger

    Hi, I'm moving to the US from Pakistan (our power is 220 volts like Europe). My charger has a 3 pin plug . Will the 3 pin work in America or do I need to get a converter plug? I also have a small two-pin plug lying around but I can't remember if this

  • Reconcilation

    Hello All, I am running the two reports mentioed below S_ALR_87012082 ( Vendor Balances in local currency) S_ALR_87012277 ( G/L Account Balances) But when i compare both of these reports for eg choosing one of the Vendor reonciliatoin Account i see s

  • Contacts address not showing on pad

    When I add the following address (not mine) : 5 Disa Hill Close Knysna WC South Africa and click on it, the map app launches, but dpit finds the wrong address ...it gives 2 suggestions, but they are both incorrect. If I click cancel, and immediately

  • IOS 7.0.2 cant download

    I cant log in my apple id. In game center, itunes and app store... when i update my ios, thats happen :( Wifi is good Internet is good Already reboot Already sign out And now cant sign in it says "cant connect to itunes" And now i cant download any a

  • What to delete to make space ? apps dont some

    up to what itunes say they take if ill leave the "other" alone its arount 1 giga no videos songs pics not even close i do have over 100 apps but most of them are under 50 mb lets asume the apps actualy take 6 or 7 gb so some of them have hidden files