GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  Database
Go To First  |  Previous Question  |  Next Question 
 Database  |  Question 22 of 70    Print  
Can we update views.If not,why?

  
Total Answers and Comments: 12 Last Update: December 14, 2007     Asked by: meenu 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
  Sorting Options  
  Page 1 of 2   « First    1    2    >     Last »  
May 04, 2006 03:13:17   #1  
Tapas        

RE: can we update views.If not,why?

No

View is not an independent thing where the data can be stored. View is a part of a table .


 
Is this answer useful? Yes | No
May 04, 2006 03:16:24   #2  
chandu        

RE: can we update views.If not,why?

Hi

we can update view .if the view is created with one table.

But we canot update view if the view is created with more than one table with multiple columns.why because view is single virtual table created multiple columns from diffrent tables. so we canot update this virtual table i.e view.when we selected multiple tables and mutiple columns.


 
Is this answer useful? Yes | No
May 30, 2006 07:23:50   #3  
swathi        

RE: can we update views.If not,why?
ya we can do...
 
Is this answer useful? Yes | No
June 01, 2006 08:33:24   #4  
nav dev Member Since: June 2006   Contribution: 1    

RE: can we update views.If not,why?

yes views can be updated only if all elements of view are subset of the base table.suppose base table is having empid name and addr colmns then a view on this table created as

create view myview as select * from emp; only these type of views are updatable.

create view myview as select name addr from emp; is not updatable.


 
Is this answer useful? Yes | No
July 06, 2006 04:38:37   #5  
Viswanathan Balaji        

RE: can we update views.If not,why?

Yes Views are updatable based on conditions it can be a single table having unique records based on primary key values or it can be multiple table linked with primary key values where updation of view should yield a unque recordset from the two tables .

Thanks and Regards

Viswanathan Balaji


 
Is this answer useful? Yes | No
July 14, 2006 15:19:47   #6  
Pritpal        

RE: can we update views.If not,why?
Hi we cannot update view but we can create or replace a view. we cannot update its defination. we can update a underlying base table through a view under certain conditions i.e. only one table based view no grouping etc.
 
Is this answer useful? Yes | No
September 18, 2006 15:40:34   #7  
Apprentice        

RE: can we update views.If not,why?
First of all a view is not part of a table as a gentleman here explained. A view is a virtual table meaning it does not exist as a table. Yes a view is an schema object but it is only as such view . It is a view of a table ot joined tables. If you are updating a field from a view you are not updating the view but the table which that view is based upon. No you cannot update a view only the table a view is based upon.
 
Is this answer useful? Yes | No
September 28, 2006 14:01:58   #8  
saurabh        

RE: can we update views.If not,why?
v can update view if and only the view is updatedable view. but the normal view cant be updated
 
Is this answer useful? Yes | No
October 18, 2006 09:16:11   #9  
sridhar        

RE: can we update views.If not,why?

can we update the view.If not why?


 
Is this answer useful? Yes | NoAnswer is useful 0   Answer is not useful 1Overall Rating: -1    
October 31, 2006 02:04:06   #10  
rajithrnair        

RE: can we update views.If not,why?

if the view is created using joins group by statements we cannot update otherwise we can update the view


 
Is this answer useful? Yes | No
  Page 1 of 2   « First    1    2    >     Last »  


 
Go To Top


 Sponsored Links

 
About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape