Commit 29082c93 authored by Ketan Patil's avatar Ketan Patil

Delete DDF_GET_CITY_NAME.sql

parent cc34d4a4
create or replace FUNCTION DDF_GET_CITY_NAME(as_sundry_type CHAR,as_code CHAR)
RETURN VARCHAR2
IS
ls_city VARCHAR2(40);
AS_BHR EXCEPTION;
BEGIN
BEGIN
if as_sundry_type = 'S'
then
SELECT city INTO ls_city FROM supplier WHERE supp_code = as_code;
ELSE if as_sundry_type = 'R'
then
SELECT city INTO ls_city FROM strg_customer WHERE sc_code = as_code;
end if;
end if;
RETURN ls_city;
RAISE AS_BHR;
EXCEPTION
WHEN AS_BHR THEN RETURN NULL;
END;
end;
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment