oracle sql stored procedure -
I'm having trouble understanding the way to create a stored procedure. I'm mostly having trouble understanding that a parameter What is this. I'm getting the "SQL command did not finish properly" error.
I believe this is due to my criteria. I am trying to create a process that will update the columns sold on the basis of two other columns.
Subscribe Sales (value_to_ number zero, value_number number zero, number sold, profit number NUMBER); Renewal Sale SET Profit = ((price_sold * sold) - (price_per_unit * sold) Create / Correct Upgrade Renewal Process as Commit (value_ on_NUMBER, value_sold NUMBER, sold NUMBER) COMMIT; End; /
Synthetically, at the end of your update, remembering a semi-colon Are the statements. You do not even have a profit column on your table, so after you do not compile your update, you add that semi-colon
Programmers, you might be more happy using a scene Are:
create or view copy as SALES_V PRICE_PER_UNIT, PRICE_SOLD, SOLD, (PRICE_SOLD * SOLD) - (PRICE_PER_UNIT * SOLD) profit from sales; (To store physically stored results that are usually poorly removed)
Comments
Post a Comment