DP-600 Exam QuestionsBrowse all questions from this exam

DP-600 Exam - Question 97


HOTSPOT

-

You have a Fabric warehouse that contains a table named Sales.Products. Sales.Products contains the following columns.

You need to write a T-SQL query that will return the following columns.

How should you complete the code? To answer, select the appropriate options in the answer area.

NOTE: Each correct answer is worth one point.

Show Answer
Correct Answer:

Discussion

7 comments
Sign in to comment
clux
Apr 7, 2024

GREATEST, COALESCE

woliveiras
Apr 27, 2024

Greatest is ok; however, if we have all of them present, list price will return first if you use coalesce, which is not what the question requests. The question requests AgentPrice first. I am not sure about Coalesce.

72bd3bc
May 21, 2024

Yes, it seems like there is no correct answer for the second box

Nefirs
Apr 22, 2024

answer is correct

PaweuG
May 24, 2024

I believe that the 2nd box should be COALESCE, but if you read requirements for TradePrice column, you will realize that actually, COALESCE will not work here. Clearly there's a mistake somewhere.

taphyoe
Apr 5, 2024

MAX COALESCE

taphyoe
Apr 6, 2024

correct - GREATEST and COALESCE

neoverma
Apr 7, 2024

MAX() accepts one argument; GREATEST() accepts multiple arguments

OLGIS
Jun 3, 2024

SELECT ProductID, GREATEST(ListPrice, WholesalePrice, AgentPrice) AS HighestSellingPrice, COALESCE(AgentPrice, WholesalePrice, ListPrice) AS TradePrice FROM Sales.Products;

7d97b62
Jul 11, 2024

Correct Answer GREATEST, COALESCE