A wild-Card does not work in the MODEL - what is wong with my request?

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 name of the product in the model calsue I get 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, IT is, I do not get the result. What is the problem with my request?
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.

Published by: 884476 on October 29, 2012 12:51 AM
Please do not hesitate to ask for more details...

Use ONE with UPSERT produce all lines not existing OR cells instead you can use UPSERT ALL if you want to use predicates.

Try with below,

select *
from sales
model
 PARTITION BY (country)
 dimension by (product,year)
 measures(sales s)
 rules  upsert all
 (
 s[ANY,2001]=s[cv(product),2000]*2
 );

Maybe it works,

Tags: Database

Similar Questions

  • ATI Radeon HD 4600 Series AGP Grapics card does not work since the installation of service pack of windows 7

    ATI Radeon HD 4600 Series AGP Grapics card does not work since the installation of service windows 7 pack has worked before

    Is not fully compatible with win7, some patches are available from ATI

    http://support.AMD.com/us/KbArticles/pages/CatalystAGPHotfix.aspx

  • Graphics card does not work on the Satellite L850 PSKFWA

    Hello

    I have a Satellite XC 250895 Q. Windows 8 keeps giving me a message that my graphics card does not work correctly.
    I go to the Radeon website and click on the appropriate boxes and let Radeon check my system to see if the drivers are up to date. He tells me that I have to download something (?) New driver) but when I do it tells me there is a problem with the compatibility with my system.

    I haven't noticed any problem with the graphics.
    It may be a Radeon problem, but what I have on my system, which was installed at the factory.

    Thanks for everything back
    Hetty

    + The message was edited: model nr. Add the object +.

    Can you please tell us once more what model of laptop you have exactly?
    Are you using the original Win8 preinstalled?

  • GADMEI USB TV Tuner card does not work on the new Windows 7 computer

    Original title: usb tv card is not supported in windows 7 x 64

    Hello

    I have new office... everything works fine, the problem is with my tv usb card.

    I tried gadmei model utv882e and utv332e... no one works with my office... but in my laptop with the same version of windows, two tv cards works very well.

    I have no other problems in my pc or tv... cards all drivers are up to date.

    Here is my desktop specs:

    model of motherboard is asus b85m-k

    Hello Faysal,

    Thank you for visiting Microsoft Community.

    As described in the question, I understand that your two cards of Gadmei USB TV Tuner does not work on your Windows 7 desktop. The same card works fine on another computer in Windows 7 with the same configuration.

    I would be grateful if you can provide us with the following information to help us better understand the issue.

    1. What happens when you plug-in card TV Tuner? Your computer will detect the device? Do you have a code or a message when it fails to connect?
    2. Did you check connecting them via a different USB port?

    There may be a possibility that drivers for Gadmei TV sticks are not correctly installed on the computer. We will try these methods below and check if that helps.

    Method 1:

    First of all, I suggest you to run the following Microsoft Fixit to get the problem diagnosed and fixed automatically.

    Hardware devices do not work or are not detected in Windows

    http://Support2.Microsoft.com/mats/hardware_device_problems?WA=wsignin1.0

    Method 2:

    If the fixit above does not resolve the problem, I suggest to download the best compatible driver on the device manufacturer (Gadmei) site or contact Gadmei to get the best driver for your computer and install it.

    You can also read the article below to help update the device driver.

    Updated a hardware driver that is not working properly
    http://Windows.Microsoft.com/en-in/Windows7/update-a-driver-for-hardware-that-isn ' t-work correctly

    I hope this helps. Please let us know the results. Do not hesitate to write back for any further assistance with Windows, we will be happy to help you.

  • V11.0.12 XI and IE11 Acrobat. Hyperlink inside the PDF does not work when the PDF file is opened with any browser.

    V11.0.12 XI and IE11 Acrobat. Hyperlink inside PDF is a blue rectangle and links to another PDF. When PDF is opened in Acrobat, the link works. When opened in any browser (IE, Firefox, Chrome) the link does not work. How can I get the link to work in browsers?

    I think it is a bug. I uninstalled Acrobat and reinstalled Acrobat v11.0.0. I tried the link and it works properly. Then, I installed each both updated and tested the hyperlink. Update 1-10, that the link works. However, when the 11.0.11 update is installed, the "Go to a page in another document" hyperlink stops working in browsers. V11.0.12 installation does not solve the problem. If I uninstall Acrobat and install v11.0.0 with updated v11.0.10, everything works fine.

  • High capacity SD card does not work in the card slot

    I have problems using a a MicroSD card of 200 GB in my Macbook Air 13 inch card reader.

    SanDisk Ultra 200 GB MicroSDCX UHS - I card

    MacBook Air 13 inch MID 2012

    Yosemite OSX 10.10.5

    I have had this 200 GB card for a week and been using it with my Nifty mini-convoyeur. Previously I'd been using a memory card Micro SD of 64GC since mid-2012 without any problems so far.

    Since I use this 200 GB card a week ago she continually disassembles, becomes corrupted and unreadable, not mountable and lift all kinds of errors when I try to copy the data or even make a new folder. I have used about 20 times utility disc up, check, repair, and operate. I had re - format 6 times now and I've tried all the different formats and same partitioning it but still questions. Ive tried to identify the problem as follows.

    (1) I thought the card was defective at first, however I only get these questions when I put the SD card micro of 200 GB into a USB card reader and connect it via the USB port.

    (2) I thought that the OWL mini-convoyeur may be defective, but the problems do not occur with my 64 GB SD micro card.

    (3) as the problems occur even when I put the 200 GB Micro SD in a Standard SD adapter (in fact I've tried 3 different adapters just to be sure) and put it in the slot of the card. 64 GB card works fine, but the 200 GB card still has questions.

    So the only conclusion I can come to is that there are problems with the Macbook Air with cards 13 inches high capacity...

    The only question now, it's just my machine or all the SD integrated card readers? I don't know anyone who has another person to check if...

    Any suggestions, or an overview?

    I understand this card capacity of 200 GB is quite new, and I was not able to find someone with problems online. I may be the first, or it's just my computer/card reader that is faulty?

    Thank you, Chris.

    So I'm at a point where I can assure you:

    200GB SD card works fine via USB hub/MiniSD adapter. I can mount/dismount and copy to the card without any problems. 200GB SD Card will be mounted with the internal SD card slot, but try to copy to card gives me the following error:

    "The operation cannot be completed because an unexpected error occurred (error code - 50)."

    Using a smaller card gives me no problems at all.

    Ive also updated to El Capitan 10.11.2 (15 c 50).

  • Camera memory card does not work in the computer

    Until today, I inserted 2 cameras memory cards in the drive of Dell computer and they worked very well. Today, they do not. I use Windows 7. Any suggestions?

    Memory cards are frequently blur when windows write process fails to complete properly, causing incomplete information to write in the card.

    It is a question of the computer, you see not no map at all, or he sees the card but you said it must be formatted before you can proceed?

  • SD cards does not work in the B200 M3

    We just purchased and installed a few M3 B200.  We also bought the SD cards so that we can install ESXi on them.  We cannot see how to get SD cards to show up as an option of the M3 servers Local disk...

    Any help would be appreciated.

    David

    Flexible Cisco Flash will be added in a future version of UCSM.

    See the section advantages and benefits under Flash Flexible Cisco:

    http://www.Cisco.com/en/us/prod/collateral/ps10265/ps10280/ps12288/data_sheet_c78-700625.html

    When it is added, it should be mentioned in the release notes:

    http://www.Cisco.com/en/us/products/ps10281/prod_release_notes_list.html

  • Suddenly, my sound card does not work - try the devices and add/install the old hardware on the Assistant Manager, he finds ADSInstant HTV PC1, but sending the message... Impossible to install correctly the code 10

    tried the Device Manager and add/install the old hardware on the wizard... he finds ADSInstant HTV PC1, but sending the message... Impossible to install correctly the code 10

    Restore the system to then it was working properly.

  • P20-552: 2 GB SD card does not work.

    I have a P20-552 (PSP26E-025E9-S4), which is about 18 months old. I recently bought a digital camera (IxUS 750) barrel with a 2 GB Sandisk Ultra II SD card and the combination does not work well. Although I can transfer images from the camera to my Toshiba laptop with a USB cable, sometimes, I would use the SD slot on the laptop, but there seems to be a problem: seconds after pressing home the SD card in the slot, I get the message "disk is not formatted - do you want to format it now?". I said OK but then I get the message "cannot be formatted disk in drive E".

    The card continues to work perfectly fine in my camera and on my iPaq Pocket PC. In the Toshiba SD card works quite happy with Sandisk card of 256 MB SD, which is usually in my PDA.

    Anyone has an idea why the 2 GB card does not work in the Toshiba? It's updating a driver - I watch the other day but I couldn't find anything that seemed appropriate, but I might well have forgotten something...

    I'm running XP Home Edition (SP2) and are automatic updates IT. I have Norton Virus and Zone Alarm running and have no problems with other software/applications - at least, no problem, as someone suggested to suck my laptop overheating a few weeks ago ;-)

    Thank you, Brian.

    It seems that the unit doesn t support this card.
    See your user manual. You will find an information that this device supports only the following SD card formats: Mo 8/16/32/64/128/256 and 512

    According to this document, the 2 GB are high.

  • first instance LR 6 cc import goes well with the various cards, that one card does not work, usb HDD with only images, map 9571 photos 115GB, sometimes only 300 photos, then wait all night nothing, try the separate subfolders, only two (including su subfo

    trial LR 6 cc import goes well with different cards, that one card does not work, usb HDD with only images, map 9571 115GB, sometimes only 300 photos pics, then wait all night nothing, try separate subfolders, only two subfoldrs(including subfolder) done well, 175, and 125 peaks, other subfolders doesnot work, opendLR as administrator : no difference. I7 import about 60-70%. on the import of only about 300 visible pictures, the other empty square. solution?

    Hi willemm,

    first instance LR 6 cc import goes well with different cards, that one card does not work.

    Could you please develop the issue you are facing?

    What is the image format you import?

    USB HARD drive with only images, card 9571 115GB, sometimes only 300 photos pics

    I would not recommend to import gb 115 library at once.

    Kind regards

    Assani

  • FIFA11 does not work using the ATI GPU on Satellite S70 - B

    I have a portable Satellite S70 - B. with amd fifa 11 video card does not work, but with the video card intel it works.
    Why?

    Despite the solution/solution posted by above user, an update of the graphics card driver could also be an option for you to my knowledge, that a lot of games does not start because of the incompatibility between the game and the graphics card driver

  • Satellite 5000 with Windows XP, Service Pack 1 is installed and now my sound card does not work

    Everyone knows this problem.

    I have a 5000 Satellite with Windows XP. I installed SP1 and now my sound card does not work.

    Any ideas out there?

    Does anyone have this problem?

    I reinstalled the Yamaha drive a couple of times and always the same: no sound?

    I bought this unit in Holland and it was great until the problem of Service Pack. I heard that Comcom was a dealer right here. Maybe I'll have to make to them, if I can't help here?

  • Sound card does not work after upgrade to XP Pro

    I need help - Microsoft participated three times without result. After that I updated to XP pro that my SigmaTel C Major sound card does not work. Done all the usual uninstall the driver, update driver etc. No results. When I go into the properties of audio devices, midi and mixer IE driver I see a status message: active but device not started

    Any ideas on how to solve it is greatly appreciated.

    Hello

    Sorry but I have no explanation for this. I can recommend you to remove the sound card in Device Manager, then restart the unit. After reboot, the sound card must be recognized and installed properly.

    It will be interesting to know what model of laptop you have.

  • Satellite 1900-803: Hi-Speed USB 2.0 card does not work

    I have a portable satellite 1900-803. I recently bought and installed a Belkin Hi-Speed USB 2.0 Notebook Card, but it does not work. Manual of the card says that after the successful installation, I'd see a second 'USB bus controllers' heading which I did not. I even it was replaced by another one thinking that there could be some problems with the drivers, but it still does not work. whenever I plug in a device such as an mp3 player, a digital camera or a usb storage device, windows locks all of a sudden upward, won't move the cursor, the function ctrl-alt-del does not work and the worst of it, I can't turn off the machine!

    the map shows that it runs on any 32-bit location.

    I have the manual and the Device Manager to see if mine is a 32-bit, but I don't really know. This is probably the reason why it doesn't work? or is there another reason to make it work not? If this is the reason why, is there a way where I can upgrade my laptop's pc card slot to make it work?

    Help, please.

    I posted this question yesterday morning and did not get a single response. is it because it has to do with an older laptop? Please, someone, help...

    Post edited by: wes0702

    Hello

    Have you checked the Bios? I guess that the Bios Toshiba was preinstalled on your laptop. Am I wrong? There should be an option to change the PC Card controller mode.

    Here, you can change the mode of the automatic selection, CCIP compatible controller or card bus/16-bit.
    If the card supports 32-bit so you should use the 16-bit option.

    I think you should play a little with this option and possibly that the card will work.

Maybe you are looking for