Which Transact-SQL statement should you use?

You are a database developer of a Microsoft SQL Server 2012 database. The database contains a table named Customers that has the following definition: You need to ensure that the CustomerId column in the Orders table contains only values that exist in the CustomerId column of the Customer table. Which...

March 17, 2019 No Comments READ MORE +

Which Transact-SQL statement should you use?

You are a database developer of a Microsoft SQL Server 2012 database. The database contains a table named Customers that has the following definition: You need to ensure that the CustomerId column in the Orders table contains only values that exist in the CustomerId column of the Customer table. Which...

March 12, 2019 No Comments READ MORE +

Which Transact-SQL statement should you use?

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...

March 11, 2019 No Comments READ MORE +

Which Transact-SQL query should you use?

A table named Profits stores the total profit made each year within a territory. The Profits table has columns named Territory, Year, and Profit. You need to create a report that displays the profits made by each territory for each year and its previous year. Which Transact-SQL query should you...

March 6, 2019 No Comments READ MORE +

Which Transact-SQL statement should you use?

You develop three Microsoft SQL Server 2012 databases named Database1, Database2, and Database3. You have permissions on both Database1 and Database2. You plan to write and deploy a stored procedure named dbo.usp_InsertEvent in Database3. dbo.usp_InsertEvent must execute other stored procedures in the other databases. You need to ensure that callers...

March 5, 2019 No Comments READ MORE +

Which object should you use?

You develop a Microsoft SQL Server 2012 database. You need to create a batch process that meets the following requirements: • Returns a result set based on supplied parameters. • Enables the returned result set to perform a join with a table. Which object should you use?A . Inline user-defined...

March 2, 2019 No Comments READ MORE +

Which code segment should you add to line 14?

You use Microsoft SQL Server 2012 to create a stored procedure as shown in the following code segment. (Line numbers are included for reference only.) The procedure can be called within other transactions. You need to ensure that when the DELETE statement from the HumanResourcesJobCandidate table succeeds, the modification is...

February 26, 2019 No Comments READ MORE +

Which code segment should you use?

CORRECT TEXT You have a database that contains the tables shown in the exhibit. (Click the Exhibit button). You need to create a query for a report. The query must meet the following requirements: • NOT use object delimiters. • Return the most recent orders first. • Use the first...

February 26, 2019 No Comments READ MORE +

Which Transact- SQL query or queries should you use?

You administer a Microsoft SQL Server database that supports a shopping application. You need to retrieve a list of customers who live in territories that do not have a sales person. Which Transact- SQL query or queries should you use? (Each correct answer presents a complete solution. Choose all that...

February 25, 2019 No Comments READ MORE +

What should you do?

You administer a Microsoft SQL Server 2012 database that has multiple tables in the Sales schema. Some users must be prevented from deleting records in any of the tables in the Sales schema. You need to manage users who are prevented from deleting records in the Sales schema. You need...

February 24, 2019 No Comments READ MORE +