Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Enlist the characteristics of pl/sql?

1839


What is group by in sql?

1124


explain mysql aggregate functions. : Sql dba

1024


What does stand for in sql?

1019


What do you understand by pl/sql cursors?

1137


what happens when the column is set to auto increment and you reach the maximum value for that table? : Sql dba

1074


Can dml statements be used in pl/sql?

1121


Why self join is used in sql?

1026


explain what is mysql? : Sql dba

1126


Can you have a foreign key without a primary key?

995


what is the difference between delete and truncate commands? : Sql dba

1110


Is mariadb a nosql database?

1093


How do I find duplicates in a single column in sql?

1063


define join and explain different type of joins? : Sql dba

995


Can ddl statements be used in pl/sql?

1185