SQL ORACLE Procedure to determine whether a date is between two dates -


i trying make procedure determines zodiac sign of person, given his/her date of birth. input has in format of 'dd-mon-yyyy' (eg. '16-aug-1987'). trying find proper way this. part of incorrect code follows:

create or replace procedure zodiac_test(dob varchar2)  begin   if dob between '29-sep-%' , '19-oct-%'     dbms_output.put_line('a libra');   else     dbms_output.put_line('not libra');   end if; end; 

basically, goal here determine whether date between 2 dates, regardless year. how go problem? , suggestions?

i've seen other answers in stackoverflow date format different , not asking write procedures. thought should ask here.


Comments

Popular posts from this blog

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

java - How to read a file created at runtime? -

php - Autoloader issue not returning Class -