What is a view? is View updatable?

Answers were Sorted based on User's Feedback



What is a view? is View updatable?..

Answer / neetu

a view is a virtual table.it's an object that derives it's
data from one or more tables.it ensures that users are able
to retrieve and modify only the data which is seem by them.

u r unable to update attributes becoz views allow only one
of the underlying tables to be updated at a time.u need to
update attributes by giving two separate update commands.

Is This Answer Correct ?    24 Yes 8 No

What is a view? is View updatable?..

Answer / harinireddy

view is a virtual table created from the physical table
which is existing.view can be updated unless the base table
does not have any relation u another table

Is This Answer Correct ?    14 Yes 4 No

What is a view? is View updatable?..

Answer / sandhya

You can modify data by using a view in only one of its base
tables even though a view may be derived from multiple
underlying tables. For example, a view vwNew that is
derived from two tables, table and table2, can be used to
modify either table or table2 in a single statement. A
single data modification statement that affected both the
underlying tables is not permitted

Is This Answer Correct ?    9 Yes 1 No

What is a view? is View updatable?..

Answer / kumaran

A view is a Virtual Table or a Logical representation.
View type :- SimpleView and Complex View.
Simple views are updatable.

Is This Answer Correct ?    8 Yes 1 No

What is a view? is View updatable?..

Answer / suraj

-- Views are updatable regardless of the number of
tables involved in that view.
-- Data contained in the base tables are updated when
VIEWS are updated.



drop table t1
drop table t2
drop view t1t2

create table t1(ID int, FirstName varchar(20))
create table t2(ID int, LastName varchar(20))

insert t1 values(1,'John')
insert t1 values(2,'Mike')
insert t2 values(1,'Smith')
insert t2 values(2,'Shres')

create view t1t2
as
select t1.FirstName, t2.LastName
from t1 inner join t2 on t1.ID=t2.ID


update t1t2
set FirstName='Steve' where LastName='Smith'


select * from t1t2
select * from t1

Is This Answer Correct ?    12 Yes 6 No

What is a view? is View updatable?..

Answer / kalyana chakravarthy

View is a taliored representation of data of a particular
table. In one way to say view is a shadow of a table. What
ever U do on a view will reflect on the table vice versa.

Views r 2 types simple and complex simple is selected rows
from one table and complex is selected from more than one.
In oracle complex view can be updated by using instead of
triggers from version 8.0

Is This Answer Correct ?    5 Yes 1 No

What is a view? is View updatable?..

Answer / sai krishna.k

a view is nothing but a logical representation of tables.
it is also called as "virtual table".
a view may be updatable view or non updatable view.

Is This Answer Correct ?    7 Yes 4 No

What is a view? is View updatable?..

Answer / darshan shah

View is sub set of one or more then one tables
View is use to fetch the selected columns from one more
then one tables.
Yes we can update the view if it is not read only.

Is This Answer Correct ?    3 Yes 1 No

What is a view? is View updatable?..

Answer / venkat

view is a virtual table i.e a new table is created using
base table.
view can be updated based on some restrictions

Is This Answer Correct ?    3 Yes 1 No

What is a view? is View updatable?..

Answer / amit upadhyay

VIEW :- VIEW IS VIRTUAL TABLE. WHICH GIVE ACCESS TO SUBSET
OF COLUMN OF THE TABLES.

VIEW CAN BE UPDATED THAT GET EFFECTED THE TABLE ALSO.

Is This Answer Correct ?    2 Yes 1 No

Post New Answer

More SQL Server Interview Questions

How can you append an identity column to a temporary table?

0 Answers  


what is a schema in sql server 2005? Explain how to create a new schema in a database? : Sql server database administration

0 Answers  


How many partitions a clustered index has by default in sql server 2012?

0 Answers  


how to get max salary with employee number by using one select query and max function ??

3 Answers   Genpact,


What is the use of floor function in sql server?

0 Answers  






How to restart SQL Server in single user mode? How to start SQL Server in minimal configuration mode?

2 Answers  


What do you understand by hotfixes and patches in sql server?

0 Answers  


When does the auto update index statistics feature in sql server turn itself on?q) what specific conditions database should meet, before you can bulk copy data into it using bcp?

0 Answers  


Can I know,how to Execute Funcion and Trigger through command(Manualy Execution) in MS SQL/SERVER 2005,give me answer with Example.

1 Answers  


How to provide login information for a new odbc dsn?

0 Answers  


Tell me what is sql profiler?

0 Answers  


How to change the data type of an existing column with "alter table" statements in ms sql server?

0 Answers  


Categories