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

What is autocommit sql?

923


What is identity column in sql server?

985


How many types of indexes are there in sql?

932


Why triggers are used?

936


What is interval partition?

985


What is the function that is used to transfer a pl/sql table log to a database table?

949


Can you call pl/sql package functions from within a fast formula?

974


What is fmtonly in sql?

1007


Is there any restriction on the use of union in embedded sql?

1099


What is sorting in sql?

892


what is the difference between myisam static and myisam dynamic? : Sql dba

1001


Why cannot I use bind variables in ddl/scl statements in dynamic sql?

1132


how to enter numeric values as hex numbers? : Sql dba

1005


what is foreign key? : Sql dba

968


What is varchar used for?

1022