Braindump2go Free Exam Dumps with PDF and VCE Collection
https://www.mcitpdump.com/new-updatedofficialbraindump2go-70-461-practice-exams-download.html
Export date: Fri Nov 22 13:41:21 2024 / +0000 GMT

[NEW UPDATED][OFFICIAL]Braindump2go 70-461 Practice Exams Download


MICROSOFT NEWS: 70-461 Exam Questions has been Updated Today! Get Latest 70-461 VCE and 70-461 PDF Instantly! Welcome to Download the Newest Braindump2go 70-461 VCE&70-461 PDF Dumps: http://www.braindump2go.com/70-461.html (168 Q&As)

Exam Code: 70-461
Exam Name: Querying Microsoft SQL Server 2012
Certification Provider: Microsoft
Corresponding Certifications: MCSA, MCSA: SQL Server 2012, MCSE, MCSE: Business Intelligence, MCSE: Data Platform

70-461 Dumps,70-461 Dumps PDF,70-461 Dumps VCE,70-461 Dumps Free,70-461 PDF,70-461 Questions and Answers PDF,70-461 Certification Questions,70-461 Querying Microsoft SQL Server 2012,70-461 Exam Questions,70-461 Exam Prep,70-461 eBook PDF,70-461 Exam Guide,70-461 Exam Dump,70-461 Exam Prep,70-461 Exam Book,70-461 Braindump,70-461 Braindump PDF,70-461 Braindump VCE,70-461 Practice Questions,70-461 Practice Exams,70-461 Pracrice Tests

QUESTION 158
You have a Microsoft SQL Server database that includes two tables named EmployeeBonus and BonusParameters.
The tables are defined by using the following Transact-SQL statements:

The tables are used to compute a bonus for each employee.
The EmployeeBonus table has a non- null value in either the Quarterly, HalfYearly or Yearly column.
This value indicates which type of bonus an employee receives.
The BonusParameters table contains one row for each calendar year that stores the amount of bonus money available and a company performance indicator for that year.
You need to calculate a bonus for each employee at the end of a calendar year.
Which Transact-SQL statement should you use?

A.    SELECT
CAST(CHOOSE((Quarterly * AvailableBonus * CompanyPerformance)/40, (HalfYearly * AvailableBonus * CompanyPerformance)/20, (Yearly * AvailableBonus * CompanyPerformance)/10) AS money) AS `Bonus' FROM
EmployeeBonus, BonusParameters
B.    SELECT "Bonus" =
CASE EmployeeBonus
WHEN Quarterly=1 THEN (Quarterly * AvailableBonus * CompanyPerformance)/40 WHEN HalfYearly=1 THEN (HalfYearly * AvailableBonus * CompanyPerformance)/20 WHEN Yearly=1 THEN (Yearly * AvailableBonus * CompanyPerformance)/10 END
FROM EmployeeBonus,BonusParameters
C.    SELECT
CAST(COALESCE((Quarterly * AvailableBonus * CompanyPerformance)/40, (HalfYearly * AvailableBonus * CompanyPerformance)/20, (Yearly * AvailableBonus * CompanyPerformance)/10) AS money) AS `Bonus' FROM
EmployeeBonus, BonusParameters
D.    SELECT
NULLIF(NULLIF((Quarterly * AvailableBonus * CompanyPerformance)/40,(HalfYearly * AvailableBonus * CompanyPerformance)/20),
(Yearly * AvailableBonus * CompanyPerformance)/10) AS `Bonus' FROM
EmployeeBonus, BonusParameters

Answer: B

QUESTION 159
You use Microsoft SQL Server 2012 to develop a database application.
You need to create an object that meets the following requirements:
- Takes an input parameter
- Returns a table of values
- Can be referenced within a view
Which object should you use?

A.    inline table-valued function
B.    user-defined data type
C.    stored procedure
D.    scalar-valued function

Answer: A
Explanation:
Incorrect answers:
Not B: A user-defined data type would not be able to take an input parameter.
Not C: A stored procedure cannot be used within a view.
Not D: A scalar-valued would only be able to return a single simple value, not a table.

QUESTION 162
You are developing a Microsoft SQL Server 2012 database for a company.
The database contains a table that is defined by the following Transact-SQL statement:

You use the following Transact-SQL script to insert new employee data into the table. Line numbers are included for reference only.

If an error occurs, you must report the error message and line number at which the error occurred and continue processing errors.
You need to complete the Transact-SQL script.
Which Transact-SQL segment should you insert at line 06?

A.    SELECT ERROR_LINE(), ERROR_MESSAGE()
B.    DECLARE @message NVARCHAR(1000),@severity INT, @state INT; SELECT @message = ERROR_MESSAGE(), @severity = ERROR_SEVERITY(), @state = ERROR_STATE();
RAISERROR (@message, @severity, @state);
C.    DECLARE @message NVARCHAR(1000),@severity INT, @state INT; SELECT @message = ERROR_MESSAGE(), @severity = ERROR_SEVERITY(), @state = ERROR_STATE();
THROW (@message, @severity, @state);
D.    THROW;

Answer: B
Explanation:
When the code in the CATCH block finishes, control passes to the statement immediately after the END CATCH statement. Errors trapped by a CATCH block are not returned to the calling application. If any part of the error information must be returned to the application, the code in the CATCH block must do so by using mechanisms such as SELECT result sets or the RAISERROR and PRINT statements.
Reference: TRY...CATCH (Transact-SQL)
https://msdn.microsoft.com/en-us/library/ms175976.aspx 1

QUESTION 164
You are maintaining a Microsoft SQL Server database. You run the following query:

You observe performance issues when you run the query.
You capture the following query execution plan:

You need to ensure that the query performs returns the results as quickly as possible.
Which action should you perform?

A.    Add a new index to the ID column of the Person table.
B.    Add a new index to the EndDate column of the History table.
C.    Create a materialized view that is based on joining data from the ActiveEmployee and History tables.
D.    Create a computed column that concatenates the GivenName and SurName columns.

Answer: A
Explanation:
Cost is 53% for the Table Scan on the Person (p) table. This table scan is on the ID column, so we should put an index on it.

QUESTION 167
You are developing a database in SQL Server 2012 to store information about current employee project assignments.
You are creating a view that uses data from the project assignment table.
You need to ensure that the view does not become invalid if the schema of the project assignment table changes.
What should you do?

A.    Create the view by using an account in the sysadmin role.
B.    Add a DDL trigger to the project assignment table to re-create the view after any schema change.
C.    Create the view in a new schema.
D.    Add a DDL trigger to the view to block any changes.

Answer: B
Explanation:
DDL triggers are a special kind of trigger that fire in response to Data Definition Language (DDL) statements. They can be used to perform administrative tasks in the database such as auditing and regulating database operations.
Reference: DDL Triggers
https://technet.microsoft.com/en-us/library/ms190989(v=sql.105).aspx 2

QUESTION 168
You are maintaining a Microsoft SQL Server database that stores order information for an online store website.
The database contains a table that is defined by the following Transact-SQL statement:

You need to ensure that purchase order numbers are used only for a single order.
What should you do?

A.    Create a new CLUSTERED constraint on the PurchaseOrderNumber column.
B.    Create a new UNIQUE constraint on the PurchaseOrderNumber column.
C.    Create a new PRIMARY constraint on the PurchaseOrderNumber column.
D.    Create a new FOREIGN KEY constraint on the PurchaseOrderNumber column.

Answer: B
Explanation:
You can use UNIQUE constraints to make sure that no duplicate values are entered in specific columns that do not participate in a primary key. Although both a UNIQUE constraint and a PRIMARY KEY constraint enforce uniqueness, use a UNIQUE constraint instead of a PRIMARY KEY constraint when you want to enforce the uniqueness of a column, or combination of columns, that is not the primary key.
Reference: UNIQUE Constraints
https://technet.microsoft.com/en-us/library/ms191166(v=sql.105).aspx 3


FREE DOWNLOAD: NEW UPDATED 70-461 PDF Dumps & 70-461 VCE Dumps from Braindump2go: http://www.braindump2go.com/70-461.html (168 Q&As)

Links:
  1. https://msdn.microsoft.com/en-us/library/ms175976. aspx
  2. https://technet.microsoft.com/en-us/library/ms1909 89(v=sql.105).aspx
  3. https://technet.microsoft.com/en-us/library/ms1911 66(v=sql.105).aspx
Post date: 2015-12-14 09:05:04
Post date GMT: 2015-12-14 09:05:04

Post modified date: 2015-12-14 09:05:04
Post modified date GMT: 2015-12-14 09:05:04

Export date: Fri Nov 22 13:41:21 2024 / +0000 GMT
This page was exported from Braindump2go Free Exam Dumps with PDF and VCE Collection [ https://www.mcitpdump.com ]
Export of Post and Page has been powered by [ Universal Post Manager ] plugin from www.ProfProjects.com