I have a table that has two columns that have a default varchar value. Also I have a stored procedure that takes in 4 values, two varchar values and two date's. I would like to compare the two input varchar values to the default values of the two columns in the table even when no rows have been inserted into the table. Is there a possible way to do this?
This doesn't work, but something along these lines.
create or replace
PROCEDURE TEST_PROC
(
TEST_NAME IN VARCHAR2
, TEST_VERSION IN VARCHAR2
, TEST_START IN DATE
, TEST_END IN DATE
) AS
BEGIN
if TEST_NAME = TABLE.COL_1.DEFAULT_VALUE
AND TEST_VERSION = TABLE.COL_2.DEFAULT_VALUE ...