daily pastebin goal
88%
SHARE
TWEET

sql

itcorp Jan 19th, 2019 83 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. SELECT TOP 10 inovice.StoreProName,CAST(product.StoreProImage AS varbinary) AS StoreProImage ,SUM(inovice.TheSalesPrice) AS TotalMoney,COUNT(inovice.StoreID) AS TotalSold
  2. FROM Inovice AS inovice
  3. LEFT JOIN Product AS product ON product.StoreID=inovice.StoreID
  4. GROUP BY inovice.StoreProName,CAST(product.StoreProImage AS varbinary) ORDER BY SUM(TheSalesPrice) DESC
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top