单选题What is true about updates through a view? ()A You cannot update a view with group functions.B When you update a view group functions are automatically computed.C When you update a view only the constraints on the underlying table will be in effect.D W

题目
单选题
What is true about updates through a view? ()
A

You cannot update a view with group functions.

B

When you update a view group functions are automatically computed.

C

When you update a view only the constraints on the underlying table will be in effect.

D

When you update a view the constraints on the views always override the constraints on the underlying tables.

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

What is necessary for your query on an existing view to execute successfully? ()

A. The underlying tables must have data.

B. You need SELECT privileges on the view.

C. The underlying tables must be in the same schema.

D. You need SELECT privileges only on the underlying tables.


参考答案:B

第2题:

You are responsible for maintaining a SQL Server 2005 database. Business analysts in the company routinely use a view named v CustomerSales to join the Customers and Sales tables in the database. They use the view to aggregate total sales by customer by month. You need to increase the performance of the view. What should you do?()

  • A、Update the view to use an outer join between the Customers and Sales tables.
  • B、Create a clustered index on the v CustomerSales view.
  • C、Create two separate views that do not contain any joinsone view named Customers for the Customers table and another one named v Sales for the Sales table.
  • D、Create a stored procedure for the business analysts that uses the v CustomerSales view.

正确答案:B

第3题:

What is true about updates through a view? ()

A. You cannot update a view with group functions.

B. When you update a view group functions are automatically computed.

C. When you update a view only the constraints on the underlying table will be in effect.

D. When you update a view the constraints on the views always override the constraints on the underlying tables.


参考答案:A

第4题:

What is necessary for your query on an existing view to execute successfully? ()

  • A、The underlying tables must have data.
  • B、You need SELECT privileges on the view.
  • C、The underlying tables must be in the same schema.
  • D、You need SELECT privileges only on the underlying tables.

正确答案:B

第5题:

You are responsible for a data warehouse application that uses records from an external table to update one of the dimension tables periodically. The records in the external table may contain data for new rows in the dimension table, or for updates to its existing rows. Which type of SQL command would you use to transfer the data from the external table to the dimension table as efficiently as possible?()

  • A、MERGE
  • B、SELECT …CROSS JOIN
  • C、INSERT ALL …SELECT
  • D、CREATE VIEW …CONSTRAINT

正确答案:A

第6题:

Exhibit:

UPDATE EzonexamConsolidated

SET District = ‘Mexico’

WHERE RtvID = 45

You work as database administrator at Ezonexam.com. You handle one SQL Server 2000 computer and one database.

When users run the query in the exhibit above the receive the following error message:

Server: Mrh3612, Level 16, Stats 1, Line 1

View or function ‘EzonexamConsolidated’ is not updateable because it

contains aggregates:

How should you enable the query to run?

A.Create a non-normalized EzonexamConsolidated table and populate the table with data from the base tables.

B.The appropriate users should be granted UPDATE permissions on each base table.

C.To enable updates on the composite tables create an INSTEAD OF trigger on the view.

D.On each base table add a cascading update trigger.


正确答案:C
解析:Explanation:SQLServer2000usesINSTEADOFtriggersandpartitionedviewstoenhancetheclassofupdateableviews.INSTEADOFtriggerscanbecreatedonaviewinordertomakeaviewupdateable.TheINSTEADOFtriggerisexecutedinsteadofthedatamodificationstatementonwhichthetriggerisdefined.Thistriggerallowstheusertospecifythesetofactionsthatneedtotakeplaceinordertoprocessthedatamodificationstatement.Thus,ifanINSTEADOFtriggerexistsforaviewonagivendatamodificationstatement,thecorrespondingviewisupdateablethroughthatstatement.Iftheviewisapartitionedview,theviewisupdateable,subjecttocertainrestrictions.IncorrectAnswers:A:Creatingatablethatcombinesthecompositetablesthattheviewisbasedonwoulddenyustheabilitytousetheviewtoreturnaggregatedcolumnvalues.B:Theerrormessageisnotrelatedtopermissionsbuttotheupdateableofthetable.D:CascadingreferentialintegrityconstraintsmakesitpossibletodefinetheactionsSQLServer2000takeswhenauserattemptstodeleteorupdateakeytowhichexistingforeignkeyspoint.CascadingreferentialintegrityconstraintsfireAFTERtriggersafterallofthecascadingreferentialactionsdirectlycausedbytheoriginalDELETEorUPDATEareperformed.

第7题:

You have a server that runs Windows Server 2003 Service Pack 2 (SP2) and Windows Server Update Services (WSUS) 3.0. You need to view the approved WSUS updates that have been superseded by newer updates. You want to achieve this goal by using the minimum amount of administrative effort.  What should do you do?()

  • A、View the WindowsUpdate.log file.
  • B、Create a new log view in Event Viewer.
  • C、From Update Services, view the WSUS Updates update view.
  • D、From Update Services, run an Update Status Summary report.

正确答案:C

第8题:

You are granted the CREATE VIEW privilege. What does this allow you to do? ()

A. Create a table view.

B. Create a view in any schema.

C. Create a view in your schema.

D. Create a sequence view in any schema.

E. Create a view that is accessible by everyone.

F. Create a view only of it is based on tables that you created.


参考答案:C

第9题:

The EMP_DEPT block in your EMPLOYEE form is based on a view in an Oracle8 database. The items in this block have the Update Allowed property set to Yes. Which database feature makes it possible to permanently modify the underlying view?()

  • A、REF cursor. 
  • B、Instead Of trigger. 
  • C、Stored procedure that returns object values. 
  • D、The underlying view cannot be modified because DML on a view is not supported.

正确答案:B

第10题:

What is true about updates through a view? ()

  • A、You cannot update a view with group functions.
  • B、When you update a view group functions are automatically computed.
  • C、When you update a view only the constraints on the underlying table will be in effect.
  • D、When you update a view the constraints on the views always override the constraints on the underlying tables.

正确答案:A

更多相关问题