can we update a view which is created from two tables

Answer Posted / duong

Views in all versions of SQL Server are updatable (can be the target of UPDATE, DELETE, or INSERT statements), as long as the modification affects only one of the base tables referenced by the view, for example:

-- Increase the prices for publisher '0736' by 10%.
UPDATE titleview
SET price = price * 1.10
WHERE pub_id = '0736'
GO

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define implicit and explicit cursors.

617


How can you load multi line records? : aql loader

647


how many groups of data types? : Sql dba

555


What is pl sql quora?

632


What is the difference between truncate and drop statements?

564






What is the use of procedures?

530


Does execute immediate commit?

679


What is dba in sql? : SQL DBA

522


Why do we use %rowtype & %type in plsql?

589


What is the difference between jpql and sql?

540


What is restrict in sql?

546


How to handle bulk data?

881


what are all types of user defined functions? : Sql dba

534


Can two tables have same primary key?

523


What's the procedure?

477