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 the different between now() and current_date()? : Sql dba

1016


how to create a new table in mysql? : Sql dba

986


How do I remove duplicates in two columns?

1058


How exception handling is done in advance pl/sql?

979


State some properties of relational databases?

1056


How do you take the union of two tables in sql?

981


what is the difference between nested subquery and correlated subquery?

1052


What jobs use sql?

980


What is sql partition?

1105


What is a data manipulation language?

1020


What is sql select statement?

1028


what is log shipping? : Sql dba

1109


Can variables be used in sql statements?

1029


What is mdb stand for?

1005


Why we use sql profiler?

954