Can we update column in view with some operation

can we maipulate column of a view containing any arthimetic operation
if yes, pls explain me some example
asp

SQL> create or replace view emp_view as select e.*, (sal + nvl(comm, 0)) total from scott.emp e ;
View created.
SQL> desc emp_view
Name                                      Null?    Type
EMPNO                                     NOT NULL NUMBER(4)
ENAME                                              VARCHAR2(10)
JOB                                                VARCHAR2(9)
MGR                                                NUMBER(4)
HIREDATE                                           DATE
SAL                                                NUMBER(7,2)
COMM                                               NUMBER(7,2)
DEPTNO                                             NUMBER(2)
TOTAL                                              NUMBER
SQL> update emp_view set hiredate = hiredate + (1/24) ;
14 rows updated.
SQL> update emp_view set total = total * 1.5 ;
update emp_view set total = total * 1.5
ERROR at line 1:
ORA-01733: virtual column not allowed here
SQL>

Similar Messages

  • How can I update attribute1 of CSI_ITEM_INSTANCES with the operating org

    Hi
    I am working on Install base (Customer services) module of Oracle E-Business Suite.
    I want to update the CSI_ITEM_INSTANCES.attribute1 with the operating org from a profile option.
    Could anyone help me to figure out how can i do this?
    Is there is any API which can be used to update this table.
    Actually to update this column i wrote a trigger on this table which does the updation of CSI_ITEM_INSTANCE.ATTRIBUTE1 with the operating org from the profile option set at responsibility level but i got the wrong value for this profile option. Because when the data is inserted into this table the user_id, resp_id and resp_appl_id has been changed to sysadmin so i got the value for this user not the user who logged in.
    If anybody has worked on this or done something like this please guide me
    Thanks

    Hi Naga,
    Thanks for the Reply...
    Actually I want to update the org_id in the CSI_ITEM_INSTANCE.attribute1 at the time of creation as well as any update.
    I have looked into the api csi_item_instances_pub. it has two procedures 1) create_instance and 2) update _instance
    I am not be able to understand where can I call these api's to update and creation for an instance and it has several parameters like record type and table type. So I am in a confusion state about the parameters list also. Could you help me to figure out this please?
    And I want to restrict the Installed Base View Page by the value of attribute1(org_id) in CSI_ITEM_INSTANCES. In a thread I saw that this could not be done because this is a JTT/JTF page. Is there any way to customize the Install base view page by org_id?
    Please suggest.
    Thanks
    Munish Mittal

  • I just updated my latest java but the update is causing problems with some externale devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device

    i just updated my latest java but the update is causing problems with some external devices. So i would like to uninstall this latest java update and get back the previous one. That should solve to problems with my external device.
    Is this possible and how do i do that?
    Anyone who responds thanks for that!
    Juko
    I am running
    Hardware Overview:
      Model Name:          Mac Pro
      Model Identifier:          MacPro1,1
      Processor Name:          Dual-Core Intel Xeon
      Processor Speed:          2,66 GHz
      Number of Processors:          2
      Total Number of Cores:          4
      L2 Cache (per Processor):          4 MB
      Memory:          6 GB
      Bus Speed:          1,33 GHz
      Boot ROM Version:          MP11.005D.B00
      SMC Version (system):          1.7f10
      Serial Number (system):          CK7XXXXXXGP
      Hardware UUID:          00000000-0000-1000-8000-0017F20F82F0
    System Software Overview:
      System Version:          Mac OS X 10.7.5 (11G63)
      Kernel Version:          Darwin 11.4.2
      Boot Volume:          Macintosh HD(2)
      Boot Mode:          Normal
      Computer Name:          Mac Pro van Juko de Vries
      User Name:          Juko de Vries (jukodevries)
      Secure Virtual Memory:          Enabled
      64-bit Kernel and Extensions:          No
      Time since boot:          11 days 20:39
    Message was edited by Host

    Java 6 you can't as Apple maintains it, and Java 7 you could if you uninstall it and Oracle provides the earlier version which they likely won't his last update fixed 37 remote exploits.
    Java broken some software here and there, all you'll have to do is wait for a update from the other parties.

  • Ipad ll - Can't update apps or view videos

    Can't update apps or view videos after downloading several podcasts. When I look at podcasts downloaded in ITunes it shows all the items that I selected and says that it is  "processing" the first item and seems to be hung up or locked up - the same thing happens when I attempt to update an App - it shows waiting but never completes. I have expanded my screen timeout, but to no avail. Any help would be greatly appreciated.

    Call Apple at 800.My.Apple, they will assist you with this

  • HT4623 can i update my Iphone 3gs with ios 6.0.1

    can i update my Iphone 3gs with ios 6.0.1 I tried to upgrade the same earliear also but there were some error occuers

    i'm having Iphone 3gs and as usaual i get the notification about software updates but when i tired to upgrade the same and error occour all the time just near the complition of process and due to that my phone's performance also got lower down.

  • Can i update my iphone 3G with IOS 4.1 to IOS 5?, can i update my iphone 3G with IOS 4.1 to IOS 5?

    can i update my iphone 3G with IOS 4.1 to IOS 5?, can i update my iphone 3G with IOS 4.1 to IOS 5?

    wheewhee wrote:
    can i update my iphone 3G with IOS 4.1 to IOS 5?, can i update my iphone 3G with IOS 4.1 to IOS 5?
    No
    It will only go to 4.2.1

  • Can i update my iphone 3g with IOS5...?

    can i update my iphone 3g with IOS5...?

    No. iOS 4.2.1 is the end of the line for your phone.

  • How can I update my iPhone 4 with out all my pictures or music erasing ?

    How can I update my iPhone 4 with out all my pictures or music erasing ?

    All of your music and pics should be on your computer.
    If they are not, then put them there.

  • How can I update my iphone 4 with IOS 7 ??

    How can I update my iphone 4 with IOS 7 ??

    iOS 7 will be available this fall: http://www.apple.com/ios/ios7/

  • HT4623 can I update previous iPhone 4 with content of moire recent iPhone 5 since it was stolen?

    can I update previous iPhone 4 with content of moire recent iPhone 5 since it was stolen?

    Yes.
    As long as your iPhone 5 was not running iOS 6.1.4, you can restore your iPhone 5 backup to your iPhone 4. Make sure your iPhone 4 is running iOS 6.1.3...update it first if not. If your iPhone 5 was running iOS 6.1.4, then you won't be able to restore that backup to your iPhone 4.

  • Can I update my iPod video1 with search function like iPod video2?

    Can I update my iPod video1 with search function like iPod video2?
    how could I do?
    I have already download and installed iTunes 7.0.2
    thx

    The Search feature is currently only available on iPods which shipped with it; no publicly available download will add it to older iPods.
    (19614)

  • HT4972 how can i update ios4 to ios5 with my iphone4

    how can i update ios4 to ios5 with my iphone4

    iOS: How to update your iPhone, iPad, or iPod touch
    http://support.apple.com/kb/HT4623

  • HT1222 how can I update my Ipad 2 with iOs 5 or better? I have version 4.3.5

    How can I update my Ipad 2 with iOS 5 or better? I have version 4.3.

    iOS: How to update your iPhone, iPad, or iPod touch
    read the entire article

  • Can't update a sql-table with a space

    Hello,
    In a transaktion I'm getting some Values from a SAP-ERP System via JCO.
    I update a sql-table with this values with a sql-query command.
    But sometimes the values I get from SAP-ERP are empty (space) and I'm not able to update the sql-table because of a null-value exception. (The column doesn't allow null-values). It seems that MII thinks null and space are the same.
    I tried to something like this when passing the value to the sql-query parameter but it didn't work:
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", " ")
    this works but I don't want to have a "_"
    stringif( Repeater_Result.Output{/item/SCHGT} == "X", "X", "_")
    Any suggestions?
    thank you.
    Matthias

    The problem is Oracle doesn't know the space function. But it knows a similar function: NVL --> replaces a null value with something else. So this statement works fine for me:
    update marc set
    LGort = '[Param.3]',
    dispo = '[Param.4]',
    schgt = NVL('[Param.5]', ' '),
    dismm = '[Param.6]',
    sobsl = NVL('[Param.7]',' '),
    fevor = '[Param.8]'
    where matnr = '[Param.1]' and werks = '[Param.2]'
    If Param.5 or Param.7 is null Oracle replaces it with a space in every other case it is the parameter itself.
    Christian, thank you for your hint with the space function. So I remembered the NVL-function.
    Regards
    Matthias

  • Can you update a 5th generation with music from a 4th generation itunes

    I know it sounds stupid, but i lost all my music on my previous 60g ipod photo, no backups etc. A friend (who has a 4th generation ipod photo) was trying to update my ipod with his music, he came up with error messages, "not supported by firewire" etc. He has a MAC pc.
    Can i do something about it?

    The answer of course is YES. But I do not suggest you to do it, as updating your iPod with some one's iTunes = stealing music - a copyright issue.

Maybe you are looking for