Please suggest/guide with step by step how to rap a stored procedure in calculation view, which latter I can use to call from odata service.
I have one input parameter PRDID
Table: Product
PRDID | PRDTYPE | PRDCAT | QTY | PRICE |
---|---|---|---|---|
MMT1 | OP | BOOKS | 1 | 12 |
MMT2 | OP | BAG | 2 | 32 |
MMT3 | OP | PEN | 3 | 12 |
MMT4 | OP | NOTEPAD | 6 | 12 |
MMT5 | OP | MOUSE | 6 | 36 |
MMT6 | OP | HANDBAG | 1 | 22 |
CREATE PROCEDURE <yourschema>."Product" (INOUT prd VARCHAR(10)) LANGUAGE SQLSCRIPT AS BEGIN select "PRDID", "PRDTYPE","PRDCAT","PRICE" from <yourschema>."Product" where "PRDID" = :prd; END;
Thanks