Hello,
I have an sql query as following. Could you please tell me how the right function works? When the date is given in quotes
right('1990-05-23',5) returns 05-23
otherwise
right(1990-05-23,5) returns 1990...could you please help with this?
Also,the query returns 0.
select right('1990-05-23',5)<right('1 995-02-03',5)
In sql does 0 represent a true or false?
Thank you in advance
I have an sql query as following. Could you please tell me how the right function works? When the date is given in quotes
right('1990-05-23',5) returns 05-23
otherwise
right(1990-05-23,5) returns 1990...could you please help with this?
Also,the query returns 0.
select right('1990-05-23',5)<right('1 995-02-03',5)
In sql does 0 represent a true or false?
Thank you in advance
Comment