I keep getting this error for the below MySQL SP any ideas?
CREATE PROCEDURE productpricing(
OUT pl DECIMAL(8,2), OUT ph DECIMAL(8,2),
Did you define a delimiter?
Try adding delimiter //
before the CREATE PROCEDURE
statement. Also replace END;
with END;//
. I checked and it works for me.
See the MySQL doc on stored procedures
you need group by if you use min,max i think. if that doesnt work try #p1 to create a temp table. May be problem is the table you are inserting it to.