You create a table that has the StudentCode, SubjectCode, and Marks columns to record mid-year marks for students. The table has marks obtained by 50 students for various subjects.
You need to ensure that the following requirements are met:
Students must be ranked based on their average marks.
If one or more students have the same average, incremental ranks must be given based on the order they are created.
Ranks must be sequential without gaps in between.
Which Transact-SQL query should you use?

You are developing a database that will contain price information.
You need to store the prices that include a fixed precision and a scale of six digits.
Which data type should you use?
A. RealDRAG DROP
You use Microsoft SQL Server to develop a database application.
You execute a stored procedure named PriceIncreasePct that has multiple statements.
You need to ensure that the calling application can find out the exact error message if an exception occurs.
Which five Transact-SQL segments should you use to develop the solution? To answer, move the appropriate Transact-SQL segments from the list of Transact-SQL segments to the answer area and arrange them in the correct order.
Select and Place:

You develop a Microsoft SQL Server 2012 server database that supports an application. The application contains a table that has the following definition:
CREATE TABLE Inventory (
ItemID int NOT NULL PRIMARY KEY,
ItemsInStore int NOT NULL,
ItemsInWarehouse int NOT NULL)
You need to create a computed column that returns the sum total of the ItemsInStore and ItemsInWarehouse values for each row. The new column is expected to be queried heavily, and you need to be able to index the column.
Which Transact-SQL statement should you use?
A. ALTER TABLE Inventory ADD TotalItems AS ItemslnStore + ItemsInWarehouseSIMULATION
You need to create a query that meets the following requirements:
1. The query must return a list of salespeople ranked by amount of sales and organized by postal code.
2. The salesperson who has the highest amount of sales must be ranked first.
Part of the correct Transact-SQL has been provided in the answer area below. Enter the code in the answer area that resolves the problem and meets the stated goals or requirements. You can add code within code that has been provided as well as below it.


Use the ‘Check Syntax’ button to verify your work. Any syntax or spelling errors will be reported by line and character position.
You administer a Microsoft SQL Server database that includes a table named Products. The Products table has columns named ProductId, ProductName, and CreatedDateTime.
The table contains a unique constraint on the combination of ProductName and CreatedDateTime.
You need to modify the Products table to meet the following requirements:
Remove all duplicates of the Products table based on the ProductName column.
Retain only the oldest Products row.
Which Transact-SQL query should you run?

As part of a new HR project you're creating several stored procedures that will add logging information to the logs table. This logging information is very detailed and should contain carriage returns to make paragraphs more readable. How can you add carriage returns to text when inserting into a table?
A. Use CASEYou work as a database developer at ABC.com. You need to store Microsoft Word documents in a SQL Server 2012 database table.
The Word documents must not be accessed by Windows applications that do not use Transact- SQL queries.
How would accomplish this task?
A. You should store the documents using the VARBINARY(MAX) datatype.You have a view that was created by using the following code:

You need to create an inline table-valued function named Sales.fn_OrdersByTerritory. Sales.fn_OrdersByTerritory must meet the following requirements:
1. Use one-part names to reference columns.
2. Return the columns in the same order as the order used in OrdersByTerritoryView.
Part of the correct T-SQL statement has been provided in the answer area. Provide the complete code.

DRAG DROP
You develop a Microsoft SQL Server database that contains a table named FactoryOrder defined by the following Transact-SQL statements:

The database contains the following user defined function:

You need to create a stored procedure that meets the following requirements:
1. Reports on factory orders for a specified date.
2. Adds 2 hours to the OrderTime when reporting the FinishedTime.
3. Executes the most efficient execution plan each time it is called.
4. Minimizes read operations.
Which command or commands should you use to accomplish this objective? To answer, drag the appropriate commands to the correct positions. Answer choices may be used once, more than once or not at all. You may need to drag the split bar between panes or scroll to view content.
Select and Place:

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Microsoft exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your 70-461 exam preparations and Microsoft certification application, do not hesitate to visit our Vcedump.com to find your solutions here.