hecrus

demo 2 doughnut

Oct 17th, 2020
560
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. CREATE PROCEDURE [dbo].[dashboard_tst-dashboard_doughnutTopProducts_getPanelChart]
  2. @username nvarchar(128)
  3. AS
  4. BEGIN
  5.     select 'doughnut' Type,
  6.            '' Title,
  7.            400 Width,
  8.            400 Height
  9.  
  10.     select top 5
  11.            name Title,
  12.            (select sum(cnt) from tst_orders where productID = tst_products.id) Value,
  13.            '' Color
  14.     from tst_products
  15.     order by (select sum(cnt) from tst_orders where productID = tst_products.id) desc
  16. END
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×