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

How do you use a while loop in pl sql?

1011


What is a schema? How is it useful in sql servers?

1120


Are views faster than queries?

992


How do I pipe the output of one isql to another?

1004


How is data stored in sql?

1058


What do you understand by pl/sql records?

1018


What are different methods to trace the pl/sql code?

1117


What is set transaction?

1037


Differentiate between sga and pga.

1163


What are the different types of functions in sql?

1055


What is the purpose of the primary key?

1063


What is sql keyword?

1002


Are there any features that are decommissioned in 11g that are not present in 11g?

2149


What is pl sql package?

1032


How do I turn a list into a table?

961