can a view be updated?

Answer Posted / chandana

Yes,Views can be updated but there are some conditions.
-> Depending on type of view ie
Simple views can be updated
Complex views may or may not be updated.
One cannot Perform DML Operations on Complex view
if it contains
1. Group by clause
2. Group functions
3. Distinct
4. Pseudocolumn rownum

One cannot modify the view if it has
1. Group by clause
2. Group functions
3. Distinct
4. Pseudocolumn rownum
5. Columns by expressions

One cannot insert data into views if it has

1. Group by clause
2. Group functions
3. Distinct
4. Pseudocolumn rownum
5. Columns by expressions
6. NOT NULL columns in base table that are not selected in
view

Is This Answer Correct ?    3 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give the various exception types.

537


What is parameterized cursor in oracle?

566


Explain an index segment?

631


How to turn on or off recycle bin for the session?

602


How to start a new transaction in oracle?

581






what is the dual table in oracle?

546


 How to use an oracle sequence generator in a mapping?

556


What is a view and how is it different from a table?

566


How to specify default values in insert statement using oracle?

549


How to create lov dynamically at runtime & attach to text field?

653


What would you do with an in-doubt distributed transaction?

1463


How to create a table interactively?

547


Is there a function to split a string in plsql?

561


How would you edit your CRONTAB to schedule the running of /test/test.sh to run every other day at 2PM?

1429


How to join two tables in a single query using oracle?

560