convert this query into storeprocedure

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Piyali
    New Member
    • Mar 2018
    • 1

    convert this query into storeprocedure

    SELECT org_id, count(distinct entry_id) as entry_point, sum(total_devic e) as total_device, sum(active_devi ce) as active_device,
    sum(total_table t) as total_tablet, sum(active_tabl et) as active_tablet,
    sum(total_deskt op) as total_desktop, sum(active_desk top) as active_desktop, sum(in_cnt) as din_cnt, sum(out_cnt) as dout_cnt
    FROM dashboard_devic e GROUP BY org_id
    Last edited by Piyali; Mar 12 '18, 06:44 AM. Reason: title
  • Frinavale
    Recognized Expert Expert
    • Oct 2006
    • 9749

    #2
    Use the Create Procedure statement to create your procedure...

    See this documentation for the CREATE PROCEDURE and CREATE FUNCTION Syntax.

    Comment

    Working...