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

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -