Start networking and exchanging professional insights

Register now or log in to join your professional community.

Follow

Is it possible to update Views? If yes, How, If Not, Why?

user-image
Question added by Deleted user
Date Posted: 2016/02/18
Syed Ali Abbas
by Syed Ali Abbas , Business Applications Specialist (SharePoint) , Muntajat

Yes, views can be updated if they are built on only one table and fulfill following conditions:

  • No GROUP BY clause
  • No HAVING clause
  • No aggregate functions
  • No calculated columns
  • No UNION, INTERSECT or EXCEPT
  • No SELECT DISTINCT clause

Bartholomew DSouza
by Bartholomew DSouza , Software Development Manager , LIN SCAN ADVANCED PIPELINE & TANK SERVICES PRIVATE LIMITED

Possible based on this condition : A View can be updated/deleted/inserted if it has only one base table if the view is based on columns from one or more tables then insert, update and delete is not possible.

Khalid Alharbi
by Khalid Alharbi , Project Site Engineer , Wipro Arabia Limited

We can update a view by using insert,update,delete statements.

A view from a single table can be updated where as a view from multiple tables can not be updated.

Mohd Shamshad Alam
by Mohd Shamshad Alam , Software Development Manager , Rachna Sagar Pvt Ltd

If you update a view you will actually be updating the underlying table. A view is nothing physical, just a representation of the data underneath it.

The data "in" a view has no existence independent from the tables that make up the view. The view is actually a stored SELECT statement that is presented as a table. The data is stored in the original tables and only "assembled" into the view when you want to look at it. If the view is update-able (not all views are) the updates are applied to the table data.

murat osmantevfik
by murat osmantevfik , Software Engineer , Independent Electoral Commission

yes we can update View .

UPDATE View Name SET Colum Name = 'Name'

Danish Arif
by Danish Arif , Mobile Application Developer , Swenggco Software

possible to update a view if it was created from one base table. otherwis  not possible to update a view.

nabil el aichaoui
by nabil el aichaoui , IT Project Manager / Consultant (Freelance) , Bruneau

When modifying data through a view, using INSERT or UPDATE statements, certain limitations exist depending upon the type of view. Views that access multiple tables can only modify one of the tables in the view. 

محمد الفيفي
by محمد الفيفي , Software Testing (Ito Quality & System Service Testing ) , Atheeb Intergraph Saudi Company

yes , update (view name) set insert data or the condition where any field

Hafiz Abdur Rehman
by Hafiz Abdur Rehman , Full Stack Developer , PwC - Australia

Yes,

View is dependant on the logic you have applied in respective model ,controller or action . You can update it there if it does not brake other things (i.e. data remains consistent).

Mirza Matlub Alli Baig
by Mirza Matlub Alli Baig , Functional Consultant (Oracle HRMS) , Gemini Software Solutions - India

It is not possible to update view. Because the original data exists in table not in view DML operations like Insert, Update, Delete are not possible

More Questions Like This

Do you need help in adding the right keywords to your CV? Let our CV writing experts help you.