exam questions

Exam 70-761 All Questions

View all questions & answers for the 70-761 exam

Exam 70-761 topic 1 question 195 discussion

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

HOTSPOT -
A company creates marketing photographs of products for online retailers. Photographs and related information are stored in a database that has the following structure:

You must create a report that returns a list of all product photos, and whether the product has a primary photo.
How should you complete the Transact-SQL statement? To answer, select the appropriate Transact-SQL segments in the answer area.
NOTE: Each correct selection is worth one point.
Hot Area:

Show Suggested Answer Hide Answer
Suggested Answer: Explanation
Box 1: LEFT JOIN -
We want a list of all product photos, and whether the product has a primary photo.

Box 2: FULL OUTER JOIN -
The FULL OUTER JOIN keyword return all records when there is a match in either left (table1) or right (table2) table records.
Box 3: AND

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
Billybob0604
4 years, 2 months ago
answer in another exam says : product left join productproductphoto on product.productid=productproductphoto.productid full outer join productphoto on productproductphoto.productphotoid=productphoto.productphotoid
upvoted 1 times
...
Billybob0604
4 years, 3 months ago
i saw an exam with the exhibit, but still this question is extremely vague. No idea what they want exactly.
upvoted 1 times
...
Andy7622
4 years, 4 months ago
I believe second one should also be right join because ProductPhoto table is in the right part of the query Since we need all rows ProductPhoto then RIGHT JOIN would be appropriate.
upvoted 1 times
Andy7622
4 years, 4 months ago
Sorry, I agree : Right Join ... Left Join .
upvoted 1 times
...
...
Andy7622
4 years, 4 months ago
There is not HOT AREA in the question . We cannot judge . Because I saw the hot area for the question in another dumps . It has options for the presented code. FROM clause there looks like: FROM Product /Option/ ProductProductPhoto /Opton / ProudctPhoto
upvoted 1 times
...
kempl
4 years, 4 months ago
The Query is: SELECT ProductPhoto.ProductPhotoID ,Product.ProductID ,ProductProductPhoto.IsPrimary FROM Product Box 1 [LEFT JOIN; RIGHT JOIN; CROSS JOIN; FULL OUTER JOIN] ProductPhoto Box 2 [LEFT JOIN; RIGHT JOIN; CROSS JOIN; FULL OUTER JOIN] ProductProductPhoto ON ProductProductPhoto.ProductPhotoID = ProductPhoto.ProductPhotoID Box 3 [OR; AND; AND NOT] ProductProductPhoto.ProductID=Product.ProductID It says: "You must create a report that returns a list of all product photos" So I beleive we need to bring all the rows for the table ProductPhoto, which I think would be RIGHT JOIN / LEFT JOIN / AND
upvoted 3 times
...
Anette
4 years, 10 months ago
There is no SQL statement :/
upvoted 3 times
...
jortizhuedo
4 years, 12 months ago
LEFT JOIN / LEFT JOIN ?
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