reason for updating a view rather than on the base table

Can someone tell me what is the reasons that sometimes we would update a view rather than on the base table? I always thought that we cannot update a view, of course, I am wrong. Thank you

Hi Welcome to the Forum

Basically, a view is used to present the data, a different way. He can rely on more than one table and we cannot update a
Discover directly that contains Sql functions, aggregate functions, a group of Clause and a view created excluding the required columns of the table.

In all the cases mentioned Instead of trigger is very useful

Published by: user10862473 on July 28, 2009 07:10

Tags: Database

Similar Questions

  • Inserting changes into an intermediate table rather than change the main table on a form.


    I am trying to create a process inserts changes the date in an intermediate table for approval, rather than change the main table.  I am currently using 4.2.4. Here's how I went on this subject.

    1. I've created a report interactive and connected the primary key on a form that displays data.
    2. Then I created a button called to request changes that redirects to another page with a form and through the necessary elements of session state.  (Note: I voluntarily created 2 different forms)
    3. I then set the initial values of the elements of the page on the current page based on the page, I went through the session state.

    My problem is that when changes are made and I hit the submit button, which is to send the page using an SQL Update statement, it does not have the intermediate table with new data.  I think it's because I set the source for the page elements as part of the page the previous page, thereby breaking the link to the database columns in my staging table.  Someone knows how to set the items on the form of page items I placed in another page without breaking the link to the database column?  Or is there an other/easier way to do this?

    Change that you attend the process instead of using APEX built DML, to call a specially written block that will take the page objects values and save them to your intermediate table...

    Thank you

    Tony Miller
    Software LuvMuffin
    Salt Lake City, UT

  • Another page last invoice printed rather than at the end of the doc

    Hello

    I have a template for an invoice that has a final page called a delivery manifest that is a condensed version of the invoice for the driver.

    I have a section break (Next Page), and it contains the body for delivery manifest that uses a different header and footer than all other pages.

    When my report prints, if I print more than one invoice, the output is 1 invoice, invoice 2, 1 clear, clear delivery of delivery 2.

    The requirements requested a classification of output desired invoice 1, manifesto of delivery 1, invoice 2, clear delivery 2.

    To make this change, I tried to use the

    <? start@last-page:body? >

    <? end body? >

    around what was already printing instead of the <? for-each@section:On_Payment_Terms_S3? > <? end foreach? > who was there.

    When I tried previewing it, word has hung up and seemed to be stuck in a loop process infinite, rather than produce the output. I had to force close.

    Is it possible to modify the model to get the desired printing order, or do I have to inform the necessary party they will have to settle for the current output sequence?

    Thank you
    DVF

    PS sample model and xml can be provided on request.

    passed the model with the patch update that fixed the order needed but still have blank pages in the output.

  • I would like to be able to use my CD rw as big floopys IE selectively erase some files rather than all the files.

    Original title: DLA is compatible with Internet Explorer 8 on xp home?

    I would like to be able to use my CD rw as big floopys IE selectively erase some files rather than all the files. I understand this formatting the disc for DLA (not sure if DLA means the implementation of formatting for software-3 rd party packet writing?) requires 3rd party software because ms windows xp with ie8 does not an own ms-ready download solution?

    If someone can answer to the following:

    1 is it possible with xp family? IE 8, 32 bits?

    2. Please direct me to an audit of Microsoft which is coherent and farily luck here requirements.

    3. If you know a 3rd party (prefer the download from microsoft) which provides a 100% free download and can be checked for virus using mse for selective file errasing?

    I don't expect any outcome of this post because I have nerver (2 positions) has received a response from writen except a few ms technology that pointed me a well known ms response that I had already read and what he recvd. take a vote.

    YOU

    Bob

    Hello

    Microsoft doesn't recommend or suggest any third-party software. Please use your favorite search engine to look for third-party software selectively erase some files.

    THIRD WARNING:
    Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Open a link in the new screen rather than in the browser

    Hello

    I want to develop an application that opens a link in the application, rather than in the browser.

    Any1 can help me?

    Thanks in advance

    If you use the search box, you might find the answer to your question without having to wait for someone to help you.  And you might find some other interesting information.

    In this case, type BrowserField in the search box will find a number of samples for you, including this one:

    http://supportforums.BlackBerry.com/T5/Java-development/BrowserField-sample-code-create-your-first-B...

  • Can I subscribe to two simple applications in creative cloud rather than getting the entire suite?

    I have a subscription for first, already, but really just need an extra subscription for Photoshop. I can subscribe to two apps? I'm thinking that might save me $10 a month, rather than getting the CC range.

    Yes, you can.

    I suggest with the Plan of photography for $10 / month. You do not have to use Lightroom.

    Then it will be $30 / month (first + photography Plan) instead of 50 $par month for all applications.

    Check the differences between the Plan of photography and unique App below to see which meets your needs

    Using Photoshop | Differences between Photoshop and creative photography programs Cloud

    * The "Plan Photography Photoshop", mentioned in this link is a discontinued product

  • Can I add a new trigger to the beginning rather than at the end of a blank publication widget?

    Hi guys,.

    I am creating a page of photo gallery using the widget a blank publication. I want to be able to add new content on a regular basis by adding new pictures to the top (beginning) of the gallery for my most recent photos indicate at the beginning of the gallery.

    Currently, the small + symbol to add another trigger doesn't add a new trigger to the right (bottom) of the trigger group, putting actually newly added content to the rear of the gallery rather than at the front. I am able to get to add a new trigger in the Group and have that trigger to be first in the group to display?

    The widget seems to display the same behavior of the command, so I'm pretty stuck on how to work around this problem. I tried to re - arrange triggers, which became incredibly heavy but everytime I want to add new photos in the Group and move older further down in the order of the gallery.

    Any help would be greatly appreciated with this, cheers, David.

    Hi David

    With composition, adding the image would be as well as the addition to use the most (+) sign which will add next to the previous content.

    At this stage, you would have to re - arrange the triggers or you can display them randomly if you want not to re - organize. Those are the only options.

    Thank you

    Sanjit

  • Is there a risk of overloading a pencil Apple via a USB, rather than in the iPad Pro?

    I just bought an iPad Pro and the pencil of Apple. I understand that the pencil can be loaded without using the iPad. How much time will it take to receive a full charge and is there a risk on reload. Can I plug to charge all night so I have a full load to shoot during the day? Unfortunately, I found no information on this. The booklet that came with it didn't cover this issue.

    I appreciate any help I can get in this regard.

    Is there a risk of overloading a pencil Apple via a USB, rather than in the iPad Pro?

    Lol of course not.

    No company could design a product that would allow it to be overloaded.

  • My taskbar has moved to the right side of the screen rather than on the bottom. Is it possible to fix?

    My taskbar has moved to the right side of the screen rather than on the bottom. Is it possible to fix?

    1. right click on the taskbar and uncheck "lock the taskbar".

    2. move the mouse on the border of the taskbar until the mouse turns into black arrow; then stop, left-button-down and drag the taskbar whenever you want.

    3. then, you can lock the taskbar again.

  • When I start the computer began logging directly to my account rather than offer the choice of which account to connect to

    I have two users put in place. When I start the computer began logging directly to my account rather than offer the choice of which account to connect to

    Hello GEOFFMUGGLETON,

    This thread has been created in the discussion forum. and performance of Windows Vista Microsoft moderation team has moved this thread to the security, privacy and user accounts Forum.

  • I am trying to be moved from the first, but in the list of adobe programs to download, rather than see the installation option, there is only the opportunity to evaluate, and once the download is finished the program will not open. What should I do to dow

    I am trying to be moved from the first, but in the list of adobe programs to download, rather than see the installation option, there is only the opportunity to evaluate, and once the download is finished the program will not open. What should I do to download the first?

    If you have a first subscription (check here, Adobe ID) and you have a 64-bit computer, Troubleshooting FAQ: what should I do if I have a subscription, but my application acts as if I had a trial?

  • How to shrink a picture to fit a model without losing the proportions of photos? When I pull the smaller image, it will lean or wide rather than staying the same but smaller...

    How to shrink a picture to fit a model without losing the proportions of photos? When I pull the smaller image, it will lean or wide rather than staying the same but smaller...

    Nice day!

    When turn you the image permanently the SHIFT key to keep the proportions or perhaps use file > Automate > Fit Image.

    Kind regards

    Pfaffenbichler

  • Add more than 2 lines for a select statement without inserting rows in the base table

    Hi all

    I have a below a simple select statement that is querying a table.

    Select * from STUDY_SCHED_INTERVAL_TEMP
    where STUDY_KEY = 1063;

    but here's the situation. As you can see its return 7 ranks. But I must add
    2 rows more... with everything else, default or what exist... except the adding more than 2 lines.
    I can't insert in the base table. I want my results to end incrementing by 2 days in
    measurement_date_Taken on 01-APR-09... so big measurement_date_taken expected to
    end at study_end_Date...



    IS IT STILL POSSIBLE WITHOUT INSERT ROWS IN THE TABLE AND PLAYIHY ALL AROUND WITH
    THE SELECT STATEMENT?

    Sorry if this is confusing... I'm on 10.2.0.3

    Published by: S2K on August 13, 2009 14:19

    Well, I don't know if this request is as beautiful as my lawn, but seems to work even when ;)
    I used the "simplified" version, but the principle should work for your table, S2K.
    As Frank has already pointed out (and I fell on it while clunging): simply select your already existing lines and union them with the 'missing documents', you calculate the number of days that you are "missing" based on the study_end_date:

    MHO%xe> alter session set nls_date_language='AMERICAN';
    
    Sessie is gewijzigd.
    
    Verstreken: 00:00:00.01
    MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
      2  select 1063 study_key
      3  ,      to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
      4  ,      to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
      5  ,      to_date('01-APR-09', 'dd-mon-rr') study_end_date
      6  from dual union all
      7  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      8  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      9  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     10  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     11  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
     12  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
     13  ) -- actual query:
     14  select study_key
     15  ,      phase_start_date
     16  ,      measurement_date_taken
     17  ,      study_end_date
     18  from   t
     19  union all
     20  select study_key
     21  ,      phase_start_date
     22  ,      measurement_date_taken + level -- or rownum
     23  ,      study_end_date
     24  from ( select study_key
     25         ,      phase_start_date
     26         ,      measurement_date_taken
     27         ,      study_end_date
     28         ,      add_up
     29         from (
     30                select study_key
     31                ,      phase_start_date
     32                ,      measurement_date_taken
     33                ,      study_end_date
     34                ,      study_end_date - max(measurement_date_taken) over (partition by study_key
     35                                                                          order by measurement_date_taken ) add_up
     36                ,      lead(measurement_date_taken) over (partition by study_key
     37                                                          order by measurement_date_taken ) last_rec
     38                from   t
     39              )
     40         where last_rec is null
     41       )
     42  where rownum <= add_up
     43  connect by level <= add_up;
    
     STUDY_KEY PHASE_START_DATE    MEASUREMENT_DATE_TA STUDY_END_DATE
    ---------- ------------------- ------------------- -------------------
          1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
    
    9 rijen zijn geselecteerd.
    

    Is there a simpler way (in SQL), I hope that others join, and share their ideas/example/thoughts.
    I feel that it is using more resources there.
    But I have to cut the daisies before now, they interfere my 'grass-green-ess";)

  • Is there a way to disable a single model viewer (rather than Caps-Lock for all)?

    Working on an animation in a subcomp, I often need to see how he's going to sit in his model of the parent, so I open a second spectator alongside.

    Works fine, but if I do something tedious and complex, it would be nice to be able to disable the second spectator that AE does not continue to try to make the parent model whenever I've finished interacting with something.

    AE did a good job of maintaining interactivity in titting on with stuff, but the second spectator slow down things a bit (not to mention the Visual introduction of noise/distraction because it shows his bar rendered etc.). I could simply close the Viewer, but then I have to open it up again a few minutes later.

    Shift lock disables all. I want to just disable an individual Viewer.

    If it's possible, I can end up having more than two viewers open - my projects end up with huge hierarchies of comps, and it would be nice sometimes to be able to have a certain number of viewers I could turn on and off individually as needed. I'm not short of screen real estate and that would mean that I always know where to look (rather than having several possible sources to viewers)

    [EDIT to add:] Man, what would be good is if it worked the same way as the zoom control panel - press the tilde key and any component is under the mouse cursor is zoomed. Having an order of keys 'turn off the viewer under the mouse cursor' would be super quick to use...

    Identical to your other post: No.

    Mylenium

  • Treats each graphic link/button as an image of view rather than direct me to the target address.

    Don't know how to explain it-
    If I visit a Web site and click on a graphic link, he directs me to a new tab showing the graphical image, I just clicked, rather than the target site. She treats each graph (or button) link as I ask for "image".
    I tried to right click to "open the link in a new tab" - same result.

    Sorry I can't explain more clearly.

    you don't know.

    it was Qute 4 + + (custom mod)  1.14
    

Maybe you are looking for