Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

Update using Case Statement

$
0
0
Hi,From the attached 4 Tables Schema DiagramWill the below query Reduce me the ListPrice by 20% if i didn't receive the order for the last 2 years ? Jammed :(SELECT Name,ProductNumber,StandardCost,ListPrice= CASEWHEN _________ THEN (ListPrice / 1.20 )ENDFROM product JOIN SalesOrderDetailON product.ProductID = SalesOrderDetail.ProductIDHelp me with some alternative to the above friends.Regards,Vijay

Viewing all articles
Browse latest Browse all 3145

Trending Articles