CREATE FUNCTION [dbo].[F_CaglarDeneme] (@stok_kodu varchar(25)) RETURNS float AS BEGIN DECLARE @VAL As Float SELECT case when sto_mensei in (REGULE) then @VAL=(dbo.