exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 103 discussion

Actual exam question from Microsoft's 70-761
Question #: 103
Topic #: 1
[All 70-761 Questions]

SIMULATION -
You create a table named Sales.Orders by running the following Transact-SQL statement:

You need to write a query that removes orders from the table that have a Status of Canceled.
Construct the query using the following guidelines:
use one-part column names and two-part table names

✑ use single quotes around literal values
✑ do not use functions
✑ do not surround object names with square brackets
✑ do not use variables
do not use aliases for column names and table names


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

Show Suggested Answer Hide Answer
Suggested Answer: Please see explanation
1. DELETE from sales.orders where status='Canceled'
Note: On line 1 change calceled to Canceled
Example: Using the WHERE clause to delete a set of rows
The following example deletes all rows from the ProductCostHistory table in the AdventureWorks2012 database in which the value in the StandardCost column is more than 1000.00.
DELETE FROM Production.ProductCostHistory
WHERE StandardCost > 1000.00;
References:
https://docs.microsoft.com/en-us/sql/t-sql/statements/delete-transact-sql

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
HA2020
4 years, 5 months ago
SQL Server is case insensitive by default https://stackoverflow.com/questions/1224364/sql-server-ignore-case-in-a-where-expression/12686470
upvoted 1 times
...
mamarach
4 years, 10 months ago
So, what SQL skill is this question testing?
upvoted 3 times
p0lskiy
4 years, 8 months ago
Orthography )))
upvoted 4 times
...
BabyBee
4 years, 5 months ago
Observation, I felt for it >.>
upvoted 1 times
...
...
Anette
4 years, 11 months ago
But, is it case sensitive? I Don't think so. The given code seems to be ok :/
upvoted 1 times
Anette
4 years, 11 months ago
Ah its calceled :D
upvoted 3 times
...
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago